|
| 1 | +@use "sass:map"; |
| 2 | +@use "sass:math"; |
| 3 | +// stylelint-disable scss/comment-no-empty |
1 | 4 | // These are the generic stylings for forms of any type.
|
2 | 5 | // If you're styling something specific to the page editing interface,
|
3 | 6 | // it probably ought to go in layouts/page-editor.scss
|
@@ -92,8 +95,8 @@ select::-ms-expand {
|
92 | 95 | top: 1px;
|
93 | 96 | bottom: 0;
|
94 | 97 | width: 1.5em;
|
95 |
| - font-family: wagtail; |
96 |
| - content: map-get($icons, 'arrow-down'); |
| 98 | + font-family: $font-wagtail-icons; |
| 99 | + content: map.get($icons, 'arrow-down'); |
97 | 100 | border: 1px solid $color-input-border;
|
98 | 101 | border-width: 0 0 0 1px;
|
99 | 102 | text-align: center;
|
@@ -134,9 +137,9 @@ select::-ms-expand {
|
134 | 137 | }
|
135 | 138 |
|
136 | 139 | &::before {
|
137 |
| - font-family: wagtail; |
| 140 | + font-family: $font-wagtail-icons; |
138 | 141 | vertical-align: -10%;
|
139 |
| - content: map-get($icons, 'cross'); |
| 142 | + content: map.get($icons, 'cross'); |
140 | 143 | }
|
141 | 144 | }
|
142 | 145 |
|
@@ -191,7 +194,7 @@ label.required:after {
|
191 | 194 |
|
192 | 195 | &:before,
|
193 | 196 | &:after {
|
194 |
| - font-family: wagtail; |
| 197 | + font-family: $font-wagtail-icons; |
195 | 198 | position: absolute;
|
196 | 199 | top: 0.5em;
|
197 | 200 | line-height: 100%;
|
@@ -246,19 +249,19 @@ label.required:after {
|
246 | 249 | .date_field,
|
247 | 250 | .date_time_field {
|
248 | 251 | .input:before {
|
249 |
| - content: map-get($icons, 'date'); |
| 252 | + content: map.get($icons, 'date'); |
250 | 253 | }
|
251 | 254 | }
|
252 | 255 |
|
253 | 256 | .time_field {
|
254 | 257 | .input:before {
|
255 |
| - content: map-get($icons, 'time'); |
| 258 | + content: map.get($icons, 'time'); |
256 | 259 | }
|
257 | 260 | }
|
258 | 261 |
|
259 | 262 | .url_field {
|
260 | 263 | .input:before {
|
261 |
| - content: map-get($icons, 'link'); |
| 264 | + content: map.get($icons, 'link'); |
262 | 265 | }
|
263 | 266 | }
|
264 | 267 |
|
@@ -345,7 +348,7 @@ li.inline .field {
|
345 | 348 | // solve gutter issues of inline fields
|
346 | 349 | ul.inline li:first-child,
|
347 | 350 | li.inline:first-child {
|
348 |
| - margin-left: -$grid-gutter-width / 2; |
| 351 | + margin-left: math.div(-$grid-gutter-width, 2); |
349 | 352 | }
|
350 | 353 |
|
351 | 354 | // search-bars
|
@@ -380,6 +383,7 @@ li.inline:first-child {
|
380 | 383 | }
|
381 | 384 |
|
382 | 385 | // Transitions
|
| 386 | +// stylelint-disable-next-line no-duplicate-selectors |
383 | 387 | .help {
|
384 | 388 | @include transition(opacity 0.2s ease);
|
385 | 389 | }
|
|
0 commit comments