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
23a7ab4b
Commit
23a7ab4b
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
icon vertical align in buttons
parent
33beb93e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/css/bootstrap.css
+9
-10
docs/assets/css/bootstrap.css
less/buttons.less
+8
-8
less/buttons.less
with
17 additions
and
18 deletions
+17
-18
docs/assets/css/bootstrap.css
+
9
-
10
View file @
23a7ab4b
...
@@ -3286,11 +3286,6 @@ button.close {
...
@@ -3286,11 +3286,6 @@ button.close {
border-radius
:
6px
;
border-radius
:
6px
;
}
}
.btn-large
[
class
^=
"icon-"
],
.btn-large
[
class
*=
" icon-"
]
{
margin-top
:
2px
;
}
.btn-small
{
.btn-small
{
padding
:
2px
10px
;
padding
:
2px
10px
;
font-size
:
11.9px
;
font-size
:
11.9px
;
...
@@ -3299,11 +3294,6 @@ button.close {
...
@@ -3299,11 +3294,6 @@ button.close {
border-radius
:
3px
;
border-radius
:
3px
;
}
}
.btn-small
[
class
^=
"icon-"
],
.btn-small
[
class
*=
" icon-"
]
{
margin-top
:
0
;
}
.btn-mini
{
.btn-mini
{
padding
:
0
6px
;
padding
:
0
6px
;
font-size
:
10.5px
;
font-size
:
10.5px
;
...
@@ -3312,6 +3302,15 @@ button.close {
...
@@ -3312,6 +3302,15 @@ button.close {
border-radius
:
3px
;
border-radius
:
3px
;
}
}
.btn
[
class
^=
"icon-"
]
:before
{
vertical-align
:
-2px
;
}
.btn-small
[
class
^=
"icon-"
]
:before
,
.btn-mini
[
class
^=
"icon-"
]
:before
{
vertical-align
:
-1px
;
}
.btn-block
{
.btn-block
{
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
...
...
This diff is collapsed.
Click to expand it.
less/buttons.less
+
8
-
8
View file @
23a7ab4b
...
@@ -72,10 +72,6 @@
...
@@ -72,10 +72,6 @@
font-size: @fontSizeLarge;
font-size: @fontSizeLarge;
.border-radius(@borderRadiusLarge);
.border-radius(@borderRadiusLarge);
}
}
.btn-large [class^="icon-"],
.btn-large [class*=" icon-"] {
margin-top: 2px;
}
// Small
// Small
.btn-small {
.btn-small {
...
@@ -83,10 +79,6 @@
...
@@ -83,10 +79,6 @@
font-size: @fontSizeSmall;
font-size: @fontSizeSmall;
.border-radius(@borderRadiusSmall);
.border-radius(@borderRadiusSmall);
}
}
.btn-small [class^="icon-"],
.btn-small [class*=" icon-"] {
margin-top: 0;
}
// Mini
// Mini
.btn-mini {
.btn-mini {
...
@@ -96,6 +88,14 @@
...
@@ -96,6 +88,14 @@
}
}
// Icons in buttons
// -------------------------
.btn [class^="icon-"]:before { vertical-align: -2px; }
.btn-small [class^="icon-"]:before,
.btn-mini [class^="icon-"]:before { vertical-align: -1px; }
// Block button
// Block button
// -------------------------
// -------------------------
...
...
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