Created
March 21, 2014 12:28
-
-
Save ElmahdiMahmoud/9685159 to your computer and use it in GitHub Desktop.
Counter list
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
.counter-list { | |
counter-reset: counter; | |
dd, | |
dt { | |
padding-left: 50px; | |
position: relative; | |
font-weight: $font-weight-light; | |
margin-bottom: 20px; | |
} | |
dt { | |
&:before { | |
$numberO: 27px; | |
@include circle($numberO); | |
text-align: center; | |
line-height: ($numberO - 2); | |
font-size: $font-size-base; | |
content: counter(counter); | |
counter-increment: counter; | |
border: 1px solid $color-global; | |
@include absolute($left: 0, $top: 9px); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment