Move css for color picker in main CSS to reduce nb of CSS files.
This commit is contained in:
parent
86625da643
commit
2ca507c846
@ -195,6 +195,7 @@ class FormOther
|
||||
*/
|
||||
function select_color($set_color='', $prefix='f_color', $form_name='objForm')
|
||||
{
|
||||
print "\n".'<table class="nobordernopadding"><tr><td valign="middle">';
|
||||
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.'/theme/common/colorpicker.css" />'."\n";
|
||||
print '<script type="text/javascript" src="'.DOL_URL_ROOT.'/lib/lib_colorpicker.js"></script>'."\n";
|
||||
print '<script type="text/javascript">
|
||||
@ -212,7 +213,9 @@ class FormOther
|
||||
}
|
||||
</script>'."\n";
|
||||
print '<input type="text" size="10" name="'.$prefix.'" value="'.$set_color.'" maxlength="7" style="font-family:Tahoma;font-size:x-small;">'."\n";
|
||||
print '</td><td valign="middle">';
|
||||
print '<img src="'.DOL_URL_ROOT.'/theme/common/colorpicker.png" width="21" height="20" border="0" onClick="fctShow(document.'.$form_name.'.'.$prefix.');" style="cursor:pointer;">'."\n";
|
||||
print '</td></tr></table>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user