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
58cb7c63
Commit
58cb7c63
authored
13 years ago
by
Mark Otto
Browse files
Options
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
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/assets/css/bootstrap.css
+6
-5
docs/assets/css/bootstrap.css
less/forms.less
+7
-6
less/forms.less
with
13 additions
and
11 deletions
+13
-11
docs/assets/bootstrap.zip
+
0
-
0
View file @
58cb7c63
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/assets/css/bootstrap.css
+
6
-
5
View file @
58cb7c63
...
...
@@ -982,6 +982,7 @@ select:focus:required:invalid:focus {
}
.input-prepend
,
.input-append
{
display
:
inline-block
;
margin-bottom
:
5px
;
}
.input-prepend
input
,
...
...
@@ -1087,11 +1088,11 @@ select:focus:required:invalid:focus {
.form-inline
.input-prepend
{
display
:
inline-block
;
}
.form-search
.input-append
.add-on
,
.form-
search
.input-p
re
pend
.add-on
,
.form-
inline
.input-
a
ppend
.add-on
,
.form-inline
.input-prepend
.add-on
{
vertical-align
:
middle
;
.form-search
.input-append
,
.form-
inline
.input-
a
ppend
,
.form-
search
.input-p
re
pend
,
.form-inline
.input-prepend
{
margin-bottom
:
0
;
}
.form-search
.radio
,
.form-search
.checkbox
,
...
...
This diff is collapsed.
Click to expand it.
less/forms.less
+
7
-
6
View file @
58cb7c63
...
...
@@ -361,6 +361,7 @@ select:focus:required:invalid {
// Allow us to put symbols and text within the input field for a cleaner look
.input-prepend,
.input-append {
display: inline-block;
margin-bottom: 5px;
input,
select,
...
...
@@ -456,12 +457,12 @@ select:focus:required:invalid {
.form-inline .input-prepend {
display: inline-block;
}
//
Make the
prepend
and
append
add-on vertical-align: middle;
.form-search .input-append
.add-on
,
.form-
search
.input-p
re
pend
.add-on
,
.form-
inline
.input-
a
ppend
.add-on
,
.form-inline .input-prepend
.add-on
{
vertical-align: middle
;
//
Remove margin for input-
prepend
/-
append
.form-search .input-append,
.form-
inline
.input-
a
ppend,
.form-
search
.input-p
re
pend,
.form-inline .input-prepend {
margin-bottom: 0
;
}
// Inline checkbox/radio labels (remove padding on left)
.form-search .radio,
...
...
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