|
1 |
| -// Use the not-custom-list class in your theme if you want the basic style |
| 1 | +// Use the no-list-style class in your theme if you want the basic style |
2 | 2 |
|
3 | 3 | %bullet {
|
4 | 4 | position: absolute;
|
5 |
| - top: 12px; |
| 5 | + top: 9px; |
6 | 6 | left: 0;
|
7 | 7 | width: 5px;
|
8 | 8 | height: 5px;
|
|
17 | 17 | }
|
18 | 18 |
|
19 | 19 | #{context-selector('.blocks-container', '.is-root-container')} {
|
20 |
| - ul:not(.not-custom-list), |
21 |
| - ol:not(.not-custom-list) { |
| 20 | + ul, |
| 21 | + ol { |
22 | 22 | &:not([class*="is-style-"]):not([class*="no-list-style"]):not([role="list"]) {
|
23 | 23 | font-size: var(--paragraph--font-size-default, $font-size-base);
|
24 | 24 | line-height: var(--paragraph--line-height-default, $line-height-base);
|
|
31 | 31 | }
|
32 | 32 | }
|
33 | 33 |
|
34 |
| - ul:not(.not-custom-list) { |
35 |
| - &:not([class*="is-style-"], .no-list-style,[role="list"]) { |
| 34 | + ul { |
| 35 | + &:not([class*="is-style-"]):not([class*="no-list-style"]):not([role="list"]) { |
36 | 36 | list-style-type: none;
|
37 | 37 |
|
38 | 38 | li {
|
|
57 | 57 | }
|
58 | 58 | }
|
59 | 59 |
|
60 |
| - ol:not(.not-custom-list) { |
61 |
| - &:not([class*="is-style-"], .no-list-style,[role="list"]) { |
| 60 | + ol { |
| 61 | + &:not([class*="is-style-"]):not([class*="no-list-style"]):not([role="list"]) { |
62 | 62 | list-style: none;
|
63 | 63 | counter-reset: section;
|
64 | 64 |
|
65 |
| - &:not([class*="is-style-"]) { |
66 |
| - li { |
67 |
| - position: relative; |
68 |
| - padding-left: 40px; |
69 |
| - margin-bottom: calc(.5 * var(--spacing--block-1)); |
70 |
| - counter-increment: section; |
| 65 | + li { |
| 66 | + position: relative; |
| 67 | + padding-left: 40px; |
| 68 | + margin-bottom: calc(.5 * var(--spacing--block-1)); |
| 69 | + counter-increment: section; |
71 | 70 |
|
72 |
| - @include rtl { |
73 |
| - padding-right: 40px; |
74 |
| - padding-left: 0; |
75 |
| - } |
| 71 | + @include rtl { |
| 72 | + padding-right: 40px; |
| 73 | + padding-left: 0; |
| 74 | + } |
76 | 75 |
|
77 |
| - &::before { |
78 |
| - position: absolute; |
79 |
| - top: 0; |
80 |
| - left: 0; |
81 |
| - font-family: $font-family-secondary; |
82 |
| - font-size: var(--paragraph--font-size-default, $font-size-base); |
83 |
| - font-weight: 400; |
84 |
| - line-height: var(--paragraph--line-height-default, $line-height-base); |
85 |
| - color: $color-dark; |
86 |
| - text-align: center; |
87 |
| - letter-spacing: -.06em; |
88 |
| - content: counters(section, "", decimal-leading-zero) " "; |
89 |
| - |
90 |
| - @include rtl { |
91 |
| - right: 0; |
92 |
| - left: inherit; |
93 |
| - transform: translateX(100%); |
94 |
| - } |
| 76 | + &::before { |
| 77 | + position: absolute; |
| 78 | + top: 0; |
| 79 | + left: 0; |
| 80 | + font-size: var(--paragraph--font-size-default, $font-size-base); |
| 81 | + font-weight: 400; |
| 82 | + line-height: var(--paragraph--line-height-default, $line-height-base); |
| 83 | + color: $color-dark; |
| 84 | + text-align: center; |
| 85 | + letter-spacing: -.06em; |
| 86 | + content: counters(section, "", decimal-leading-zero) " "; |
| 87 | + |
| 88 | + @include rtl { |
| 89 | + right: 0; |
| 90 | + left: inherit; |
| 91 | + transform: translateX(100%); |
95 | 92 | }
|
| 93 | + } |
96 | 94 |
|
97 |
| - ol { |
98 |
| - margin-top: calc(.5 * var(--spacing--block-1)); |
99 |
| - margin-bottom: calc(.5 * var(--spacing--block-1)); |
100 |
| - counter-reset: subsection; |
| 95 | + ol { |
| 96 | + margin-top: calc(.5 * var(--spacing--block-1)); |
| 97 | + margin-bottom: calc(.5 * var(--spacing--block-1)); |
| 98 | + counter-reset: subsection; |
101 | 99 |
|
102 |
| - li { |
103 |
| - counter-increment: subsection; |
| 100 | + li { |
| 101 | + counter-increment: subsection; |
104 | 102 |
|
105 |
| - &::before { |
106 |
| - content: counters(subsection, ".", lower-alpha) ". "; |
107 |
| - } |
| 103 | + &::before { |
| 104 | + content: counters(subsection, ".", lower-alpha) ". "; |
108 | 105 | }
|
109 | 106 | }
|
| 107 | + } |
110 | 108 |
|
111 |
| - ul { |
112 |
| - margin-top: calc(.5 * var(--spacing--block-1)); |
113 |
| - margin-bottom: calc(.5 * var(--spacing--block-1)); |
114 |
| - counter-reset: section; |
| 109 | + ul { |
| 110 | + margin-top: calc(.5 * var(--spacing--block-1)); |
| 111 | + margin-bottom: calc(.5 * var(--spacing--block-1)); |
| 112 | + counter-reset: section; |
115 | 113 |
|
116 |
| - li { |
117 |
| - padding-top: 0; |
| 114 | + li { |
| 115 | + padding-top: 0; |
118 | 116 |
|
119 |
| - &::before { |
120 |
| - @extend %bullet; |
121 |
| - transform: translateX(0); |
122 |
| - } |
| 117 | + &::before { |
| 118 | + @extend %bullet; |
| 119 | + transform: translateX(0); |
123 | 120 | }
|
124 | 121 | }
|
125 |
| - |
126 | 122 | }
|
| 123 | + |
127 | 124 | }
|
128 | 125 | }
|
129 | 126 | }
|
|
0 commit comments