Skip to content

Commit 340add7

Browse files
authored
chore(docs): doc style cleanup for nested lists (#4704)
* chore(docs): scss linting * chore(docs): better nested list styling for docs * post-linting typo
1 parent aa65db8 commit 340add7

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

shared/styles/doc.scss

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ $frame-spacing: 0.5rem;
9797
display: flex;
9898
justify-content: flex-end;
9999
background: $light-gray-border-color;
100-
margin: -1rem -1rem 1rem -1rem;
100+
margin: -1rem -1rem 1rem;
101101
padding: 0.25rem 0.5rem;
102102
}
103103

@@ -145,7 +145,6 @@ $frame-spacing: 0.5rem;
145145
flex: 1 1 auto;
146146
padding-left: 5%;
147147
}
148-
149148
}
150149
}
151150

@@ -233,7 +232,7 @@ blockquote.doc {
233232
font-size: 1.125rem;
234233
font-weight: 300;
235234
padding: 1rem;
236-
margin: 0 0 1.5rem 0;
235+
margin: 0 0 1.5rem;
237236
border: 1px solid $light-gray-border-color;
238237
border-left-width: 0.125rem;
239238

@@ -300,6 +299,10 @@ ol.doc {
300299

301300
ul.doc {
302301
list-style: disc;
302+
303+
ul.doc {
304+
list-style: circle;
305+
}
303306
}
304307

305308
ol.doc {
@@ -349,12 +352,18 @@ ul.doc-toc {
349352
}
350353

351354
.doc-toc li.doc a {
352-
font-size: .875rem;
355+
font-size: 0.875rem;
353356
font-weight: 700;
354357
}
355358

356-
li.doc > ul.doc, li.doc > li.doc, ul.doc > ul.doc, ul.doc > li.doc {
357-
margin-left: .4rem;
359+
li.doc > li.doc,
360+
ul.doc > li.doc {
361+
margin-left: 0.4rem;
362+
}
363+
364+
li.doc > ul.doc,
365+
ul.doc > ul.doc {
366+
margin-left: 1rem;
358367
}
359368

360369
li.doc > ul.doc {
@@ -366,17 +375,17 @@ li.doc > ul.doc {
366375
}
367376

368377
.doc-toc > li.doc > ul.doc ul.doc > li.doc a {
369-
font-size: .75rem;
378+
font-size: 0.75rem;
370379
font-weight: 400;
371380
color: #4872ab;
372381
}
373382

374383
h2.doc-toc-header {
375384
font-size: 1rem;
376385
border-bottom: 1px solid #d9dbdd;
377-
margin-bottom: .5rem;
386+
margin-bottom: 0.5rem;
378387
text-transform: uppercase;
379-
letter-spacing: .1rem;
388+
letter-spacing: 0.1rem;
380389
}
381390

382391
.doc-tokens-group .slds-button {
@@ -421,7 +430,7 @@ h2.doc-toc-header {
421430
height: 8rem;
422431
}
423432

424-
.doc-padding::before{
433+
.doc-padding:before {
425434
content: '';
426435
display: block;
427436
background: #1589ee;

0 commit comments

Comments
 (0)