Skip to content

Commit 5338af6

Browse files
committed
Add support for ordered lists to the AuContent component
This adds some basic styles for `<ol>` elements.
1 parent c7102fe commit 5338af6

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

styles/components/_c-content.scss

+11-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ $au-content-tiny: var(--au-small) !default;
7777
margin-left: $au-unit;
7878
}
7979

80-
ul.au-c-list {
80+
ol:not(.au-c-list-horizontal) {
81+
list-style: decimal;
82+
margin-left: $au-unit;
83+
}
84+
85+
ul.au-c-list,
86+
ol.au-c-list {
8187
list-style: none;
8288
margin-left: 0;
8389
}
@@ -88,11 +94,13 @@ $au-content-tiny: var(--au-small) !default;
8894
}
8995

9096
// @TODO: list-horizontal needs to be refactored to the list component.
91-
ul:not(.au-c-list-horizontal) li + li {
97+
ul:not(.au-c-list-horizontal) li + li,
98+
ol:not(.au-c-list-horizontal) li + li {
9299
margin-top: $au-unit-tiny;
93100
}
94101

95-
ul.au-c-list li + li {
102+
ul.au-c-list li + li,
103+
ol.au-c-list li + li {
96104
margin-top: 0;
97105
}
98106

0 commit comments

Comments
 (0)