messages.css

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

Styles for system messages.

File

core/themes/seven/css/classy/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. /* See .color-success in Seven's colors.css */
  33. .messages--status {
  34. color: #325e1c;
  35. border-color: #c9e1bd #c9e1bd #c9e1bd transparent; /* LTR */
  36. background-color: #f3faef;
  37. background-image: url(../../../../../misc/icons/73b355/check.svg);
  38. box-shadow: -8px 0 0 #77b259; /* LTR */
  39. }
  40. [dir="rtl"] .messages--status {
  41. margin-left: 0;
  42. border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
  43. box-shadow: 8px 0 0 #77b259;
  44. }
  45. /* See .color-warning in Seven's colors.css */
  46. .messages--warning {
  47. color: #734c00;
  48. border-color: #f4daa6 #f4daa6 #f4daa6 transparent; /* LTR */
  49. background-color: #fdf8ed;
  50. background-image: url(../../../../../misc/icons/e29700/warning.svg);
  51. box-shadow: -8px 0 0 #e09600; /* LTR */
  52. }
  53. [dir="rtl"] .messages--warning {
  54. border-color: #f4daa6 transparent #f4daa6 #f4daa6;
  55. box-shadow: 8px 0 0 #e09600;
  56. }
  57. /* See .color-error in Seven's colors.css */
  58. .messages--error {
  59. color: #a51b00;
  60. border-color: #f9c9bf #f9c9bf #f9c9bf transparent; /* LTR */
  61. background-color: #fcf4f2;
  62. background-image: url(../../../../../misc/icons/e32700/error.svg);
  63. box-shadow: -8px 0 0 #e62600; /* LTR */
  64. }
  65. [dir="rtl"] .messages--error {
  66. border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
  67. box-shadow: 8px 0 0 #e62600;
  68. }
  69. .messages--error p.error {
  70. color: #a51b00;
  71. }

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