_error-message.scss 551 B

1234567891011121314151617181920212223
  1. @use 'sass:map';
  2. .error-message {
  3. border: 1px solid transparent; // ensure visible separation in Windows High Contrast mode
  4. font-size: 0.85em;
  5. font-weight: normal;
  6. margin: 0.5em 0 0;
  7. font-size: 1em;
  8. font-weight: bold;
  9. color: theme('colors.critical.200');
  10. @media (forced-colors: $media-forced-colours) {
  11. forced-color-adjust: none;
  12. }
  13. // UI-Redesign: to be added via js and styled here
  14. // TODO Forms
  15. &::before {
  16. font-family: $font-wagtail-icons;
  17. vertical-align: -10%;
  18. content: map.get($icons, 'warning');
  19. }
  20. }