Skip to content

Commit 0f45519

Browse files
committed
support sublists
1 parent babedc0 commit 0f45519

2 files changed

Lines changed: 85 additions & 5 deletions

File tree

_sass/modules/layout.scss

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,16 +299,55 @@
299299
padding: 5px 0;
300300
line-height: 1.65;
301301
}
302+
ul,
303+
ol {
304+
margin: 0.75rem 0 1rem 1.5rem;
305+
padding-left: 1.25rem;
306+
list-style-position: outside;
307+
}
302308
ul {
303309
list-style-type: disc;
304-
list-style-position: inside;
310+
311+
ul,
312+
ol {
313+
margin: 0.25rem 0 0.5rem 1.5rem;
314+
}
315+
316+
ul {
317+
list-style-type: circle;
318+
}
319+
320+
ul ul {
321+
list-style-type: square;
322+
}
305323
}
306324
ol {
307325
list-style-type: decimal;
308-
list-style-position: inside;
326+
309327
li {
310-
margin: 0.5rem 0;
328+
margin: 0.25rem 0;
311329
}
330+
331+
ol,
332+
ul {
333+
margin: 0.25rem 0 0.5rem 1.5rem;
334+
}
335+
336+
ol {
337+
list-style-type: lower-alpha;
338+
339+
ol {
340+
list-style-type: lower-roman;
341+
}
342+
}
343+
}
344+
> ul,
345+
> ol {
346+
margin-top: 1.0rem;
347+
}
348+
349+
> #markdown-toc {
350+
margin-top: 1.0rem;
312351
}
313352
em {
314353
font-weight: 700;

_sass/pages/post.scss

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@
104104
font-size: 1.7em;
105105
}
106106

107+
ul,
107108
ol {
108-
padding-left: 30px;
109+
margin: 0 0 1rem 1.5rem;
110+
padding-left: 1.25rem;
109111
list-style-position: outside;
110112
}
111113

@@ -134,7 +136,46 @@
134136
}
135137

136138
ul {
139+
list-style-type: disc;
137140
margin-bottom: 16px;
141+
142+
ul,
143+
ol {
144+
margin: 0.25rem 0 0.5rem 1.5rem;
145+
}
146+
147+
ul {
148+
list-style-type: circle;
149+
}
150+
151+
ul ul {
152+
list-style-type: square;
153+
}
154+
}
155+
156+
ol {
157+
list-style-type: decimal;
158+
159+
li {
160+
margin: 0.25rem 0;
161+
}
162+
163+
ol,
164+
ul {
165+
margin: 0.25rem 0 0.5rem 1.5rem;
166+
}
167+
168+
ol {
169+
list-style-type: lower-alpha;
170+
171+
ol {
172+
list-style-type: lower-roman;
173+
}
174+
}
175+
}
176+
177+
ul,
178+
ol {
138179
li {
139180
font-size: 1rem;
140181
}
@@ -310,4 +351,4 @@
310351
}
311352
.d-iblock {
312353
display: inline-block
313-
}
354+
}

0 commit comments

Comments
 (0)