Skip to content

Instantly share code, notes, and snippets.

@maximkoretskiy
Created September 17, 2015 14:25
Show Gist options
  • Save maximkoretskiy/14527d0d90ab603fc77c to your computer and use it in GitHub Desktop.
Save maximkoretskiy/14527d0d90ab603fc77c to your computer and use it in GitHub Desktop.
Lists styles
ul{
list-style-position: inside;
}
ol {
counter-reset: section;
list-style-type: none;
}
li{
padding-left: 20px;
position: relative;
margin-bottom: 6px;
}
ul li::before{
content: "";
@extend .icon-list-check;
@include size(12px, 10px);
position: absolute;
left: 2px;
top: 6px;
}
ol li::before {
font-weight: bold;
color: $c-blue-text;
counter-increment: section;
content: counters(section,".") ".";
padding-right: 12px;
position: absolute;
left: 2px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment