Skip to content

Instantly share code, notes, and snippets.

@souljorje
Created February 2, 2020 11:54
Show Gist options
  • Save souljorje/06d7ca5f37cc1e7ce2948e7598b7a0c0 to your computer and use it in GitHub Desktop.
Save souljorje/06d7ca5f37cc1e7ce2948e7598b7a0c0 to your computer and use it in GitHub Desktop.
ul custom bullet & ol custom numbers
ul {
list-style: none;
li {
&:before {
content: "•";
color: red;
font-weight: 700;
display: inline-block;
width: 1em;
margin-left: -1.1em;
}
}
}
// custom numbers & nesting e.g. 1 -> 1.1 -> 1.1.1, etc.
ol {
counter-reset: list-counter;
list-style-type: none;
& ol {
margin-left: 0.9em;
}
& li {
counter-increment: list-counter;
&:before {
content: counters(list-counter, ".") ".";
color: var(--v-primary-base);
font-weight: 700;
display: inline-block;
width: 1em;
margin-left: -1.1em;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment