messages.css

Same filename in this branch
  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/bartik/css/components/messages.css
  5. 8.9.x core/themes/bartik/css/classy/components/messages.css
  6. 8.9.x core/themes/classy/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. 10 core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
  11. 10 core/misc/dialog/off-canvas/css/messages.css
  12. 10 core/themes/olivero/css/components/messages.css
  13. 10 core/themes/claro/css/components/messages.css
  14. 10 core/themes/starterkit_theme/css/components/messages.css
  15. 11.x core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
  16. 11.x core/misc/dialog/off-canvas/css/messages.css
  17. 11.x core/themes/olivero/css/components/messages.css
  18. 11.x core/themes/claro/css/components/messages.css
  19. 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/2815083
 * @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 {
  box-sizing: border-box;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem 1.5rem 2rem calc(1.5rem - 5px); /* 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: calc(1.5rem - 5px);
  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.1931L11.4501 2.99995' stroke='%23e34f4f' stroke-width='2'/%3E%3Ccircle cx='7' cy='7' r='6' fill='none' stroke='%23e34f4f' stroke-width='2'/%3E%3C/svg%3E%0A") 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.57143L5.6 10L14 2' fill='none' stroke='%2342a877' stroke-width='3'/%3E%3C/svg%3E%0A") 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%3Crect x='0.5' width='3' height='9'/%3E%3Ccircle cx='2' cy='12.5' r='1.5'/%3E%3C/svg%3E%0A") 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/2815083
  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. box-sizing: border-box;
  25. margin-top: 1rem;
  26. margin-bottom: 1rem;
  27. padding: 1.5rem 1.5rem 2rem calc(1.5rem - 5px); /* LTR */
  28. color: #fff;
  29. border-width: 0 0 0 5px; /* LTR */
  30. border-style: solid;
  31. border-color: #353641;
  32. border-radius: 2px;
  33. background-color: #353641;
  34. }
  35. [dir="rtl"] .messages {
  36. padding-right: calc(1.5rem - 5px);
  37. padding-left: 1.5rem;
  38. border-right-width: 5px;
  39. border-left-width: 0;
  40. }
  41. .messages--error {
  42. border-color: #e34f4f;
  43. }
  44. .messages--status {
  45. border-color: #42a877;
  46. }
  47. .messages--warning {
  48. border-color: #e0ac00;
  49. }
  50. .messages__title {
  51. margin: 0 0 0 2.5rem; /* LTR */
  52. font-size: 1rem;
  53. }
  54. [dir="rtl"] .messages__title {
  55. margin-right: 2.5rem;
  56. margin-left: 0;
  57. }
  58. .messages--error .messages__header {
  59. 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.1931L11.4501 2.99995' stroke='%23e34f4f' stroke-width='2'/%3E%3Ccircle cx='7' cy='7' r='6' fill='none' stroke='%23e34f4f' stroke-width='2'/%3E%3C/svg%3E%0A") no-repeat center left; /* LTR */
  60. }
  61. [dir="rtl"] .messages--error .messages__header {
  62. background-position: center right;
  63. }
  64. .messages--status .messages__header {
  65. 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.57143L5.6 10L14 2' fill='none' stroke='%2342a877' stroke-width='3'/%3E%3C/svg%3E%0A") no-repeat center left; /* LTR */
  66. }
  67. [dir="rtl"] .messages--status .messages__header {
  68. background-position: center right;
  69. }
  70. .messages--warning .messages__header {
  71. 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%3Crect x='0.5' width='3' height='9'/%3E%3Ccircle cx='2' cy='12.5' r='1.5'/%3E%3C/svg%3E%0A") no-repeat center left; /* LTR */
  72. }
  73. [dir="rtl"] .messages--warning .messages__header {
  74. background-position: center right;
  75. }
  76. .messages__header {
  77. display: flex;
  78. align-items: center;
  79. margin-bottom: 1rem;
  80. }
  81. @media screen and (min-width: 48rem) {
  82. .messages__content {
  83. margin-left: 2.5rem; /* LTR */
  84. }
  85. [dir="rtl"] .messages__content {
  86. margin-right: 2.5rem;
  87. margin-left: 0;
  88. }
  89. }
  90. .messages a {
  91. text-decoration: underline;
  92. color: #ffd23f;
  93. }
  94. .messages a:hover {
  95. color: #fff;
  96. }
  97. .messages pre {
  98. margin: 0;
  99. }
  100. .messages__list {
  101. margin: 0;
  102. padding: 0;
  103. list-style: none;
  104. }
  105. .messages__item + .messages__item {
  106. margin-top: 0.75rem;
  107. }
  108. @media screen and (-ms-high-contrast: active) {
  109. .messages {
  110. border-width: 1px 1px 1px 5px; /* LTR */
  111. }
  112. [dir="rtl"] .messages {
  113. border-right-width: 5px;
  114. border-left-width: 1px;
  115. }
  116. .messages__header {
  117. filter: grayscale(1) brightness(1.5) contrast(10);
  118. }
  119. }

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