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
fe767a18
Commit
fe767a18
authored
Aug 18, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #9798: update spacing on checkboxes and radios for horizontal
parent
5746979a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
+23
-12
dist/css/bootstrap.css
dist/css/bootstrap.css
+4
-0
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/forms.less
less/forms.less
+18
-11
No files found.
dist/css/bootstrap.css
View file @
fe767a18
...
@@ -1884,9 +1884,13 @@ textarea.input-lg {
...
@@ -1884,9 +1884,13 @@ textarea.input-lg {
}
}
.form-horizontal
.control-label
,
.form-horizontal
.control-label
,
.form-horizontal
.radio
,
.form-horizontal
.checkbox
,
.form-horizontal
.radio-inline
,
.form-horizontal
.radio-inline
,
.form-horizontal
.checkbox-inline
{
.form-horizontal
.checkbox-inline
{
padding-top
:
7px
;
padding-top
:
7px
;
margin-top
:
0
;
margin-bottom
:
0
;
}
}
.form-horizontal
.form-group
{
.form-horizontal
.form-group
{
...
...
dist/css/bootstrap.min.css
View file @
fe767a18
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/forms.less
View file @
fe767a18
...
@@ -326,21 +326,28 @@ input[type="checkbox"],
...
@@ -326,21 +326,28 @@ input[type="checkbox"],
// Horizontal forms are built on grid classes and allow you to create forms with
// Horizontal forms are built on grid classes and allow you to create forms with
// labels on the left and inputs on the right.
// labels on the left and inputs on the right.
.form-horizontal .control-label,
.form-horizontal {
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
// Consistent vertical alignment of labels, radios, and checkboxes
.control-label,
.radio,
.checkbox,
.radio-inline,
.checkbox-inline {
margin-top: 0;
margin-bottom: 0;
padding-top: (@padding-base-vertical + 1); // Default padding plus a border
padding-top: (@padding-base-vertical + 1); // Default padding plus a border
}
}
.form-horizontal {
// Make form groups behave like rows
.form-group {
.form-group {
.make-row();
.make-row();
}
}
}
// Only right align form labels here when the columns stop stacking
// Only right align form labels here when the columns stop stacking
@media (min-width: @screen-tablet) {
@media (min-width: @screen-tablet) {
.form-horizontal
.control-label {
.control-label {
text-align: right;
text-align: right;
}
}
}
}
}
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