Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
1209a375
Commit
1209a375
authored
13 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
:focus:required:invalid:
http://www.alistapart.com/articles/forward-thinking-form-validation
parent
2355ea03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootstrap.css
+3
-3
bootstrap.css
bootstrap.min.css
+1
-1
bootstrap.min.css
lib/forms.less
+3
-3
lib/forms.less
with
7 additions
and
7 deletions
+7
-7
bootstrap.css
+
3
-
3
View file @
1209a375
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sun Jan 22 20:
42:19
PST 2012
* Date: Sun Jan 22 20:
50:28
PST 2012
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
@@ -812,11 +812,11 @@ textarea[readonly] {
...
@@ -812,11 +812,11 @@ textarea[readonly] {
background-color
:
#bcddbc
;
background-color
:
#bcddbc
;
border-color
:
#468847
;
border-color
:
#468847
;
}
}
input
:invalid
,
textarea
:
invalid
,
select
:invalid
{
input
:
focus:required:
invalid
,
textarea
:
focus:required:invalid
,
select
:focus:required
:invalid
{
color
:
#b94a48
;
color
:
#b94a48
;
border-color
:
#ee5f5b
;
border-color
:
#ee5f5b
;
}
}
input
:invalid:focus
,
textarea
:invalid:focus
,
select
:invalid:focus
{
input
:
focus:required:
invalid:focus
,
textarea
:
focus:required:
invalid:focus
,
select
:
focus:required:
invalid:focus
{
border-color
:
#e9322d
;
border-color
:
#e9322d
;
-webkit-box-shadow
:
0
0
6px
#f8b9b7
;
-webkit-box-shadow
:
0
0
6px
#f8b9b7
;
-moz-box-shadow
:
0
0
6px
#f8b9b7
;
-moz-box-shadow
:
0
0
6px
#f8b9b7
;
...
...
This diff is collapsed.
Click to expand it.
bootstrap.min.css
+
1
-
1
View file @
1209a375
...
@@ -153,7 +153,7 @@ input[disabled],select[disabled],textarea[disabled],input[readonly],select[reado
...
@@ -153,7 +153,7 @@ input[disabled],select[disabled],textarea[disabled],input[readonly],select[reado
.control-group.success
>
label
,
.control-group.success
.help-block
,
.control-group.success
.help-inline
{
color
:
#468847
;}
.control-group.success
>
label
,
.control-group.success
.help-block
,
.control-group.success
.help-inline
{
color
:
#468847
;}
.control-group.success
input
,
.control-group.success
textarea
{
color
:
#468847
;
border-color
:
#57a957
;}
.control-group.success
input
:focus
,
.control-group.success
textarea
:focus
{
border-color
:
#458845
;
-webkit-box-shadow
:
0
0
6px
#9acc9a
;
-moz-box-shadow
:
0
0
6px
#9acc9a
;
box-shadow
:
0
0
6px
#9acc9a
;}
.control-group.success
input
,
.control-group.success
textarea
{
color
:
#468847
;
border-color
:
#57a957
;}
.control-group.success
input
:focus
,
.control-group.success
textarea
:focus
{
border-color
:
#458845
;
-webkit-box-shadow
:
0
0
6px
#9acc9a
;
-moz-box-shadow
:
0
0
6px
#9acc9a
;
box-shadow
:
0
0
6px
#9acc9a
;}
.control-group.success
.input-prepend
.add-on
,
.control-group.success
.input-append
.add-on
{
color
:
#468847
;
background-color
:
#bcddbc
;
border-color
:
#468847
;}
.control-group.success
.input-prepend
.add-on
,
.control-group.success
.input-append
.add-on
{
color
:
#468847
;
background-color
:
#bcddbc
;
border-color
:
#468847
;}
input
:invalid
,
textarea
:
invalid
,
select
:invalid
{
color
:
#b94a48
;
border-color
:
#ee5f5b
;}
input
:invalid:focus
,
textarea
:invalid:focus
,
select
:invalid:focus
{
border-color
:
#e9322d
;
-webkit-box-shadow
:
0
0
6px
#f8b9b7
;
-moz-box-shadow
:
0
0
6px
#f8b9b7
;
box-shadow
:
0
0
6px
#f8b9b7
;}
input
:
focus:required:
invalid
,
textarea
:
focus:required:invalid
,
select
:focus:required
:invalid
{
color
:
#b94a48
;
border-color
:
#ee5f5b
;}
input
:
focus:required:
invalid:focus
,
textarea
:
focus:required:
invalid:focus
,
select
:
focus:required:
invalid:focus
{
border-color
:
#e9322d
;
-webkit-box-shadow
:
0
0
6px
#f8b9b7
;
-moz-box-shadow
:
0
0
6px
#f8b9b7
;
box-shadow
:
0
0
6px
#f8b9b7
;}
.form-actions
{
padding
:
17px
20px
18px
;
margin-top
:
18px
;
margin-bottom
:
18px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;}
.form-actions
{
padding
:
17px
20px
18px
;
margin-top
:
18px
;
margin-bottom
:
18px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;}
.uneditable-input
{
display
:
block
;
background-color
:
#ffffff
;
border-color
:
#eee
;
-webkit-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
-moz-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
cursor
:
not-allowed
;}
.uneditable-input
{
display
:
block
;
background-color
:
#ffffff
;
border-color
:
#eee
;
-webkit-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
-moz-box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
box-shadow
:
inset
0
1px
2px
rgba
(
0
,
0
,
0
,
0.025
);
cursor
:
not-allowed
;}
:-moz-placeholder
{
color
:
#999999
;}
:-moz-placeholder
{
color
:
#999999
;}
...
...
This diff is collapsed.
Click to expand it.
lib/forms.less
+
3
-
3
View file @
1209a375
...
@@ -302,9 +302,9 @@ textarea[readonly] {
...
@@ -302,9 +302,9 @@ textarea[readonly] {
// HTML5 invalid states
// HTML5 invalid states
// Shares styles with the .control-group.error above
// Shares styles with the .control-group.error above
input:invalid,
input:
focus:required:
invalid,
textarea:invalid,
textarea:
focus:required:
invalid,
select:invalid {
select:
focus:required:
invalid {
color: #b94a48;
color: #b94a48;
border-color: #ee5f5b;
border-color: #ee5f5b;
&:focus {
&:focus {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets