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
7f3a2b38
Commit
7f3a2b38
authored
Mar 12, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
button group sizes for ie7 fixes
parent
e12c66aa
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
14 deletions
+87
-14
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+13
-2
docs/components.html
docs/components.html
+31
-5
docs/templates/pages/components.mustache
docs/templates/pages/components.mustache
+31
-5
less/button-groups.less
less/button-groups.less
+8
-2
less/buttons.less
less/buttons.less
+4
-0
No files found.
docs/assets/bootstrap.zip
View file @
7f3a2b38
No preview for this file type
docs/assets/css/bootstrap.css
View file @
7f3a2b38
...
...
@@ -2265,6 +2265,11 @@ input[type="submit"].btn.btn-small {
*
padding-top
:
3px
;
*
padding-bottom
:
3px
;
}
button
.btn.btn-mini
,
input
[
type
=
"submit"
]
.btn.btn-mini
{
*
padding-top
:
1px
;
*
padding-bottom
:
1px
;
}
.btn-group
{
position
:
relative
;
*
zoom
:
1
;
...
...
@@ -2355,12 +2360,18 @@ input[type="submit"].btn.btn-small {
-webkit-box-shadow
:
inset
1px
0
0
rgba
(
255
,
255
,
255
,
0.125
),
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
1px
0
0
rgba
(
255
,
255
,
255
,
0.125
),
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
1px
0
0
rgba
(
255
,
255
,
255
,
0.125
),
inset
0
1px
0
rgba
(
255
,
255
,
255
,
0.2
),
0
1px
2px
rgba
(
0
,
0
,
0
,
0.05
);
*
padding-top
:
5
px
;
*
padding-bottom
:
5
px
;
*
padding-top
:
3
px
;
*
padding-bottom
:
3
px
;
}
.btn-group
.btn-mini.dropdown-toggle
{
padding-left
:
5px
;
padding-right
:
5px
;
*
padding-top
:
1px
;
*
padding-bottom
:
1px
;
}
.btn-group
.btn-small.dropdown-toggle
{
*
padding-top
:
4px
;
*
padding-bottom
:
4px
;
}
.btn-group
.btn-large.dropdown-toggle
{
padding-left
:
12px
;
...
...
docs/components.html
View file @
7f3a2b38
...
...
@@ -420,13 +420,39 @@
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
<h3>
Right aligned menu
s
</h3>
<p>
Add
<code>
.pull-right
</code>
to the
<code>
.dropdown-menu
</code>
of any button dropdown for right aligned menus
.
</p>
<h3>
Size
s
</h3>
<p>
Utilize the extra button classe
<code>
.btn-mini
</code>
,
<code>
.btn-small
</code>
, or
<code>
.btn-large
</code>
for sizing
.
</p>
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<button
class=
"btn"
>
Right aligned
</button>
<button
class=
"btn dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu pull-right"
>
<button
class=
"btn btn-large"
>
Large action
</button>
<button
class=
"btn btn-large dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<button
class=
"btn btn-small"
>
Small action
</button>
<button
class=
"btn btn-small dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<button
class=
"btn btn-mini"
>
Mini action
</button>
<button
class=
"btn btn-mini dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Action
</a></li>
<li><a
href=
"#"
>
Another action
</a></li>
<li><a
href=
"#"
>
Something else here
</a></li>
...
...
docs/templates/pages/components.mustache
View file @
7f3a2b38
...
...
@@ -344,13 +344,39 @@
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
<h3>
{{
_i
}}
Right aligned menu
s
{{/
i
}}
</h3>
<p>
{{
_i
}}
Add
<code>
.pull-right
</code>
to the
<code>
.dropdown-menu
</code>
of any button dropdown for right aligned menus
.
{{/
i
}}
</p>
<h3>
{{
_i
}}
Size
s
{{/
i
}}
</h3>
<p>
{{
_i
}}
Utilize the extra button classe
<code>
.btn-mini
</code>
,
<code>
.btn-small
</code>
, or
<code>
.btn-large
</code>
for sizing
.
{{/
i
}}
</p>
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<button
class=
"btn"
>
{{
_i
}}
Right aligned
{{/
i
}}
</button>
<button
class=
"btn dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu pull-right"
>
<button
class=
"btn btn-large"
>
{{
_i
}}
Large action
{{/
i
}}
</button>
<button
class=
"btn btn-large dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
{{
_i
}}
Action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Another action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Something else here
{{/
i
}}
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
{{
_i
}}
Separated link
{{/
i
}}
</a></li>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<button
class=
"btn btn-small"
>
{{
_i
}}
Small action
{{/
i
}}
</button>
<button
class=
"btn btn-small dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
{{
_i
}}
Action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Another action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Something else here
{{/
i
}}
</a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
>
{{
_i
}}
Separated link
{{/
i
}}
</a></li>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<button
class=
"btn btn-mini"
>
{{
_i
}}
Mini action
{{/
i
}}
</button>
<button
class=
"btn btn-mini dropdown-toggle"
data-toggle=
"dropdown"
><span
class=
"caret"
></span></button>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
{{
_i
}}
Action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Another action
{{/
i
}}
</a></li>
<li><a
href=
"#"
>
{{
_i
}}
Something else here
{{/
i
}}
</a></li>
...
...
less/button-groups.less
View file @
7f3a2b38
...
...
@@ -95,12 +95,18 @@
padding-right: 8px;
@shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
*padding-top:
5
px;
*padding-bottom:
5
px;
*padding-top:
3
px;
*padding-bottom:
3
px;
}
.btn-group .btn-mini.dropdown-toggle {
padding-left: 5px;
padding-right: 5px;
*padding-top: 1px;
*padding-bottom: 1px;
}
.btn-group .btn-small.dropdown-toggle {
*padding-top: 4px;
*padding-bottom: 4px;
}
.btn-group .btn-large.dropdown-toggle {
padding-left: 12px;
...
...
less/buttons.less
View file @
7f3a2b38
...
...
@@ -180,4 +180,8 @@ input[type="submit"].btn {
*padding-top: 3px;
*padding-bottom: 3px;
}
&.btn-mini {
*padding-top: 1px;
*padding-bottom: 1px;
}
}
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