Skip to content

Commit 1ff2432

Browse files
committed
Style lists
1 parent ff44481 commit 1ff2432

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

assets/site.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,3 +656,52 @@ article.page tr:nth-child(even) td {
656656
overflow-x: auto;
657657
text-align: center;
658658
}
659+
660+
/* -----------------------------------
661+
List Styling
662+
----------------------------------- */
663+
.post ul,
664+
article.page ul {
665+
list-style: none;
666+
/* remove default dots */
667+
padding-left: 1.5rem;
668+
margin: 1.5rem 0;
669+
}
670+
671+
.post ul li,
672+
article.page ul li {
673+
position: relative;
674+
padding-left: 1.2rem;
675+
margin-bottom: 0.6rem;
676+
line-height: 1.6;
677+
color: var(--color-text);
678+
}
679+
680+
/* custom bullet marker */
681+
.post ul li::before,
682+
article.page ul li::before {
683+
content: "•";
684+
/* could also try "–" or "→" */
685+
position: absolute;
686+
left: 0;
687+
top: 0;
688+
color: var(--color-text);
689+
font-weight: bold;
690+
font-size: 1.2em;
691+
line-height: 1;
692+
}
693+
694+
/* Ordered lists */
695+
.post ol,
696+
article.page ol {
697+
list-style: decimal;
698+
padding-left: 1.5rem;
699+
margin: 1.5rem 0;
700+
}
701+
702+
.post ol li,
703+
article.page ol li {
704+
margin-bottom: 0.6rem;
705+
line-height: 1.6;
706+
color: var(--color-text);
707+
}

0 commit comments

Comments
 (0)