From 7049a96ab5dedcec34dbd5fe2e59055e4a540baf Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 23 Oct 2017 10:27:57 +0200 Subject: [PATCH] =?UTF-8?q?CSS=20input=20field=20with=20focus=200001302:?= =?UTF-8?q?=20FICHES:=20mise=20en=20=C3=A9vidence=20champs=20NOM/POSTE/COD?= =?UTF-8?q?E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/style-r692.css | 18 +++++++++++++++--- include/class/fiche.class.php | 15 ++++++++++++--- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/html/style-r692.css b/html/style-r692.css index e6ae98777..18c6a9e19 100644 --- a/html/style-r692.css +++ b/html/style-r692.css @@ -35,6 +35,11 @@ input{ font-size:14px; } +input:focus { + border:solid 1px orange; + margin:1px; + background-color: lightyellow; +} .notice { color:#FF0000; font-style: italic; @@ -260,6 +265,7 @@ tr.odd { .highlight { font-weight: bolder; font-size:14px; + font-size:1.05rem; } tr.highlight { font-weight: bold; @@ -465,10 +471,10 @@ a.document:hover { margin:1px; border-radius: 2px; } -.input_text:hover { - border:solid 1px #0000FF; +.input_text:focus { + border:solid 1px orange; margin:1px; - background-color: #F93; + background-color: lightyellow; } h1.legend, legend { font-weight: bold; @@ -1189,6 +1195,7 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8a8d9b', end padding-bottom: 2px; font-size: 1rem; + height: 25px; } h3.title { color: #0000FF; @@ -1264,6 +1271,11 @@ textarea.itextarea{ height:120px; } +textarea.itextarea:focus { + border:solid 1px orange; + margin:1px; + background-color: lightyellow; +} div#notice { position:absolute; right:5%; diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php index 9848dc9e4..23d60491e 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -464,7 +464,7 @@ class Fiche } } - $r.="".td(_("Poste Comptable"),' class="input_text" ' ).td($w->input().$msg).""; + $r.="".td(_("Poste Comptable"),' class="highlight input_text" ' ).td($w->input().$msg).""; continue; } elseif ( $attr->ad_id == ATTR_DEF_TVA) @@ -529,7 +529,11 @@ class Fiche { $bulle=HtmlInput::infobulle(21); } - $r.="" . td(_($w->label)." $bulle", ' class="input_text" ') . td($w->input()." $msg")." "; + if ($attr->ad_id == ATTR_DEF_NAME || $attr->ad_id== ATTR_DEF_QUICKCODE) + $class=" input_text highlight info"; + else + $class="input_text"; + $r.="" . td(_($w->label)." $bulle", ' class="'.$class.'" ') . td($w->input()." $msg")." "; } $r.= ''; return $r; @@ -708,7 +712,12 @@ class Fiche { $bulle=HtmlInput::infobulle(21); } - $ret.="".td(_($r->ad_text).$bulle).td($w->input()." ".$msg)." "; + if ($r->ad_id == ATTR_DEF_NAME || $r->ad_id== ATTR_DEF_QUICKCODE||$r->ad_id==ATTR_DEF_ACCOUNT) + $class=" input_text highlight info"; + else + $class="input_text"; + + $ret.="".td(_($r->ad_text).$bulle,'class="'.$class.'"').td($w->input()." ".$msg)." "; } $ret.="";