Skip to content

Instantly share code, notes, and snippets.

@mark-d-holmberg
Created January 12, 2013 03:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-d-holmberg/4515950 to your computer and use it in GitHub Desktop.
Save mark-d-holmberg/4515950 to your computer and use it in GitHub Desktop.
How to fix Twitter Bootstrap Missing Icons
@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