|
138 | 138 | content: ''; |
139 | 139 | position: absolute; |
140 | 140 | left: calc(-1 * var(--et-ul-gap-width, 16px) - var(--et-ul-bullet-size, 8px)); |
141 | | - bottom: 0.4em; |
142 | | - @supports (bottom: 0.5lh) { |
143 | | - bottom: 0.5lh; |
| 141 | + top: 0.6em; |
| 142 | + @supports (top: 0.5lh) { |
| 143 | + top: 0.5lh; |
144 | 144 | } |
145 | | - |
146 | | - transform: translateY(50%); |
| 145 | + transform: translateY(-50%); |
147 | 146 | width: var(--et-ul-bullet-size, 8px); |
148 | 147 | height: var(--et-ul-bullet-size, 8px); |
149 | 148 | border-radius: 50%; |
|
158 | 157 | padding-left: calc( |
159 | 158 | var(--et-ol-margin-left, 16px) + var(--et-ol-gap-width, 16px) |
160 | 159 | ); |
161 | | - counter-reset: eti-ol; |
| 160 | + counter-reset: et-ol; |
162 | 161 | } |
163 | 162 |
|
164 | 163 | .eti-editor ol > li, |
165 | 164 | .et-view ol > li { |
166 | 165 | position: relative; |
167 | | - counter-increment: eti-ol; |
| 166 | + counter-increment: et-ol; |
168 | 167 | min-height: 1lh; |
169 | 168 | } |
170 | 169 |
|
171 | 170 | .eti-editor ol > li::before, |
172 | 171 | .et-view ol > li::before { |
173 | | - content: counter(eti-ol) '.'; |
| 172 | + content: counter(et-ol) '.'; |
174 | 173 | position: absolute; |
175 | 174 | left: calc(-1 * var(--et-ol-gap-width, 16px)); |
176 | | - bottom: 0; |
177 | | - transform: translateX(-50%); |
| 175 | + top: 0.6em; |
| 176 | + @supports (top: 0.5lh) { |
| 177 | + top: 0.5lh; |
| 178 | + } |
| 179 | + transform: translate3d(-50%, -50%, 0); |
178 | 180 | color: var(--et-ol-marker-color, currentColor); |
179 | 181 | font-weight: var(--et-ol-marker-font-weight, inherit); |
180 | 182 | white-space: nowrap; |
|
238 | 240 | left: calc( |
239 | 241 | -1 * var(--et-checkbox-gap-width, 16px) - var(--et-checkbox-box-size, 24px) |
240 | 242 | ); |
241 | | - transform: translateY(50%); |
242 | 243 | display: inline-flex; |
243 | 244 | align-items: center; |
244 | 245 | gap: 0; |
245 | 246 | margin: 0; |
246 | 247 | padding: 0; |
247 | 248 | user-select: none; |
248 | | - bottom: 0.4em; |
249 | | - @supports (bottom: 0.5lh) { |
250 | | - bottom: 0.5lh; |
| 249 | + top: 0.6em; |
| 250 | + @supports (top: 0.5lh) { |
| 251 | + top: 0.5lh; |
251 | 252 | } |
| 253 | + transform: translateY(-50%); |
252 | 254 | } |
253 | 255 |
|
254 | 256 | .eti-editor ul[data-type='checkboxList'] > li > label input[type='checkbox'] { |
|
280 | 282 | left: calc( |
281 | 283 | -1 * var(--et-checkbox-gap-width, 16px) - var(--et-checkbox-box-size, 24px) |
282 | 284 | ); |
| 285 | + font-size: inherit; |
| 286 | + line-height: inherit; |
| 287 | + top: 0.6em; |
| 288 | + @supports (top: 0.5lh) { |
| 289 | + top: 0.5lh; |
| 290 | + } |
| 291 | + transform: translateY(-50%); |
283 | 292 | width: var(--et-checkbox-box-size, 24px); |
284 | 293 | height: var(--et-checkbox-box-size, 24px); |
285 | 294 | margin: 0 var(--et-checkbox-gap-width, 16px) 0 0; |
|
0 commit comments