Last active
November 27, 2017 10:57
-
-
Save kjtolsma/5f9cf16ed4f751ea279a74c744cb88df 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
// Default badge | |
$pt-color-primary: #5cb85c; | |
$pt-color-white: #fff; | |
.pt-badge { | |
background: $pt-color-primary; | |
border-radius: 100%; | |
color: $pt-color-white; | |
font-size: 12px; | |
line-height: 1.2; | |
padding: 15px; | |
position: absolute; | |
top: -20px; | |
right: -20px; | |
text-align: center; | |
width: 100px; | |
height: 100px; | |
z-index: 10; | |
> span { | |
display: table; | |
width: 100%; | |
height: 100%; | |
> span { | |
display: table-cell; | |
vertical-align: middle; | |
} | |
} | |
} |
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
<div class="pt-badge"> | |
<span> | |
<span> | |
Badge | |
</span> | |
</span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment