CSS input field with focus

0001302: FICHES: mise en évidence champs NOM/POSTE/CODE
This commit is contained in:
Dany De Bontridder 2017-10-23 10:27:57 +02:00
parent 3d26d878fb
commit 7049a96ab5
2 changed files with 27 additions and 6 deletions

View file

@ -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%;

View file

@ -464,7 +464,7 @@ class Fiche
}
}
$r.="<TR>".td(_("Poste Comptable"),' class="input_text" ' ).td($w->input().$msg)."</TR>";
$r.="<TR>".td(_("Poste Comptable"),' class="highlight input_text" ' ).td($w->input().$msg)."</TR>";
continue;
}
elseif ( $attr->ad_id == ATTR_DEF_TVA)
@ -529,7 +529,11 @@ class Fiche
{
$bulle=HtmlInput::infobulle(21);
}
$r.="<TR>" . td(_($w->label)." $bulle", ' class="input_text" ') . td($w->input()." $msg")." </TR>";
if ($attr->ad_id == ATTR_DEF_NAME || $attr->ad_id== ATTR_DEF_QUICKCODE)
$class=" input_text highlight info";
else
$class="input_text";
$r.="<TR>" . td(_($w->label)." $bulle", ' class="'.$class.'" ') . td($w->input()." $msg")." </TR>";
}
$r.= '</table>';
return $r;
@ -708,7 +712,12 @@ class Fiche
{
$bulle=HtmlInput::infobulle(21);
}
$ret.="<TR>".td(_($r->ad_text).$bulle).td($w->input()." ".$msg)." </TR>";
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.="<TR>".td(_($r->ad_text).$bulle,'class="'.$class.'"').td($w->input()." ".$msg)." </TR>";
}
$ret.="</table>";