Created
January 20, 2015 17:42
-
-
Save ultim8k/35b1b8561a512411b921 to your computer and use it in GitHub Desktop.
indicator bubble
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
/** | |
* indicator bubble | |
*/ | |
body { text-align: center; } | |
.bubble { | |
width: 50px; | |
height: 50px; | |
display: inline-block; | |
text-align: center; | |
background-color: #34a9f3; | |
color: #fff; | |
border-radius: 50%; | |
position: relative; | |
top: 100px; | |
} | |
.bubble:before { | |
content: ''; | |
display: block; | |
width: 18px; | |
height: 18px; | |
background-color: #34a9f3; | |
position: absolute; | |
top: -5px; | |
left: 50%; | |
z-index: -1; | |
margin-left: -9px; | |
border-radius: 3px; | |
transform: rotate(45deg); | |
/*transform: skew(35deg, -50deg);*/ | |
} | |
.bubble__text { | |
position: relative; | |
top: 15px; | |
} |
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
<span class="bubble"><span class="bubble__text">hey</span></span> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment