noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 100/219: CSS input field with focus 0001302:


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 100/219: CSS input field with focus 0001302: FICHES: mise en évidence champs NOM/POSTE/CODE
Date: Mon, 18 Dec 2017 13:22:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 7049a96ab5dedcec34dbd5fe2e59055e4a540baf
Author: Dany De Bontridder <address@hidden>
Date:   Mon Oct 23 10:27:57 2017 +0200

    CSS input field with focus
    0001302: FICHES: mise en évidence champs NOM/POSTE/CODE
---
 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 e6ae987..18c6a9e 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 9848dc9..23d6049 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -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>";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]