From 2ca507c846d0e4e61b87ce3887af43d0f39d59b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 May 2009 02:20:40 +0000 Subject: [PATCH] Move css for color picker in main CSS to reduce nb of CSS files. --- htdocs/html.formother.class.php | 3 + htdocs/theme/auguria/auguria.css.php | 92 +++++++++++++++++++++++++ htdocs/theme/bluelagoon/bluelagoon.css | 91 +++++++++++++++++++++++++ htdocs/theme/common/colorpicker.css | 90 ------------------------- htdocs/theme/eldy/eldy.css.php | 93 +++++++++++++++++++++++++- htdocs/theme/freelug/freelug.css.php | 92 +++++++++++++++++++++++++ htdocs/theme/rodolphe/rodolphe.css | 92 +++++++++++++++++++++++++ htdocs/theme/yellow/yellow.css.php | 92 +++++++++++++++++++++++++ 8 files changed, 554 insertions(+), 91 deletions(-) delete mode 100644 htdocs/theme/common/colorpicker.css diff --git a/htdocs/html.formother.class.php b/htdocs/html.formother.class.php index 431087ce147..3cacf99e519 100644 --- a/htdocs/html.formother.class.php +++ b/htdocs/html.formother.class.php @@ -195,6 +195,7 @@ class FormOther */ function select_color($set_color='', $prefix='f_color', $form_name='objForm') { + print "\n".'
'; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; + print ''; print ''."\n"; + print '
'; } /** diff --git a/htdocs/theme/auguria/auguria.css.php b/htdocs/theme/auguria/auguria.css.php index e4ee52a2d73..dfaed04df06 100644 --- a/htdocs/theme/auguria/auguria.css.php +++ b/htdocs/theme/auguria/auguria.css.php @@ -1306,3 +1306,95 @@ form.inplaceeditor-form a { /* The cancel link */ border: 1px solid; cursor:pointer; } + + + +/* ============================================================================== */ +/* CSS for color picker */ +/* ============================================================================== */ + +FIELDSET { + padding : 0px; + margin : 0px; + color : black; +} +LEGEND { + font-family : Tahoma; + font-size : 10pt; + color : black; +} +A.color, A.color:active, A.color:visited { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + border : 1px inset white; +} +A.color:hover { + border : 1px outset white; +} +A.none, A.none:active, A.none:visited, A.none:hover { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + cursor : default; + border : 1px solid threedface; +} +.tblColor { + display : none; +} +.tdColor { + padding : 1px; +} +.tblContainer { + background-color : threedface; +} +.tblGlobal { + position : absolute; + top : 0px; + left : 0px; + display : none; + background-color : threedface; + border : 2px outset; +} +.tdContainer { + padding : 5px; +} +.tdDisplay { + width : 50%; + height : 20px; + line-height : 20px; + border : 1px outset white; +} +.tdDisplayTxt { + width : 50%; + height : 24px; + line-height : 12px; + font-family : Tahoma; + font-size : 8pt; + color : black; + text-align : center; +} +.btnColor { + width : 100%; + font-family : Tahoma; + font-size : 10pt; + padding : 0px; + margin : 0px; +} +.btnPalette { + width : 100%; + font-family : Tahoma; + font-size : 8pt; + padding : 0px; + margin : 0px; +} diff --git a/htdocs/theme/bluelagoon/bluelagoon.css b/htdocs/theme/bluelagoon/bluelagoon.css index f4b05ec9ad5..b69458d0433 100644 --- a/htdocs/theme/bluelagoon/bluelagoon.css +++ b/htdocs/theme/bluelagoon/bluelagoon.css @@ -867,3 +867,94 @@ div.menuFleche } + + +/* ============================================================================== */ +/* CSS for color picker */ +/* ============================================================================== */ + +FIELDSET { + padding : 0px; + margin : 0px; + color : black; +} +LEGEND { + font-family : Tahoma; + font-size : 10pt; + color : black; +} +A.color, A.color:active, A.color:visited { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + border : 1px inset white; +} +A.color:hover { + border : 1px outset white; +} +A.none, A.none:active, A.none:visited, A.none:hover { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + cursor : default; + border : 1px solid threedface; +} +.tblColor { + display : none; +} +.tdColor { + padding : 1px; +} +.tblContainer { + background-color : threedface; +} +.tblGlobal { + position : absolute; + top : 0px; + left : 0px; + display : none; + background-color : threedface; + border : 2px outset; +} +.tdContainer { + padding : 5px; +} +.tdDisplay { + width : 50%; + height : 20px; + line-height : 20px; + border : 1px outset white; +} +.tdDisplayTxt { + width : 50%; + height : 24px; + line-height : 12px; + font-family : Tahoma; + font-size : 8pt; + color : black; + text-align : center; +} +.btnColor { + width : 100%; + font-family : Tahoma; + font-size : 10pt; + padding : 0px; + margin : 0px; +} +.btnPalette { + width : 100%; + font-family : Tahoma; + font-size : 8pt; + padding : 0px; + margin : 0px; +} diff --git a/htdocs/theme/common/colorpicker.css b/htdocs/theme/common/colorpicker.css deleted file mode 100644 index 441f02db521..00000000000 --- a/htdocs/theme/common/colorpicker.css +++ /dev/null @@ -1,90 +0,0 @@ -TABLE, THEAD, TBODY, TFOOT, TH, TR, TD { - margin : 0px; - padding : 0px; - border-spacing : 0px; -} -FIELDSET { - padding : 0px; - margin : 0px; - color : black; -} -LEGEND { - font-family : Tahoma; - font-size : 10pt; - color : black; -} -A.color, A.color:active, A.color:visited { - position : relative; - display : block; - text-decoration : none; - width : 10px; - height : 10px; - line-height : 10px; - margin : 0px; - padding : 0px; - border : 1px inset white; -} -A.color:hover { - border : 1px outset white; -} -A.none, A.none:active, A.none:visited, A.none:hover { - position : relative; - display : block; - text-decoration : none; - width : 10px; - height : 10px; - line-height : 10px; - margin : 0px; - padding : 0px; - cursor : default; - border : 1px solid threedface; -} -.tblColor { - display : none; -} -.tdColor { - padding : 1px; -} -.tblContainer { - background-color : threedface; -} -.tblGlobal { - position : absolute; - top : 0px; - left : 0px; - display : none; - background-color : threedface; - border : 2px outset; -} -.tdContainer { - padding : 5px; -} -.tdDisplay { - width : 50%; - height : 20px; - line-height : 20px; - border : 1px outset white; -} -.tdDisplayTxt { - width : 50%; - height : 24px; - line-height : 12px; - font-family : Tahoma; - font-size : 8pt; - color : black; - text-align : center; -} -.btnColor { - width : 100%; - font-family : Tahoma; - font-size : 10pt; - padding : 0px; - margin : 0px; -} -.btnPalette { - width : 100%; - font-family : Tahoma; - font-size : 8pt; - padding : 0px; - margin : 0px; -} \ No newline at end of file diff --git a/htdocs/theme/eldy/eldy.css.php b/htdocs/theme/eldy/eldy.css.php index 71b931d93e5..4d2557ed8e0 100644 --- a/htdocs/theme/eldy/eldy.css.php +++ b/htdocs/theme/eldy/eldy.css.php @@ -1404,7 +1404,7 @@ div.menuFleche /* ============================================================================== */ -/* Affichage tableau Excel */ +/* Show Excel tabs */ /* ============================================================================== */ .table_data @@ -1445,4 +1445,95 @@ div.menuFleche border-style:groove; border: 1px solid; cursor:pointer; +} + + +/* ============================================================================== */ +/* CSS for color picker */ +/* ============================================================================== */ + +FIELDSET { + padding : 0px; + margin : 0px; + color : black; +} +LEGEND { + font-family : Tahoma; + font-size : 10pt; + color : black; +} +A.color, A.color:active, A.color:visited { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + border : 1px inset white; +} +A.color:hover { + border : 1px outset white; +} +A.none, A.none:active, A.none:visited, A.none:hover { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + cursor : default; + border : 1px solid threedface; +} +.tblColor { + display : none; +} +.tdColor { + padding : 1px; +} +.tblContainer { + background-color : threedface; +} +.tblGlobal { + position : absolute; + top : 0px; + left : 0px; + display : none; + background-color : threedface; + border : 2px outset; +} +.tdContainer { + padding : 5px; +} +.tdDisplay { + width : 50%; + height : 20px; + line-height : 20px; + border : 1px outset white; +} +.tdDisplayTxt { + width : 50%; + height : 24px; + line-height : 12px; + font-family : Tahoma; + font-size : 8pt; + color : black; + text-align : center; +} +.btnColor { + width : 100%; + font-family : Tahoma; + font-size : 10pt; + padding : 0px; + margin : 0px; +} +.btnPalette { + width : 100%; + font-family : Tahoma; + font-size : 8pt; + padding : 0px; + margin : 0px; } \ No newline at end of file diff --git a/htdocs/theme/freelug/freelug.css.php b/htdocs/theme/freelug/freelug.css.php index cddea1de274..34635609a8c 100644 --- a/htdocs/theme/freelug/freelug.css.php +++ b/htdocs/theme/freelug/freelug.css.php @@ -1084,3 +1084,95 @@ div.menuFleche } + + +/* ============================================================================== */ +/* CSS for color picker */ +/* ============================================================================== */ + +FIELDSET { + padding : 0px; + margin : 0px; + color : black; +} +LEGEND { + font-family : Tahoma; + font-size : 10pt; + color : black; +} +A.color, A.color:active, A.color:visited { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + border : 1px inset white; +} +A.color:hover { + border : 1px outset white; +} +A.none, A.none:active, A.none:visited, A.none:hover { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + cursor : default; + border : 1px solid threedface; +} +.tblColor { + display : none; +} +.tdColor { + padding : 1px; +} +.tblContainer { + background-color : threedface; +} +.tblGlobal { + position : absolute; + top : 0px; + left : 0px; + display : none; + background-color : threedface; + border : 2px outset; +} +.tdContainer { + padding : 5px; +} +.tdDisplay { + width : 50%; + height : 20px; + line-height : 20px; + border : 1px outset white; +} +.tdDisplayTxt { + width : 50%; + height : 24px; + line-height : 12px; + font-family : Tahoma; + font-size : 8pt; + color : black; + text-align : center; +} +.btnColor { + width : 100%; + font-family : Tahoma; + font-size : 10pt; + padding : 0px; + margin : 0px; +} +.btnPalette { + width : 100%; + font-family : Tahoma; + font-size : 8pt; + padding : 0px; + margin : 0px; +} + diff --git a/htdocs/theme/rodolphe/rodolphe.css b/htdocs/theme/rodolphe/rodolphe.css index 17a733b9eff..db2bf7578c1 100644 --- a/htdocs/theme/rodolphe/rodolphe.css +++ b/htdocs/theme/rodolphe/rodolphe.css @@ -810,3 +810,95 @@ vertical-align:middle; cursor: pointer; } + + +/* ============================================================================== */ +/* CSS for color picker */ +/* ============================================================================== */ + +FIELDSET { + padding : 0px; + margin : 0px; + color : black; +} +LEGEND { + font-family : Tahoma; + font-size : 10pt; + color : black; +} +A.color, A.color:active, A.color:visited { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + border : 1px inset white; +} +A.color:hover { + border : 1px outset white; +} +A.none, A.none:active, A.none:visited, A.none:hover { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + cursor : default; + border : 1px solid threedface; +} +.tblColor { + display : none; +} +.tdColor { + padding : 1px; +} +.tblContainer { + background-color : threedface; +} +.tblGlobal { + position : absolute; + top : 0px; + left : 0px; + display : none; + background-color : threedface; + border : 2px outset; +} +.tdContainer { + padding : 5px; +} +.tdDisplay { + width : 50%; + height : 20px; + line-height : 20px; + border : 1px outset white; +} +.tdDisplayTxt { + width : 50%; + height : 24px; + line-height : 12px; + font-family : Tahoma; + font-size : 8pt; + color : black; + text-align : center; +} +.btnColor { + width : 100%; + font-family : Tahoma; + font-size : 10pt; + padding : 0px; + margin : 0px; +} +.btnPalette { + width : 100%; + font-family : Tahoma; + font-size : 8pt; + padding : 0px; + margin : 0px; +} + diff --git a/htdocs/theme/yellow/yellow.css.php b/htdocs/theme/yellow/yellow.css.php index 7687fb0068b..8fe73b79ab8 100644 --- a/htdocs/theme/yellow/yellow.css.php +++ b/htdocs/theme/yellow/yellow.css.php @@ -1112,3 +1112,95 @@ div.menuFleche position:relative; } + + + +/* ============================================================================== */ +/* CSS for color picker */ +/* ============================================================================== */ + +FIELDSET { + padding : 0px; + margin : 0px; + color : black; +} +LEGEND { + font-family : Tahoma; + font-size : 10pt; + color : black; +} +A.color, A.color:active, A.color:visited { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + border : 1px inset white; +} +A.color:hover { + border : 1px outset white; +} +A.none, A.none:active, A.none:visited, A.none:hover { + position : relative; + display : block; + text-decoration : none; + width : 10px; + height : 10px; + line-height : 10px; + margin : 0px; + padding : 0px; + cursor : default; + border : 1px solid threedface; +} +.tblColor { + display : none; +} +.tdColor { + padding : 1px; +} +.tblContainer { + background-color : threedface; +} +.tblGlobal { + position : absolute; + top : 0px; + left : 0px; + display : none; + background-color : threedface; + border : 2px outset; +} +.tdContainer { + padding : 5px; +} +.tdDisplay { + width : 50%; + height : 20px; + line-height : 20px; + border : 1px outset white; +} +.tdDisplayTxt { + width : 50%; + height : 24px; + line-height : 12px; + font-family : Tahoma; + font-size : 8pt; + color : black; + text-align : center; +} +.btnColor { + width : 100%; + font-family : Tahoma; + font-size : 10pt; + padding : 0px; + margin : 0px; +} +.btnPalette { + width : 100%; + font-family : Tahoma; + font-size : 8pt; + padding : 0px; + margin : 0px; +}