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 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
.btn .glyphicon { | |
margin-right: 4px; | |
vertical-align: middle; | |
} | |
.btn.btn-icon .glyphicon { | |
margin-right: 0; | |
} |
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:
a .glyphicon-folder-open {
margin-right: 2px;
}
Replace a
with e.g. .btn
when you need to assign it to it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I scoured the internet for an hour trying to find a way to make the stupid glyphicons move over, and here you are. You rock my damn socks.
I did have to make a few changes to get it to suit my needs on Bootstrap
3.1.1
, here is what worked for me:I love you, @hubgit. It's the forever kind.