]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Set validation states also for addons 8097/head
authorWilliam Ghelfi <trumbitta@gmail.com>
Wed, 5 Jun 2013 20:14:58 +0000 (23:14 +0300)
committerRobert Burns <burnsra@gmail.com>
Fri, 7 Jun 2013 01:00:32 +0000 (21:00 -0400)
docs/assets/css/bootstrap.css
less/mixins.less

index 8642bf95db4b36f8ffab1ece26a7b01acb890a50..953118071b2513acb869c01c8f091428e0d2c59e 100644 (file)
@@ -1544,6 +1544,12 @@ fieldset[disabled] input[type="checkbox"] {
           box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;
 }
 
+.has-warning .input-group-addon {
+  color: #c09853;
+  background-color: #fcf8e3;
+  border-color: #c09853;
+}
+
 .has-error .control-label {
   color: #b94a48;
 }
@@ -1561,6 +1567,12 @@ fieldset[disabled] input[type="checkbox"] {
           box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
 }
 
+.has-error .input-group-addon {
+  color: #b94a48;
+  background-color: #f2dede;
+  border-color: #b94a48;
+}
+
 .has-success .control-label {
   color: #468847;
 }
@@ -1578,6 +1590,12 @@ fieldset[disabled] input[type="checkbox"] {
           box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;
 }
 
+.has-success .input-group-addon {
+  color: #468847;
+  background-color: #dff0d8;
+  border-color: #468847;
+}
+
 input:focus:invalid,
 textarea:focus:invalid,
 select:focus:invalid {
index d4c628e13bbf74f863e42d6d4dc96703da4d815c..9825e9a2d683d82c265ada548d07b281e0739efb 100644 (file)
       .box-shadow(@shadow);
     }
   }
+  // Set validation states also for addons
+  .input-group-addon {
+    color: @text-color;
+    border-color: @border-color;
+    background-color: @background-color;
+  }  
 }