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
c35b04cc
Commit
c35b04cc
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
enable buttons in input-append and input-prepend
parent
debc4b75
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/assets/css/bootstrap.css
+13
-4
docs/assets/css/bootstrap.css
docs/base-css.html
+17
-1
docs/base-css.html
docs/templates/pages/base-css.mustache
+17
-1
docs/templates/pages/base-css.mustache
less/forms.less
+11
-4
less/forms.less
with
58 additions
and
10 deletions
+58
-10
docs/assets/bootstrap.zip
+
0
-
0
View file @
c35b04cc
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/assets/css/bootstrap.css
+
13
-
4
View file @
c35b04cc
...
...
@@ -1021,6 +1021,11 @@ select:focus:required:invalid:focus {
vertical-align
:
middle
;
background-color
:
#eeeeee
;
border
:
1px
solid
#ccc
;
}
.input-prepend
.add-on
,
.input-append
.add-on
,
.input-prepend
.btn
,
.input-append
.btn
{
-webkit-border-radius
:
3px
0
0
3px
;
-moz-border-radius
:
3px
0
0
3px
;
border-radius
:
3px
0
0
3px
;
...
...
@@ -1030,7 +1035,8 @@ select:focus:required:invalid:focus {
background-color
:
#a9dba9
;
border-color
:
#46a546
;
}
.input-prepend
.add-on
{
.input-prepend
.add-on
,
.input-prepend
.btn
{
margin-right
:
-1px
;
}
.input-append
input
,
...
...
@@ -1043,7 +1049,8 @@ select:focus:required:invalid:focus {
border-left-color
:
#eee
;
border-right-color
:
#ccc
;
}
.input-append
.add-on
{
.input-append
.add-on
,
.input-append
.btn
{
margin-left
:
-1px
;
-webkit-border-radius
:
0
3px
3px
0
;
-moz-border-radius
:
0
3px
3px
0
;
...
...
@@ -1056,13 +1063,15 @@ select:focus:required:invalid:focus {
-moz-border-radius
:
0
;
border-radius
:
0
;
}
.input-prepend.input-append
.add-on
:first-child
{
.input-prepend.input-append
.add-on
:first-child
,
.input-prepend.input-append
.btn
:first-child
{
margin-right
:
-1px
;
-webkit-border-radius
:
3px
0
0
3px
;
-moz-border-radius
:
3px
0
0
3px
;
border-radius
:
3px
0
0
3px
;
}
.input-prepend.input-append
.add-on
:last-child
{
.input-prepend.input-append
.add-on
:last-child
,
.input-prepend.input-append
.btn
:last-child
{
margin-left
:
-1px
;
-webkit-border-radius
:
0
3px
3px
0
;
-moz-border-radius
:
0
3px
3px
0
;
...
...
This diff is collapsed.
Click to expand it.
docs/base-css.html
+
17
-
1
View file @
c35b04cc
...
...
@@ -1198,7 +1198,23 @@ For example, <code>section</code> should be wrapped as inline.
<div
class=
"input-append"
>
<input
class=
"span2"
id=
"appendedInput"
size=
"16"
type=
"text"
><span
class=
"add-on"
>
.00
</span>
</div>
<p
class=
"help-block"
>
Here's more help text
</p>
<span
class=
"help-inline"
>
Here's more help text
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"appendedPrependedInput"
>
Append and prepend
</label>
<div
class=
"controls"
>
<div
class=
"input-prepend input-append"
>
<span
class=
"add-on"
>
$
</span><input
class=
"span2"
id=
"appendedPrependedInput"
size=
"16"
type=
"text"
><span
class=
"add-on"
>
.00
</span>
</div>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"appendedPrependedInput"
>
Append with button
</label>
<div
class=
"controls"
>
<div
class=
"input-append"
>
<input
class=
"span2"
id=
"appendedPrependedInput"
size=
"16"
type=
"text"
><button
class=
"btn"
type=
"button"
>
Go!
</button>
</div>
</div>
</div>
<div
class=
"control-group"
>
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/base-css.mustache
+
17
-
1
View file @
c35b04cc
...
...
@@ -1122,7 +1122,23 @@
<div
class=
"input-append"
>
<input
class=
"span2"
id=
"appendedInput"
size=
"16"
type=
"text"
><span
class=
"add-on"
>
.00
</span>
</div>
<p
class=
"help-block"
>
{{
_i
}}
Here's more help text
{{/
i
}}
</p>
<span
class=
"help-inline"
>
{{
_i
}}
Here's more help text
{{/
i
}}
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"appendedPrependedInput"
>
{{
_i
}}
Append and prepend
{{/
i
}}
</label>
<div
class=
"controls"
>
<div
class=
"input-prepend input-append"
>
<span
class=
"add-on"
>
$
</span><input
class=
"span2"
id=
"appendedPrependedInput"
size=
"16"
type=
"text"
><span
class=
"add-on"
>
.00
</span>
</div>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"appendedPrependedInput"
>
{{
_i
}}
Append with button
{{/
i
}}
</label>
<div
class=
"controls"
>
<div
class=
"input-append"
>
<input
class=
"span2"
id=
"appendedPrependedInput"
size=
"16"
type=
"text"
><button
class=
"btn"
type=
"button"
>
Go!
</button>
</div>
</div>
</div>
<div
class=
"control-group"
>
...
...
This diff is collapsed.
Click to expand it.
less/forms.less
+
11
-
4
View file @
c35b04cc
...
...
@@ -387,6 +387,9 @@ select:focus:required:invalid {
vertical-align: middle;
background-color: @grayLighter;
border: 1px solid #ccc;
}
.add-on,
.btn {
.border-radius(3px 0 0 3px);
}
.active {
...
...
@@ -395,7 +398,8 @@ select:focus:required:invalid {
}
}
.input-prepend {
.add-on {
.add-on,
.btn {
margin-right: -1px;
}
}
...
...
@@ -409,7 +413,8 @@ select:focus:required:invalid {
border-left-color: #eee;
border-right-color: #ccc;
}
.add-on {
.add-on,
.btn {
margin-left: -1px;
.border-radius(0 3px 3px 0);
}
...
...
@@ -421,11 +426,13 @@ select:focus:required:invalid {
.uneditable-input {
.border-radius(0);
}
.add-on:first-child {
.add-on:first-child,
.btn:first-child {
margin-right: -1px;
.border-radius(3px 0 0 3px);
}
.add-on:last-child {
.add-on:last-child,
.btn:last-child {
margin-left: -1px;
.border-radius(0 3px 3px 0);
}
...
...
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