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
c35b04cc
Commit
c35b04cc
authored
Mar 11, 2012
by
Mark Otto
Browse files
Options
Browse Files
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
with
58 additions
and
10 deletions
+58
-10
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+13
-4
docs/base-css.html
docs/base-css.html
+17
-1
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+17
-1
less/forms.less
less/forms.less
+11
-4
No files found.
docs/assets/bootstrap.zip
View file @
c35b04cc
No preview for this file type
docs/assets/css/bootstrap.css
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
;
...
...
docs/base-css.html
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"
>
...
...
docs/templates/pages/base-css.mustache
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"
>
...
...
less/forms.less
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);
}
...
...
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