Created
May 8, 2016 21:06
-
-
Save goldensunliu/9fab273f36d48b410117a67fe6333ab8 to your computer and use it in GitHub Desktop.
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
.label | |
display inline | |
padding .2em .6em .3em | |
font-size 75% | |
font-weight bold | |
line-height 1 | |
color label-color | |
text-align center | |
white-space nowrap | |
vertical-align baseline | |
border-radius .25em | |
// Add hover effects, but only for links | |
&[href] | |
&:hover, &:focus | |
color label-link-hover-color | |
text-decoration none | |
cursor pointer | |
// Empty labels collapse automatically (not available in IE8) | |
&:empty | |
display none | |
// Quick fix for labels in buttons | |
.btn & | |
position relative | |
top -1px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment