mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 01:22:07 +01:00
Convert error messages to SVG icons
This commit is contained in:
parent
47cad1f2d3
commit
6adc13abf2
@ -11,11 +11,13 @@
|
||||
forced-color-adjust: none;
|
||||
}
|
||||
|
||||
// UI-Redesign: to be added via js and styled here
|
||||
// TODO Forms
|
||||
&::before {
|
||||
font-family: $font-wagtail-icons;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: -10%;
|
||||
content: map.get($icons, 'warning');
|
||||
mask-image: url('#{$images-root}icons/warning.svg');
|
||||
background-color: currentColor;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="icon-warning" viewBox="0 0 512 512">
|
||||
<path d="M506.3 417 293 53c-16.33-28-57.54-28-73.98 0L5.82 417c-16.41 27.9 4.029 63 36.92 63h426.6c32.76 0 53.26-35 36.96-63zM232 168c0-13.25 10.75-24 24-24s24 10.8 24 24v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zm24 248c-17.36 0-31.44-14.08-31.44-31.44s14.07-31.44 31.44-31.44 31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 438 B |
Loading…
Reference in New Issue
Block a user