Created
January 12, 2013 03:48
-
-
Save mark-d-holmberg/4515950 to your computer and use it in GitHub Desktop.
How to fix Twitter Bootstrap Missing Icons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "twitter/bootstrap/bootstrap"; | |
body { | |
padding-top: 60px; | |
} | |
@import "twitter/bootstrap/responsive"; | |
// Set the correct sprite paths | |
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png'); | |
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png'); | |
[class^="icon-"], | |
[class*=" icon-"] { | |
display: inline-block; | |
width: 14px; | |
height: 14px; | |
.ie7-restore-right-whitespace(); | |
line-height: 14px; | |
vertical-align: text-top; | |
background-image: url(@iconSpritePath); | |
background-position: 14px 14px; | |
background-repeat: no-repeat; | |
} | |
.icon-white { | |
background-image: url(@iconWhiteSpritePath); | |
} | |
// Glyphicons | |
@import "twitter/bootstrap/sprites.less"; | |
.navbar-inverse .brand, .navbar-inverse .nav > li > a { | |
color: #777; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment