Created
March 15, 2017 09:48
-
-
Save alexdev27/13def7dd915bab31209b97a4fa7b9964 to your computer and use it in GitHub Desktop.
custom css-counter
This file contains hidden or 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
.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