0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/client/scss/components/forms/_error-message.scss
Thibaud Colas eac5e0bc2c Finish re-implementing form styles based on design feedback & code review
Co-authored-by: LB Johnston <mail@lb.ee>
2022-08-05 10:36:52 +02:00

22 lines
507 B
SCSS

@use 'sass:map';
.error-message {
border: 1px solid transparent; // ensure visible separation in Windows High Contrast mode
margin: 0.5em 0 0;
font-size: 1em;
font-weight: bold;
color: theme('colors.critical.200');
@media (forced-colors: $media-forced-colours) {
forced-color-adjust: none;
}
// UI-Redesign: to be added via js and styled here
// TODO Forms
&::before {
font-family: $font-wagtail-icons;
vertical-align: -10%;
content: map.get($icons, 'warning');
}
}