From 1de8ab37854b3566c92cb8446ebd50737049b534 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 26 Jun 2013 14:38:56 +0200 Subject: [PATCH] Fix: CSS --- htdocs/core/class/html.form.class.php | 2 +- htdocs/theme/amarok/style.css.php | 8 ++++++-- htdocs/theme/auguria/style.css.php | 8 ++++++-- htdocs/theme/bureau2crea/style.css.php | 8 ++++++-- htdocs/theme/cameleo/style.css.php | 8 ++++++-- htdocs/theme/eldy/style.css.php | 8 ++++++-- 6 files changed, 31 insertions(+), 11 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 8113d95a201..d0ed0b911eb 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3497,7 +3497,7 @@ class Form // Year if ($empty || $set_time == -1) { - $retstring.='<input'.($disabled?' disabled="disabled"':'').' class="flat" type="text" size="3" maxlength="4" name="'.$prefix.'year" value="'.$syear.'">'; + $retstring.='<input'.($disabled?' disabled="disabled"':'').' placeholder="'.dol_escape_htmltag($langs->trans("Year")).'" class="flat" type="text" size="3" maxlength="4" name="'.$prefix.'year" value="'.$syear.'">'; } else { diff --git a/htdocs/theme/amarok/style.css.php b/htdocs/theme/amarok/style.css.php index b81ae3a090e..7dd45121a00 100755 --- a/htdocs/theme/amarok/style.css.php +++ b/htdocs/theme/amarok/style.css.php @@ -256,6 +256,10 @@ input:-webkit-autofill { background-image:none !important; -webkit-box-shadow: 0 0 0 50px <?php echo empty($dol_use_jmobile)?'#FBFFEA':'#FFFFFF' ?> inset; } +::-webkit-input-placeholder { color:#ccc; } +::-moz-placeholder { color:#ccc; } /* firefox 19+ */ +:-ms-input-placeholder { color:#ccc; } /* ie */ +input:-moz-placeholder { color:#ccc; } <?php if (! empty($dol_use_jmobile)) { ?> legend { margin-bottom: 8px; } @@ -2150,10 +2154,10 @@ div.ui-radio { display: inline-block; } -.ui-radio input { +.ui-checkbox input, .ui-radio input { height: auto; width: auto; - margin: 0; + margin: 4px; position: static; } .ui-mobile fieldset diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 51ce8347492..3f6237ee36d 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -148,6 +148,10 @@ input:-webkit-autofill { background-image:none !important; -webkit-box-shadow: 0 0 0 50px <?php echo empty($dol_use_jmobile)?'#FBFFEA':'#FFFFFF' ?> inset; } +::-webkit-input-placeholder { color:#ccc; } +::-moz-placeholder { color:#ccc; } /* firefox 19+ */ +:-ms-input-placeholder { color:#ccc; } /* ie */ +input:-moz-placeholder { color:#ccc; } <?php if (! empty($dol_use_jmobile)) { ?> legend { margin-bottom: 8px; } @@ -2283,10 +2287,10 @@ div.ui-radio { display: inline-block; } -.ui-radio input { +.ui-checkbox input, .ui-radio input { height: auto; width: auto; - margin: 0; + margin: 4px; position: static; } .ui-mobile fieldset diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index 3984389566c..134083c7dd2 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -176,6 +176,10 @@ input.button[type=submit] { font-size: 10px; display: inline; } +::-webkit-input-placeholder { color:#ccc; } +::-moz-placeholder { color:#ccc; } /* firefox 19+ */ +:-ms-input-placeholder { color:#ccc; } /* ie */ +input:-moz-placeholder { color:#ccc; } <?php if (! empty($dol_use_jmobile)) { ?> legend { margin-bottom: 8px; } @@ -2493,10 +2497,10 @@ div.ui-radio { display: inline-block; } -.ui-radio input { +.ui-checkbox input, .ui-radio input { height: auto; width: auto; - margin: 0; + margin: 4px; position: static; } .ui-mobile fieldset diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index d2074ed79e1..d71151f28bf 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -154,6 +154,10 @@ input.button[type=submit] { font-size: 11px; font-weight: bold; } +::-webkit-input-placeholder { color:#ccc; } +::-moz-placeholder { color:#ccc; } /* firefox 19+ */ +:-ms-input-placeholder { color:#ccc; } /* ie */ +input:-moz-placeholder { color:#ccc; } <?php if (! empty($dol_use_jmobile)) { ?> legend { margin-bottom: 8px; } @@ -2384,10 +2388,10 @@ div.ui-radio { display: inline-block; } -.ui-radio input { +.ui-checkbox input, .ui-radio input { height: auto; width: auto; - margin: 0; + margin: 4px; position: static; } .ui-mobile fieldset diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 43c9313367d..82e7d22fe2e 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -285,6 +285,10 @@ input:-webkit-autofill { background-image:none !important; -webkit-box-shadow: 0 0 0 50px <?php echo empty($dol_use_jmobile)?'#FBFFEA':'#FFFFFF' ?> inset; } +::-webkit-input-placeholder { color:#ccc; } +::-moz-placeholder { color:#ccc; } /* firefox 19+ */ +:-ms-input-placeholder { color:#ccc; } /* ie */ +input:-moz-placeholder { color:#ccc; } <?php if (! empty($dol_use_jmobile)) { ?> legend { margin-bottom: 8px; } @@ -2708,10 +2712,10 @@ div.ui-radio, div.ui-checkbox display: inline-block; border-bottom: 0px !important; } -ui-checkbox input, .ui-radio input { +.ui-checkbox input, .ui-radio input { height: auto; width: auto; - margin: 0; + margin: 4px; position: static; } .ui-mobile fieldset -- GitLab