diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 2d2e7be0d6..49e63bd315 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1588,16 +1588,16 @@ input[type="checkbox"][readonly] { border-color: #3a87ad; } -input:invalid, -select:invalid, -textarea:invalid { +input:focus:invalid, +textarea:focus:invalid, +select:focus:invalid { color: #b94a48; border-color: #ee5f5b; } -input:invalid:focus, -select:invalid:focus, -textarea:invalid:focus { +input:focus:invalid:focus, +textarea:focus:invalid:focus, +select:focus:invalid:focus { border-color: #e9322d; -webkit-box-shadow: 0 0 6px #f8b9b7; -moz-box-shadow: 0 0 6px #f8b9b7; diff --git a/docs/base-css.html b/docs/base-css.html index ff2325dfa4..816b465c90 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -1571,13 +1571,13 @@ For example, <code><section></code> should be wrapped as inlin <input class="input-xlarge" id="focusedInput" type="text" value="This is focused..."> -
Style inputs via default browser functionality with :valid
.
Style inputs via default browser functionality with :invalid
. Specify a type
and add the required
attribute.
-<input class="span4" type="text" placeholder="Required input" required> +<input class="span3" type="email" required>
{{_i}}Style inputs via default browser functionality with :valid
.{{/i}}
{{_i}}Style inputs via default browser functionality with :invalid
. Specify a type
and add the required
attribute.{{/i}}
-<input class="span4" type="text" placeholder="{{_i}}Required input{{/i}}" required> +<input class="span3" type="email" required>