Last active
February 8, 2017 21:04
-
-
Save DriginCode/4e4dd2add42468c1b07367e85188d0a0 to your computer and use it in GitHub Desktop.
rounded ol counter
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
<ol class="rounded "> | |
<li><a> </a></li> | |
<li><a> </a></li> | |
<li><a> </a></li> | |
<li><a> </a></li> | |
<li><a> </a></li> | |
</ol> | |
.rounded { | |
counter-reset: li; | |
list-style: none; | |
padding: 0; | |
} | |
.rounded a { | |
position: relative; | |
display: block; | |
padding: .18em .4em .18em 2em; | |
margin: .1em 0; | |
color: #000; | |
text-decoration: none; | |
border-radius: .2em; | |
} | |
.rounded a:before { | |
position: absolute; | |
left: -1.3em; | |
top: 50%; | |
margin-top: -.8em; | |
height: 1.7em; | |
width: 1.7em; | |
border: .2em solid #B10E1C; | |
text-align: center; | |
font-weight: bold; | |
border-radius: 2em; | |
transition: all .3s ease-out; | |
} | |
.rounded.block_01 a:before { | |
content: counter(li); | |
counter-increment: li; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment