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/seven/css/classy/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
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * Messages.
 *
 * @todo revisit this after https://www.drupal.org/project/drupal/issues/3078400
 *   has been resolved.
 */

.messages-list {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding: 0;
  list-style: none;
}

.field .messages-list,
.form-wrapper .messages-list {
  margin-bottom: 0;
}

.messages {
  overflow: auto; /* Required to prevent text clipping. */
  box-sizing: border-box;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 2rem 1.1875rem; /* LTR */
  color: #fff;
  border-width: 0 0 0 5px; /* LTR */
  border-style: solid;
  border-color: #353641;
  border-radius: 2px;
  background-color: #353641;
}

[dir="rtl"] .messages {
  padding-right: 1.1875rem;
  padding-left: 1.5rem;
  border-right-width: 5px;
  border-left-width: 0;
}

.messages--error {
  border-color: #e34f4f;
}

.messages--status {
  border-color: #42a877;
}

.messages--warning {
  border-color: #e0ac00;
}

.messages__title {
  margin: 0 0 0 2.5rem; /* LTR */
  font-size: 1rem;
}

[dir="rtl"] .messages__title {
  margin-right: 2.5rem;
  margin-left: 0;
}

.messages--error .messages__header {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 14 14'%3e%3cpath d='M3 11.193L11.45 3' stroke='%23e34f4f' stroke-width='2'/%3e%3ccircle cx='7' cy='7' r='6' fill='none' stroke='%23e34f4f' stroke-width='2'/%3e%3c/svg%3e") no-repeat center left; /* LTR */
}

[dir="rtl"] .messages--error .messages__header {
  background-position: center right;
}

.messages--status .messages__header {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 13'%3e%3cpath d='M2 6.571L5.6 10 14 2' fill='none' stroke='%2342a877' stroke-width='3'/%3e%3c/svg%3e") no-repeat center left; /* LTR */
}

[dir="rtl"] .messages--status .messages__header {
  background-position: center right;
}

.messages--warning .messages__header {
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 4 14' fill='%23e0ac00'%3e%3cpath d='M.5 0h3v9h-3z'/%3e%3ccircle cx='2' cy='12.5' r='1.5'/%3e%3c/svg%3e") no-repeat center left; /* LTR */
}

[dir="rtl"] .messages--warning .messages__header {
  background-position: center right;
}

.messages__header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

@media screen and (min-width: 48rem) {
  .messages__content {
    margin-left: 2.5rem; /* LTR */
  }

  [dir="rtl"] .messages__content {
    margin-right: 2.5rem;
    margin-left: 0;
  }
}

.messages a {
  text-decoration: underline;
  color: #ffd23f;
}

.messages a:hover {
  color: #fff;
}

.messages pre {
  margin: 0;
}

.messages__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.messages__item + .messages__item {
  margin-top: 0.75rem;
}

@media screen and (-ms-high-contrast: active) {
  .messages {
    border-width: 1px 1px 1px 5px; /* LTR */
  }
  [dir="rtl"] .messages {
    border-right-width: 5px;
    border-left-width: 1px;
  }
  .messages__header {
    filter: grayscale(1) brightness(1.5) contrast(10);
  }
}

File

core/themes/claro/css/components/messages.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * Messages.
  9. *
  10. * @todo revisit this after https://www.drupal.org/project/drupal/issues/3078400
  11. * has been resolved.
  12. */
  13. .messages-list {
  14. margin-top: 2.5rem;
  15. margin-bottom: 2.5rem;
  16. padding: 0;
  17. list-style: none;
  18. }
  19. .field .messages-list,
  20. .form-wrapper .messages-list {
  21. margin-bottom: 0;
  22. }
  23. .messages {
  24. overflow: auto; /* Required to prevent text clipping. */
  25. box-sizing: border-box;
  26. margin-top: 1rem;
  27. margin-bottom: 1rem;
  28. padding: 1.5rem 1.5rem 2rem 1.1875rem; /* LTR */
  29. color: #fff;
  30. border-width: 0 0 0 5px; /* LTR */
  31. border-style: solid;
  32. border-color: #353641;
  33. border-radius: 2px;
  34. background-color: #353641;
  35. }
  36. [dir="rtl"] .messages {
  37. padding-right: 1.1875rem;
  38. padding-left: 1.5rem;
  39. border-right-width: 5px;
  40. border-left-width: 0;
  41. }
  42. .messages--error {
  43. border-color: #e34f4f;
  44. }
  45. .messages--status {
  46. border-color: #42a877;
  47. }
  48. .messages--warning {
  49. border-color: #e0ac00;
  50. }
  51. .messages__title {
  52. margin: 0 0 0 2.5rem; /* LTR */
  53. font-size: 1rem;
  54. }
  55. [dir="rtl"] .messages__title {
  56. margin-right: 2.5rem;
  57. margin-left: 0;
  58. }
  59. .messages--error .messages__header {
  60. background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 14 14'%3e%3cpath d='M3 11.193L11.45 3' stroke='%23e34f4f' stroke-width='2'/%3e%3ccircle cx='7' cy='7' r='6' fill='none' stroke='%23e34f4f' stroke-width='2'/%3e%3c/svg%3e") no-repeat center left; /* LTR */
  61. }
  62. [dir="rtl"] .messages--error .messages__header {
  63. background-position: center right;
  64. }
  65. .messages--status .messages__header {
  66. background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 13'%3e%3cpath d='M2 6.571L5.6 10 14 2' fill='none' stroke='%2342a877' stroke-width='3'/%3e%3c/svg%3e") no-repeat center left; /* LTR */
  67. }
  68. [dir="rtl"] .messages--status .messages__header {
  69. background-position: center right;
  70. }
  71. .messages--warning .messages__header {
  72. background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 4 14' fill='%23e0ac00'%3e%3cpath d='M.5 0h3v9h-3z'/%3e%3ccircle cx='2' cy='12.5' r='1.5'/%3e%3c/svg%3e") no-repeat center left; /* LTR */
  73. }
  74. [dir="rtl"] .messages--warning .messages__header {
  75. background-position: center right;
  76. }
  77. .messages__header {
  78. display: flex;
  79. align-items: center;
  80. margin-bottom: 1rem;
  81. }
  82. @media screen and (min-width: 48rem) {
  83. .messages__content {
  84. margin-left: 2.5rem; /* LTR */
  85. }
  86. [dir="rtl"] .messages__content {
  87. margin-right: 2.5rem;
  88. margin-left: 0;
  89. }
  90. }
  91. .messages a {
  92. text-decoration: underline;
  93. color: #ffd23f;
  94. }
  95. .messages a:hover {
  96. color: #fff;
  97. }
  98. .messages pre {
  99. margin: 0;
  100. }
  101. .messages__list {
  102. margin: 0;
  103. padding: 0;
  104. list-style: none;
  105. }
  106. .messages__item + .messages__item {
  107. margin-top: 0.75rem;
  108. }
  109. @media screen and (-ms-high-contrast: active) {
  110. .messages {
  111. border-width: 1px 1px 1px 5px; /* LTR */
  112. }
  113. [dir="rtl"] .messages {
  114. border-right-width: 5px;
  115. border-left-width: 1px;
  116. }
  117. .messages__header {
  118. filter: grayscale(1) brightness(1.5) contrast(10);
  119. }
  120. }

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