mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
remove padding from first-child of inline radios/checkboxes
This commit is contained in:
parent
22d52fca46
commit
475b985a0e
2 changed files with 8 additions and 0 deletions
3
docs/assets/css/bootstrap.css
vendored
3
docs/assets/css/bootstrap.css
vendored
|
@ -596,6 +596,9 @@ input[type="hidden"] {
|
||||||
.radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline {
|
.radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
.controls > .radio.inline:first-child, .controls > .checkbox.inline:first-child {
|
||||||
|
padding-top: 5px;
|
||||||
|
}
|
||||||
input, textarea {
|
input, textarea {
|
||||||
-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);
|
||||||
|
|
|
@ -175,6 +175,11 @@ input[type="hidden"] {
|
||||||
.checkbox.inline + .checkbox.inline {
|
.checkbox.inline + .checkbox.inline {
|
||||||
margin-left: 10px; // space out consecutive inline controls
|
margin-left: 10px; // space out consecutive inline controls
|
||||||
}
|
}
|
||||||
|
// But don't forget to remove their padding on first-child
|
||||||
|
.controls > .radio.inline:first-child,
|
||||||
|
.controls > .checkbox.inline:first-child {
|
||||||
|
padding-top: 5px; // has to be padding because margin collaspes
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue