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
58cb7c63
Commit
58cb7c63
authored
Mar 11, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify code for input-prepend/append in inline and search forms
parent
91eef351
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+6
-5
less/forms.less
less/forms.less
+7
-6
No files found.
docs/assets/bootstrap.zip
View file @
58cb7c63
No preview for this file type
docs/assets/css/bootstrap.css
View file @
58cb7c63
...
@@ -982,6 +982,7 @@ select:focus:required:invalid:focus {
...
@@ -982,6 +982,7 @@ select:focus:required:invalid:focus {
}
}
.input-prepend
,
.input-prepend
,
.input-append
{
.input-append
{
display
:
inline-block
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.input-prepend
input
,
.input-prepend
input
,
...
@@ -1087,11 +1088,11 @@ select:focus:required:invalid:focus {
...
@@ -1087,11 +1088,11 @@ select:focus:required:invalid:focus {
.form-inline
.input-prepend
{
.form-inline
.input-prepend
{
display
:
inline-block
;
display
:
inline-block
;
}
}
.form-search
.input-append
.add-on
,
.form-search
.input-append
,
.form-
search
.input-prepend
.add-on
,
.form-
inline
.input-append
,
.form-
inline
.input-append
.add-on
,
.form-
search
.input-prepend
,
.form-inline
.input-prepend
.add-on
{
.form-inline
.input-prepend
{
vertical-align
:
middle
;
margin-bottom
:
0
;
}
}
.form-search
.radio
,
.form-search
.radio
,
.form-search
.checkbox
,
.form-search
.checkbox
,
...
...
less/forms.less
View file @
58cb7c63
...
@@ -361,6 +361,7 @@ select:focus:required:invalid {
...
@@ -361,6 +361,7 @@ select:focus:required:invalid {
// Allow us to put symbols and text within the input field for a cleaner look
// Allow us to put symbols and text within the input field for a cleaner look
.input-prepend,
.input-prepend,
.input-append {
.input-append {
display: inline-block;
margin-bottom: 5px;
margin-bottom: 5px;
input,
input,
select,
select,
...
@@ -456,12 +457,12 @@ select:focus:required:invalid {
...
@@ -456,12 +457,12 @@ select:focus:required:invalid {
.form-inline .input-prepend {
.form-inline .input-prepend {
display: inline-block;
display: inline-block;
}
}
//
Make the prepend and append add-on vertical-align: middle;
//
Remove margin for input-prepend/-append
.form-search .input-append
.add-on
,
.form-search .input-append,
.form-
search .input-prepend .add-on
,
.form-
inline .input-append
,
.form-
inline .input-append .add-on
,
.form-
search .input-prepend
,
.form-inline .input-prepend
.add-on
{
.form-inline .input-prepend {
vertical-align: middle
;
margin-bottom: 0
;
}
}
// Inline checkbox/radio labels (remove padding on left)
// Inline checkbox/radio labels (remove padding on left)
.form-search .radio,
.form-search .radio,
...
...
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