A Pen by Mario Fink on CodePen.
Created
February 18, 2014 13:58
-
-
Save mariofink/9071490 to your computer and use it in GitHub Desktop.
A Pen by Mario Fink.
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
<span class="badge primary">1</span> | |
<span class="badge secondary">2</span> | |
<span class="badge">3</span> | |
<span class="badge primary">some longer text</span> |
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
body { | |
font-family: sans-serif; | |
margin: 2em; | |
} | |
.badge { | |
border: 0.2em solid teal; | |
border-radius: 2em; | |
display: inline-block; | |
padding: 0.5em; | |
min-width: 1em; | |
text-align: center; | |
} | |
.badge.primary { | |
color: #fff; | |
background: teal; | |
} | |
.badge.secondary { | |
color: #333; | |
background: transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment