diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index d35ad415c6..ed18e5c8d5 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1406,6 +1406,45 @@ input[type="checkbox"][readonly] { border-color: #468847; } +.control-group.info > label, +.control-group.info .help-block, +.control-group.info .help-inline { + color: #3a87ad; +} + +.control-group.info .checkbox, +.control-group.info .radio, +.control-group.info input, +.control-group.info select, +.control-group.info textarea { + color: #3a87ad; +} + +.control-group.info input, +.control-group.info select, +.control-group.info textarea { + border-color: #3a87ad; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); +} + +.control-group.info input:focus, +.control-group.info select:focus, +.control-group.info textarea:focus { + border-color: #2d6987; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; + -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; +} + +.control-group.info .input-prepend .add-on, +.control-group.info .input-append .add-on { + color: #3a87ad; + background-color: #d9edf7; + border-color: #3a87ad; +} + input:focus:required:invalid, textarea:focus:required:invalid, select:focus:required:invalid { @@ -2038,6 +2077,10 @@ table .span24 { background-color: #f2dede; } +.table tbody tr.warning td { + background-color: #fcf8e3; +} + .table tbody tr.info td { background-color: #d9edf7; } diff --git a/docs/base-css.html b/docs/base-css.html index 095fbc6b72..7671d2ad6f 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -686,6 +686,12 @@ For example, <code><section></code> should be wrapped as inlin Indicates a dangerous or potentially negative action. + + + .warning + + Indicates a warning that might need attention. + .info @@ -717,12 +723,18 @@ For example, <code><section></code> should be wrapped as inlin 02/04/2012 Declined - + 3 TB - Monthly 03/04/2012 Pending + + 4 + TB - Monthly + 04/04/2012 + Call in to confirm + @@ -1355,7 +1367,7 @@ For example, <code><section></code> should be wrapped as inlin

Validation states

-

Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.

+

Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding .control-group.

@@ -1372,6 +1384,13 @@ For example, <code><section></code> should be wrapped as inlin Please correct the error
+
+ +
+ + Username is taken +
+
diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 9016570df1..c22fa9821a 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -623,6 +623,12 @@ {{_i}}Indicates a dangerous or potentially negative action.{{/i}} + + + .warning + + {{_i}}Indicates a warning that might need attention.{{/i}} + .info @@ -654,12 +660,18 @@ 02/04/2012 Declined - + 3 TB - Monthly 03/04/2012 Pending + + 4 + TB - Monthly + 04/04/2012 + Call in to confirm +
{{! /example }} @@ -1292,7 +1304,7 @@

{{_i}}Validation states{{/i}}

-

{{_i}}Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.{{/i}}

+

{{_i}}Bootstrap includes validation styles for error, warning, info, and success messages. To use, add the appropriate class to the surrounding .control-group.{{/i}}

@@ -1309,6 +1321,13 @@ {{_i}}Please correct the error{{/i}}
+
+ +
+ + {{_i}}Username is taken{{/i}} +
+
diff --git a/less/forms.less b/less/forms.less index 36f37496be..5a8463344f 100644 --- a/less/forms.less +++ b/less/forms.less @@ -349,6 +349,10 @@ input[type="checkbox"][readonly] { .control-group.success { .formFieldState(@successText, @successText, @successBackground); } +// Success +.control-group.info { + .formFieldState(@infoText, @infoText, @infoBackground); +} // HTML5 invalid states // Shares styles with the .control-group.error above diff --git a/less/tables.less b/less/tables.less index 853b97e390..0f0c310e0b 100644 --- a/less/tables.less +++ b/less/tables.less @@ -219,6 +219,9 @@ table { tbody tr.error td { background-color: @errorBackground; } + tbody tr.warning td { + background-color: @warningBackground; + } tbody tr.info td { background-color: @infoBackground; }