Skip to content

Instantly share code, notes, and snippets.

@alexdev27
Created March 15, 2017 09:48
Show Gist options
  • Save alexdev27/13def7dd915bab31209b97a4fa7b9964 to your computer and use it in GitHub Desktop.
Save alexdev27/13def7dd915bab31209b97a4fa7b9964 to your computer and use it in GitHub Desktop.
custom css-counter
.custom-counter li::before {
content: '0' counter(step-counter);
}
.custom-counter li {
counter-increment: step-counter;
&:nth-child(9) ~ li:before{
content: counter(step-counter); // убираем "0" у всех последующих li, кроме тех, которые до девятки
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment