messages.css

Same filename in this branch
  1. 10 core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
  2. 10 core/misc/dialog/off-canvas/css/messages.css
  3. 10 core/themes/olivero/css/components/messages.css
  4. 10 core/themes/claro/css/components/messages.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
  2. 9 core/themes/olivero/css/components/messages.css
  3. 9 core/themes/seven/css/components/messages.css
  4. 9 core/themes/seven/css/classy/components/messages.css
  5. 9 core/themes/claro/css/components/messages.css
  6. 9 core/themes/bartik/css/components/messages.css
  7. 9 core/themes/bartik/css/classy/components/messages.css
  8. 9 core/themes/starterkit_theme/css/components/messages.css
  9. 9 core/themes/classy/css/components/messages.css
  10. 8.9.x core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
  11. 8.9.x core/themes/seven/css/components/messages.css
  12. 8.9.x core/themes/seven/css/classy/components/messages.css
  13. 8.9.x core/themes/claro/css/components/messages.css
  14. 8.9.x core/themes/bartik/css/components/messages.css
  15. 8.9.x core/themes/bartik/css/classy/components/messages.css
  16. 8.9.x core/themes/classy/css/components/messages.css
  17. 11.x core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
  18. 11.x core/misc/dialog/off-canvas/css/messages.css
  19. 11.x core/themes/olivero/css/components/messages.css
  20. 11.x core/themes/claro/css/components/messages.css
  21. 11.x core/themes/starterkit_theme/css/components/messages.css

Styles for system messages.

File

core/themes/starterkit_theme/css/components/messages.css

View source
  1. /**
  2. * @file
  3. * Styles for system messages.
  4. */
  5. .messages {
  6. padding: 15px 20px 15px 35px; /* LTR */
  7. word-wrap: break-word;
  8. border: 1px solid;
  9. border-width: 1px 1px 1px 0; /* LTR */
  10. border-radius: 2px;
  11. background: no-repeat 10px 17px; /* LTR */
  12. overflow-wrap: break-word;
  13. }
  14. [dir="rtl"] .messages {
  15. padding-right: 35px;
  16. padding-left: 20px;
  17. text-align: right;
  18. border-width: 1px 0 1px 1px;
  19. background-position: right 10px top 17px;
  20. }
  21. .messages + .messages {
  22. margin-top: 1.538em;
  23. }
  24. .messages__list {
  25. margin: 0;
  26. padding: 0;
  27. list-style: none;
  28. }
  29. .messages__item + .messages__item {
  30. margin-top: 0.769em;
  31. }
  32. .messages--status {
  33. color: #325e1c;
  34. border-color: #c9e1bd #c9e1bd #c9e1bd transparent; /* LTR */
  35. background-color: #f3faef;
  36. background-image: url(../../images/icons/check.svg);
  37. box-shadow: -8px 0 0 #77b259; /* LTR */
  38. }
  39. [dir="rtl"] .messages--status {
  40. margin-left: 0;
  41. border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
  42. box-shadow: 8px 0 0 #77b259;
  43. }
  44. .messages--warning {
  45. color: #734c00;
  46. border-color: #f4daa6 #f4daa6 #f4daa6 transparent; /* LTR */
  47. background-color: #fdf8ed;
  48. background-image: url(../../images/icons/warning.svg);
  49. box-shadow: -8px 0 0 #e09600; /* LTR */
  50. }
  51. [dir="rtl"] .messages--warning {
  52. border-color: #f4daa6 transparent #f4daa6 #f4daa6;
  53. box-shadow: 8px 0 0 #e09600;
  54. }
  55. .messages--error {
  56. color: #a51b00;
  57. border-color: #f9c9bf #f9c9bf #f9c9bf transparent; /* LTR */
  58. background-color: #fcf4f2;
  59. background-image: url(../../images/icons/error.svg);
  60. box-shadow: -8px 0 0 #e62600; /* LTR */
  61. }
  62. [dir="rtl"] .messages--error {
  63. border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
  64. box-shadow: 8px 0 0 #e62600;
  65. }
  66. .messages--error p.error {
  67. color: #a51b00;
  68. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.