Skip to content

Instantly share code, notes, and snippets.

@ElmahdiMahmoud
Created March 21, 2014 12:28
Show Gist options
  • Save ElmahdiMahmoud/9685159 to your computer and use it in GitHub Desktop.
Save ElmahdiMahmoud/9685159 to your computer and use it in GitHub Desktop.
Counter list
.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