Skip to content

Commit

Permalink
tweaks to icons defaults and in buttons improve vertical align
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Nov 2, 2012
1 parent 72198a5 commit 4b3fb30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
16 changes: 7 additions & 9 deletions docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2162,8 +2162,9 @@ table th[class*="span"],
}

[class^="glyphicon-"]:before {
display: inline-block;
font: normal 12px/1 'Glyphicons Halflings';
font-family: 'Glyphicons Halflings';
font-style: normal;
line-height: 1;
}

.glyphicon-glass:before {
Expand Down Expand Up @@ -3237,16 +3238,13 @@ button.close {
border-radius: 3px;
}

.btn-large [class^="glyphicon-"]::before {
font-size: 14px;
}

.btn-small [class^="glyphicon-"]::before {
font-size: 10px;
.btn [class^="glyphicon-"]::before {
vertical-align: -2px;
}

.btn-small [class^="glyphicon-"]::before,
.btn-mini [class^="glyphicon-"]::before {
font-size: 9px;
vertical-align: -1px;
}

.btn-block {
Expand Down
6 changes: 3 additions & 3 deletions less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
// Icons in buttons
// -------------------------

.btn-large [class^="glyphicon-"]::before { font-size: 14px; }
.btn-small [class^="glyphicon-"]::before { font-size: 10px; }
.btn-mini [class^="glyphicon-"]::before { font-size: 9px; }
.btn [class^="glyphicon-"]::before { vertical-align: -2px; }
.btn-small [class^="glyphicon-"]::before,
.btn-mini [class^="glyphicon-"]::before { vertical-align: -1px; }


// Block button
Expand Down
5 changes: 3 additions & 2 deletions less/glyphicons.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@

// Catchall baseclass
[class^="glyphicon-"]:before {
display: inline-block;
font: normal 12px/1 'Glyphicons Halflings';
font-family: 'Glyphicons Halflings';
font-style: normal;
line-height: 1;
}

// Individual icons
Expand Down

0 comments on commit 4b3fb30

Please sign in to comment.