messages.css
Same filename in this branch
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
- 9 core/themes/olivero/css/components/messages.css
- 9 core/themes/seven/css/components/messages.css
- 9 core/themes/seven/css/classy/components/messages.css
- 9 core/themes/claro/css/components/messages.css
- 9 core/themes/bartik/css/components/messages.css
- 9 core/themes/bartik/css/classy/components/messages.css
- 9 core/themes/starterkit_theme/css/components/messages.css
- 9 core/themes/classy/css/components/messages.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
- 8.9.x core/themes/seven/css/components/messages.css
- 8.9.x core/themes/seven/css/classy/components/messages.css
- 8.9.x core/themes/claro/css/components/messages.css
- 8.9.x core/themes/bartik/css/components/messages.css
- 8.9.x core/themes/bartik/css/classy/components/messages.css
- 8.9.x core/themes/classy/css/components/messages.css
- 11.x core/profiles/demo_umami/themes/umami/css/components/messages/messages.css
- 11.x core/misc/dialog/off-canvas/css/messages.css
- 11.x core/themes/olivero/css/components/messages.css
- 11.x core/themes/claro/css/components/messages.css
- 11.x core/themes/starterkit_theme/css/components/messages.css
Messages.
File
-
core/
themes/ olivero/ css/ components/ messages.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Messages.
- */
-
- :root {
- --messages-icon-size: 2rem;
- }
-
- .messages-list {
- margin-block: var(--sp1);
- padding-block: 0;
- padding-inline-start: 0;
- padding-inline-end: 0;
- list-style: none;
- }
-
- .messages {
- min-height: calc(var(--messages-icon-size) + 2 * var(--sp1));
- padding-block: var(--sp1);
- padding-inline-start: var(--sp1-5);
- padding-inline-end: var(--sp1-5);
- color: var(--color--white);
- outline: solid 1px transparent;
- background-color: var(--color--gray-5);
- }
-
- .messages * {
- color: inherit;
- }
-
- /* Additional specificity to override contrib modules. */
-
- .messages.messages-list__item {
- background-image: none;
- }
-
- .messages__list {
- margin-block: 0;
- margin-inline-start: 0;
- margin-inline-end: 0;
- padding-block: 0;
- padding-inline-start: 0;
- padding-inline-end: 0;
- list-style: none;
- }
-
- .messages:not(.hidden) ~ .messages {
- margin-block-start: var(--sp1);
- }
-
- .messages__item + .messages__item {
- margin-block-start: var(--sp0-5);
- }
-
- .messages__container {
- display: flex;
- }
-
- .messages__header {
- flex-shrink: 0;
- margin-inline-end: var(--sp1);
- }
-
- .messages__header.no-icon {
- margin-inline-end: 0;
- }
-
- .messages__content {
- overflow: auto; /* Ensure large code blocks can be scrolled to. */
- flex: 1;
- padding-block-start: 0.1875rem;
- }
-
- .messages__button {
- flex-shrink: 0;
- margin-inline-start: var(--sp1);
- padding-block-start: 0.1875rem;
- }
-
- .messages__close {
- position: relative;
- width: 1.5625rem;
- height: 1.5625rem;
- padding-block: 0;
- padding-inline-start: 0;
- padding-inline-end: 0;
- cursor: pointer;
- vertical-align: top;
- border: 0;
- background: none;
- appearance: none;
- }
-
- .messages__close::before,
- .messages__close::after {
- position: absolute;
- top: 50%;
- left: 50%;
- display: block;
- width: 2.0625rem;
- height: 0;
- content: "";
- border-top: solid 2px var(--color--gray-60);
- }
-
- .messages__close::before {
- transform: translate(-50%, -50%) rotate(45deg);
- }
-
- .messages__close::after {
- transform: translate(-50%, -50%) rotate(-45deg);
- }
-
- .messages__close:hover::before,
- .messages__close:hover::after {
- border-color: var(--color--white);
- }
-
- .messages__close:focus {
- outline: 2px solid var(--color--primary-60);
- outline-offset: 2px;
- }
-
- .messages__icon svg {
- vertical-align: top;
- }
-
- .messages--error .messages__icon svg {
- fill: var(--color--red);
- }
-
- .messages--warning .messages__icon svg {
- fill: var(--color--gold);
- }
-
- .messages--status .messages__icon svg {
- fill: var(--color--green);
- }
-
- .messages--info .messages__icon svg {
- fill: var(--color--primary-60);
- }
-
- .messages a {
- color: var(--color--white);
- }
-
- .messages pre {
- margin: 0;
- }
-
- .js-form-managed-file .messages {
- margin-block-end: var(--sp1);
- border-inline-start: solid 0.375rem var(--color--red);
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.