Skip to content
GitLab
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
7843a665
Commit
7843a665
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
vertical align inline checkboxes/radios to improve rendering in topbar
parent
9db4f2a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/css/bootstrap.css
+7
-0
docs/assets/css/bootstrap.css
less/forms.less
+2
-1
less/forms.less
less/navbar.less
+9
-0
less/navbar.less
with
18 additions
and
1 deletion
+18
-1
docs/assets/css/bootstrap.css
+
7
-
0
View file @
7843a665
...
...
@@ -591,6 +591,7 @@ input[type="hidden"] {
.radio.inline
,
.checkbox.inline
{
display
:
inline-block
;
margin-bottom
:
0
;
vertical-align
:
middle
;
}
.radio.inline
+
.radio.inline
,
.checkbox.inline
+
.checkbox.inline
{
margin-left
:
10px
;
...
...
@@ -1953,6 +1954,12 @@ table .span12 {
margin-top
:
5px
;
margin-bottom
:
0
;
}
.navbar-form
.radio
,
.navbar-form
.checkbox
{
margin-top
:
5px
;
}
.navbar-form
input
[
type
=
"image"
],
.navbar-form
input
[
type
=
"checkbox"
],
.navbar-form
input
[
type
=
"radio"
]
{
margin-top
:
3px
;
}
.navbar-search
{
position
:
relative
;
float
:
left
;
...
...
This diff is collapsed.
Click to expand it.
less/forms.less
+
2
-
1
View file @
7843a665
...
...
@@ -86,7 +86,7 @@ input[type="radio"] {
line-height: normal;
border: 0;
cursor: pointer;
border-radius: 0 e("\0/");
border-radius: 0 e("\0/");
// Nuke border-radius for IE9 only
}
// Reset the file input to browser defaults
...
...
@@ -169,6 +169,7 @@ input[type="hidden"] {
.checkbox.inline {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.radio.inline + .radio.inline,
.checkbox.inline + .checkbox.inline {
...
...
This diff is collapsed.
Click to expand it.
less/navbar.less
+
9
-
0
View file @
7843a665
...
...
@@ -63,6 +63,15 @@
margin-top: 5px;
margin-bottom: 0;
}
.radio,
.checkbox {
margin-top: 5px;
}
input[type="image"],
input[type="checkbox"],
input[type="radio"] {
margin-top: 3px;
}
}
// Navbar search
...
...
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