Last active
January 10, 2019 11:18
-
-
Save hubgit/6102605 to your computer and use it in GitHub Desktop.
Spacing for Bootstrap Glyphicons in buttons
This file contains 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
.btn .glyphicon { | |
margin-right: 4px; | |
vertical-align: middle; | |
} | |
.btn.btn-icon .glyphicon { | |
margin-right: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
.glyphicon-folder-open
has no spacing to the right (e.g. when you have a link with an icon left and text right). Then you may need this:Replace
a
with e.g..btn
when you need to assign it to it.