aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Ghelfi <[email protected]>2013-06-05 23:14:58 +0300
committerRobert Burns <[email protected]>2013-06-06 21:00:32 -0400
commitdf5ddeb7cc3b71c96b691e073c252690679dd4ea (patch)
tree1a892f9afd15f9495603a4c0abcb37f773af67a9
parent45c5b4e45c1d6479801dc205e13b350e334ebcd0 (diff)
downloadbootstrap-df5ddeb7cc3b71c96b691e073c252690679dd4ea.tar.xz
bootstrap-df5ddeb7cc3b71c96b691e073c252690679dd4ea.zip
Set validation states also for addons
-rw-r--r--docs/assets/css/bootstrap.css18
-rw-r--r--less/mixins.less6
2 files changed, 24 insertions, 0 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 8642bf95d..953118071 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -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 {
diff --git a/less/mixins.less b/less/mixins.less
index d4c628e13..9825e9a2d 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -486,4 +486,10 @@
.box-shadow(@shadow);
}
}
+ // Set validation states also for addons
+ .input-group-addon {
+ color: @text-color;
+ border-color: @border-color;
+ background-color: @background-color;
+ }
}