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
eac61de1
Commit
eac61de1
authored
Aug 12, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix navbar form alignment of inputs by restoring inline-block
parent
c558c035
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
dist/css/bootstrap.css
dist/css/bootstrap.css
+6
-0
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/forms.less
less/forms.less
+7
-0
No files found.
dist/css/bootstrap.css
View file @
eac61de1
...
...
@@ -1820,6 +1820,9 @@ textarea.input-sm {
margin-bottom
:
0
;
vertical-align
:
middle
;
}
.form-inline
.form-control
{
display
:
inline-block
;
}
.form-inline
.radio
,
.form-inline
.checkbox
{
display
:
inline-block
;
...
...
@@ -3164,6 +3167,9 @@ button.close {
margin-bottom
:
0
;
vertical-align
:
middle
;
}
.navbar-form
.form-control
{
display
:
inline-block
;
}
.navbar-form
.radio
,
.navbar-form
.checkbox
{
display
:
inline-block
;
...
...
dist/css/bootstrap.min.css
View file @
eac61de1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/forms.less
View file @
eac61de1
...
...
@@ -299,6 +299,8 @@ textarea {
//
// Requires wrapping inputs and labels with `.form-group` for proper display of
// default HTML form controls and our custom form controls (e.g., input groups).
//
// Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
.form-inline {
...
...
@@ -311,6 +313,11 @@ textarea {
vertical-align: middle;
}
// In navbar-form, allow folks to *not* use `.form-group`
.form-control {
display: inline-block;
}
// Remove default margin on radios/checkboxes that were used for stacking, and
// then undo the floating of radios and checkboxes to match (which also avoids
// a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
...
...
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