Skip to content

Instantly share code, notes, and snippets.

@BaylorRae
Created January 11, 2012 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BaylorRae/1596070 to your computer and use it in GitHub Desktop.
Save BaylorRae/1596070 to your computer and use it in GitHub Desktop.
Untitled
body {
margin: 100px 20px;
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}
li {
margin-bottom: 10px;
}
.button {
display: inline-block;
background: hsl(40, 100%, 60%);
color: hsl(40, 100%, 20%);
text-decoration: none;
padding: 5px 10px;
}
[data-notifications] {
position: relative;
}
[data-notifications]:after {
content: attr(data-notifications);
position: absolute;
background: red;
border-radius: 50%;
display: inline-block;
padding: 0.3em;
color: #f2f2f2;
right: -15px;
top: -15px;
}
<ol>
<li>
<a data-notifications="10" class="button" href="#">New Comments on Your Posts</a>
</li>
<li>
<a class="button" href="#">Number of Post Likes :)</a>
</li>
<ol>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment