Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
190d3c9c
Commit
190d3c9c
authored
Aug 21, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #4526: box-shadow on .radio and .checkbox if .control-group has a form field state
parent
e2ecd2df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
6 deletions
+32
-6
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+15
-6
less/mixins.less
less/mixins.less
+4
-0
less/tests/css-tests.html
less/tests/css-tests.html
+13
-0
No files found.
docs/assets/css/bootstrap.css
View file @
190d3c9c
...
@@ -1301,14 +1301,17 @@ input[type="checkbox"][readonly] {
...
@@ -1301,14 +1301,17 @@ input[type="checkbox"][readonly] {
.control-group.warning
select
,
.control-group.warning
select
,
.control-group.warning
textarea
{
.control-group.warning
textarea
{
color
:
#c09853
;
color
:
#c09853
;
}
.control-group.warning
input
,
.control-group.warning
select
,
.control-group.warning
textarea
{
border-color
:
#c09853
;
border-color
:
#c09853
;
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
-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
);
-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
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
}
}
.control-group.warning
.checkbox
:focus
,
.control-group.warning
.radio
:focus
,
.control-group.warning
input
:focus
,
.control-group.warning
input
:focus
,
.control-group.warning
select
:focus
,
.control-group.warning
select
:focus
,
.control-group.warning
textarea
:focus
{
.control-group.warning
textarea
:focus
{
...
@@ -1337,14 +1340,17 @@ input[type="checkbox"][readonly] {
...
@@ -1337,14 +1340,17 @@ input[type="checkbox"][readonly] {
.control-group.error
select
,
.control-group.error
select
,
.control-group.error
textarea
{
.control-group.error
textarea
{
color
:
#b94a48
;
color
:
#b94a48
;
}
.control-group.error
input
,
.control-group.error
select
,
.control-group.error
textarea
{
border-color
:
#b94a48
;
border-color
:
#b94a48
;
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
-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
);
-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
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
}
}
.control-group.error
.checkbox
:focus
,
.control-group.error
.radio
:focus
,
.control-group.error
input
:focus
,
.control-group.error
input
:focus
,
.control-group.error
select
:focus
,
.control-group.error
select
:focus
,
.control-group.error
textarea
:focus
{
.control-group.error
textarea
:focus
{
...
@@ -1373,14 +1379,17 @@ input[type="checkbox"][readonly] {
...
@@ -1373,14 +1379,17 @@ input[type="checkbox"][readonly] {
.control-group.success
select
,
.control-group.success
select
,
.control-group.success
textarea
{
.control-group.success
textarea
{
color
:
#468847
;
color
:
#468847
;
}
.control-group.success
input
,
.control-group.success
select
,
.control-group.success
textarea
{
border-color
:
#468847
;
border-color
:
#468847
;
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
-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
);
-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
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
}
}
.control-group.success
.checkbox
:focus
,
.control-group.success
.radio
:focus
,
.control-group.success
input
:focus
,
.control-group.success
input
:focus
,
.control-group.success
select
:focus
,
.control-group.success
select
:focus
,
.control-group.success
textarea
:focus
{
.control-group.success
textarea
:focus
{
...
...
less/mixins.less
View file @
190d3c9c
...
@@ -175,6 +175,10 @@
...
@@ -175,6 +175,10 @@
select,
select,
textarea {
textarea {
color: @textColor;
color: @textColor;
}
input,
select,
textarea {
border-color: @borderColor;
border-color: @borderColor;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
&:focus {
&:focus {
...
...
less/tests/css-tests.html
View file @
190d3c9c
...
@@ -597,6 +597,19 @@
...
@@ -597,6 +597,19 @@
<h1>
Forms
</h1>
<h1>
Forms
</h1>
</div>
</div>
<h4>
Horizontal form errors
</h4>
<form
class=
"form-horizontal"
>
<div
class=
"control-group error"
>
<label
class=
"control-label"
for=
"inputError"
>
Radio with error
</label>
<div
class=
"controls"
>
<label
class=
"radio"
>
<input
type=
"radio"
id=
"inputError"
>
Oh hai
</label>
<span
class=
"help-inline"
>
Please correct the error
</span>
</div>
</div>
</form>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"span4"
>
<div
class=
"span4"
>
<h4>
Prepend and append on inputs
</h4>
<h4>
Prepend and append on inputs
</h4>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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