Skip to content

Commit ac8bf18

Browse files
author
Ryan A. Johnson
committed
style(lists): fix top-level indentation
Add left-margin to top-level ul/ol elements so that they are offset from surrounding body copy.
1 parent c4dd6ec commit ac8bf18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/helix-ui/styles/base/lists.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
ol, ul {
2+
margin-left: 1.25em;
23
padding-left: 1.25rem;
4+
5+
& & {
6+
margin-left: 0; // remove margin for nested lists
7+
}
38
}
49

510
ol {

0 commit comments

Comments
 (0)