Skip to content

Commit 4d565ff

Browse files
committed
fix: list style to be in the same format as challenge spec
1 parent 21a24e3 commit 4d565ff

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

src/shared/components/Terms/TermDetails.scss

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,41 @@
4242
}
4343

4444
ol {
45-
list-style-type: decimal;
46-
padding: 0 15px;
45+
margin: 0 0 5px;
46+
counter-reset: item;
47+
font-size: 15px;
48+
color: $tc-gray-90;
49+
line-height: 25px;
50+
display: table;
51+
52+
li {
53+
list-style-type: none;
54+
font-weight: 400;
55+
counter-increment: item;
56+
display: table-row;
57+
white-space: normal;
58+
59+
&::before {
60+
display: table-cell;
61+
font-weight: 700;
62+
text-align: right;
63+
content: counter(item) ".";
64+
padding: 0 10px 0 0;
65+
width: 32px;
66+
}
67+
}
4768
}
4869

4970
ul {
50-
list-style-type: disc;
51-
padding: 0 15px;
52-
}
71+
margin: 0 0 5px 20px;
72+
font-size: 15px;
73+
color: $tc-gray-90;
74+
line-height: 25px;
75+
list-style: disc outside none;
5376

54-
li {
55-
list-style-position: outside;
77+
li {
78+
font-weight: 400;
79+
}
5680
}
5781
}
5882

0 commit comments

Comments
 (0)