Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 0304a48

Browse files
committed
Adding list styling
1 parent 35ff541 commit 0304a48

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

components/atoms/RichText/RichText.module.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
}
55

66
/* Paragraph, List Styles */
7+
& ul,
8+
&.ul,
9+
& ol,
10+
&.ol,
711
& p,
812
&.p {
913
@apply font-primary text-root-em mb-20;
@@ -13,6 +17,52 @@
1317
}
1418
}
1519

20+
& ul,
21+
&.ul,
22+
& ol,
23+
&.ol {
24+
& li {
25+
@apply mb-4 relative pl-24 list-none;
26+
}
27+
28+
& ul,
29+
& ol {
30+
@apply ml-16 mb-0;
31+
}
32+
}
33+
34+
/* Unordered Lists */
35+
& ul,
36+
&.ul {
37+
& li {
38+
&::before {
39+
@apply absolute block bg-tertiary-lighter rounded-full;
40+
41+
content: '';
42+
width: 5px;
43+
height: 5px;
44+
left: 0.35rem;
45+
top: 0.55rem;
46+
}
47+
}
48+
}
49+
50+
/* Ordered Lists */
51+
& ol,
52+
&.ol {
53+
counter-reset: item;
54+
55+
& > li {
56+
&::before {
57+
@apply absolute block text-tertiary-lighter left-0 italic;
58+
59+
content: counter(item) '. ';
60+
counter-increment: item;
61+
margin-left: 2px;
62+
}
63+
}
64+
}
65+
1666
/* Heading Styles */
1767
& h1,
1868
&.h1 {

0 commit comments

Comments
 (0)