Skip to content

Instantly share code, notes, and snippets.

@ultim8k
Created January 20, 2015 17:42
Show Gist options
  • Save ultim8k/35b1b8561a512411b921 to your computer and use it in GitHub Desktop.
Save ultim8k/35b1b8561a512411b921 to your computer and use it in GitHub Desktop.
indicator bubble
/**
* 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;
}
<span class="bubble"><span class="bubble__text">hey</span></span>
// alert('Hello world!');
{"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