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/claro/css/components/messages.css
  4. 10 core/themes/starterkit_theme/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

Messages.

File

core/themes/olivero/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. * @file
  9. * Messages.
  10. */
  11. :root {
  12. --messages-icon-size: 2rem;
  13. }
  14. .messages-list {
  15. margin-block: var(--sp1);
  16. padding-block: 0;
  17. padding-inline-start: 0;
  18. padding-inline-end: 0;
  19. list-style: none;
  20. }
  21. .messages {
  22. min-height: calc(var(--messages-icon-size) + 2 * var(--sp1));
  23. padding-block: var(--sp1);
  24. padding-inline-start: var(--sp1-5);
  25. padding-inline-end: var(--sp1-5);
  26. color: var(--color--white);
  27. outline: solid 1px transparent;
  28. background-color: var(--color--gray-5);
  29. }
  30. .messages * {
  31. color: inherit;
  32. }
  33. /* Additional specificity to override contrib modules. */
  34. .messages.messages-list__item {
  35. background-image: none;
  36. }
  37. .messages__list {
  38. margin-block: 0;
  39. margin-inline-start: 0;
  40. margin-inline-end: 0;
  41. padding-block: 0;
  42. padding-inline-start: 0;
  43. padding-inline-end: 0;
  44. list-style: none;
  45. }
  46. .messages:not(.hidden) ~ .messages {
  47. margin-block-start: var(--sp1);
  48. }
  49. .messages__item + .messages__item {
  50. margin-block-start: var(--sp0-5);
  51. }
  52. .messages__container {
  53. display: flex;
  54. }
  55. .messages__header {
  56. flex-shrink: 0;
  57. margin-inline-end: var(--sp1);
  58. }
  59. .messages__header.no-icon {
  60. margin-inline-end: 0;
  61. }
  62. .messages__content {
  63. overflow: auto; /* Ensure large code blocks can be scrolled to. */
  64. flex: 1;
  65. padding-block-start: 0.1875rem;
  66. }
  67. .messages__button {
  68. flex-shrink: 0;
  69. margin-inline-start: var(--sp1);
  70. padding-block-start: 0.1875rem;
  71. }
  72. .messages__close {
  73. position: relative;
  74. width: 1.5625rem;
  75. height: 1.5625rem;
  76. padding-block: 0;
  77. padding-inline-start: 0;
  78. padding-inline-end: 0;
  79. cursor: pointer;
  80. vertical-align: top;
  81. border: 0;
  82. background: none;
  83. appearance: none;
  84. }
  85. .messages__close::before,
  86. .messages__close::after {
  87. position: absolute;
  88. top: 50%;
  89. left: 50%;
  90. display: block;
  91. width: 2.0625rem;
  92. height: 0;
  93. content: "";
  94. border-top: solid 2px var(--color--gray-60);
  95. }
  96. .messages__close::before {
  97. transform: translate(-50%, -50%) rotate(45deg);
  98. }
  99. .messages__close::after {
  100. transform: translate(-50%, -50%) rotate(-45deg);
  101. }
  102. .messages__close:hover::before,
  103. .messages__close:hover::after {
  104. border-color: var(--color--white);
  105. }
  106. .messages__close:focus {
  107. outline: 2px solid var(--color--primary-60);
  108. outline-offset: 2px;
  109. }
  110. .messages__icon svg {
  111. vertical-align: top;
  112. }
  113. .messages--error .messages__icon svg {
  114. fill: var(--color--red);
  115. }
  116. .messages--warning .messages__icon svg {
  117. fill: var(--color--gold);
  118. }
  119. .messages--status .messages__icon svg {
  120. fill: var(--color--green);
  121. }
  122. .messages--info .messages__icon svg {
  123. fill: var(--color--primary-60);
  124. }
  125. .messages a {
  126. color: var(--color--white);
  127. }
  128. .messages pre {
  129. margin: 0;
  130. }
  131. .js-form-managed-file .messages {
  132. margin-block-end: var(--sp1);
  133. border-inline-start: solid 0.375rem var(--color--red);
  134. }

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