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
/* * 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. */ :root { --messages-bg-color: #353641; --messages-fg-color: var(--color-white); --messages-border-radius: 2px; --messages-border-width: 0.3125rem; --messages--status-color: #42a877; --messages--warning-color: #e0ac00; --messages--error-color: #e34f4f; --messages__link-color: var(--color-sunglow); --messages__link--hover-color: var(--color-white); --messages__icon-size: 1rem; --messages__text-margin: calc(var(--messages__icon-size) + var(--space-l)); } .messages-list { margin-block: calc(var(--space-m) + var(--space-l)); padding: 0; list-style: none; } .field .messages-list, .form-wrapper .messages-list { margin-block-end: 0; } .messages { overflow: auto; /* Required to prevent text clipping. */ box-sizing: border-box; margin-block: var(--space-m); padding-block: var(--space-l) 2rem; padding-inline: calc(var(--space-l) - 0.3125rem) var(--space-l); color: var(--messages-fg-color); border-width: 0 0 0 var(--messages-border-width); /* LTR */ border-style: solid; border-color: var(--messages-bg-color); border-radius: var(--messages-border-radius); background-color: var(--messages-bg-color); } .messages a { -webkit-text-decoration: underline; text-decoration: underline; color: var(--messages__link-color); } .messages a:hover { color: var(--messages__link--hover-color); } .messages pre { margin: 0; } [dir="rtl"] .messages { border-right-width: var(--messages-border-width); border-left-width: 0; } .messages--error { border-color: var(--messages--error-color); } .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; } .messages--status { border-color: var(--messages--status-color); } .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; } .messages--warning { border-color: var(--messages--warning-color); } .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; } .messages__title { margin-block: 0; margin-inline: var(--messages__text-margin) 0; font-size: var(--font-size-base); } .messages__header { display: flex; align-items: center; margin-block-end: var(--space-m); } [dir="rtl"] .messages__header { background-position: center right; } @media screen and (min-width: 48rem) { .messages__content { margin-inline-start: var(--messages__text-margin); } } .messages__list { margin: 0; padding: 0; list-style: none; } .messages__item + .messages__item { margin-block-start: var(--space-s); }
File
-
core/
themes/ claro/ 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
- */
-
- /**
- * Messages.
- *
- * @todo revisit this after https://www.drupal.org/project/drupal/issues/3078400
- * has been resolved.
- */
-
- :root {
- --messages-bg-color: #353641;
- --messages-fg-color: var(--color-white);
- --messages-border-radius: 2px;
- --messages-border-width: 0.3125rem;
- --messages--status-color: #42a877;
- --messages--warning-color: #e0ac00;
- --messages--error-color: #e34f4f;
- --messages__link-color: var(--color-sunglow);
- --messages__link--hover-color: var(--color-white);
- --messages__icon-size: 1rem;
- --messages__text-margin: calc(var(--messages__icon-size) + var(--space-l));
- }
-
- .messages-list {
- margin-block: calc(var(--space-m) + var(--space-l));
- padding: 0;
- list-style: none;
- }
-
- .field .messages-list,
- .form-wrapper .messages-list {
- margin-block-end: 0;
- }
-
- .messages {
- overflow: auto; /* Required to prevent text clipping. */
- box-sizing: border-box;
- margin-block: var(--space-m);
- padding-block: var(--space-l) 2rem;
- padding-inline: calc(var(--space-l) - 0.3125rem) var(--space-l);
- color: var(--messages-fg-color);
- border-width: 0 0 0 var(--messages-border-width); /* LTR */
- border-style: solid;
- border-color: var(--messages-bg-color);
- border-radius: var(--messages-border-radius);
- background-color: var(--messages-bg-color);
- }
-
- .messages a {
- -webkit-text-decoration: underline;
- text-decoration: underline;
- color: var(--messages__link-color);
- }
-
- .messages a:hover {
- color: var(--messages__link--hover-color);
- }
-
- .messages pre {
- margin: 0;
- }
-
- [dir="rtl"] .messages {
- border-right-width: var(--messages-border-width);
- border-left-width: 0;
- }
-
- .messages--error {
- border-color: var(--messages--error-color);
- }
-
- .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;
- }
-
- .messages--status {
- border-color: var(--messages--status-color);
- }
-
- .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;
- }
-
- .messages--warning {
- border-color: var(--messages--warning-color);
- }
-
- .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;
- }
-
- .messages__title {
- margin-block: 0;
- margin-inline: var(--messages__text-margin) 0;
- font-size: var(--font-size-base);
- }
-
- .messages__header {
- display: flex;
- align-items: center;
- margin-block-end: var(--space-m);
- }
-
- [dir="rtl"] .messages__header {
- background-position: center right;
- }
-
- @media screen and (min-width: 48rem) {
- .messages__content {
- margin-inline-start: var(--messages__text-margin);
- }
- }
-
- .messages__list {
- margin: 0;
- padding: 0;
- list-style: none;
- }
-
- .messages__item + .messages__item {
- margin-block-start: var(--space-s);
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.