toolbar-message.css

/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/* cspell:ignore wght */

.toolbar-message {
  z-index: 1;
  display: flex;
  align-items: start;
  cursor: pointer;
  text-align: start;
  -webkit-text-decoration: none;
  text-decoration: none;
  word-break: break-word;
  color: var(--admin-toolbar-color-gray-800);
  border: 0;
  border-radius: var(--admin-toolbar-space-8);
  background-color: var(--admin-toolbar-color-gray-050);
  font-size: var(--admin-toolbar-font-size-info-sm);
  line-height: var(--admin-toolbar-line-height-info-sm);
  padding-inline: calc(0.75 * var(--admin-toolbar-rem));
  padding-block: calc(0.75 * var(--admin-toolbar-rem));
  font-variation-settings: "wght" 700;
  gap: calc(0.5 * var(--admin-toolbar-rem));
}

.toolbar-message__icon {
  flex-shrink: 0;
  inline-size: var(--admin-toolbar-space-20);
  block-size: var(--admin-toolbar-space-20);
}

html:not([data-admin-toolbar="expanded"]) .toolbar-message__label {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  white-space: nowrap;
  clip-path: inset(50%);
  opacity: 0;
}

html[data-admin-toolbar-animating][data-admin-toolbar="expanded"] .toolbar-message__label {
  display: none;
}

File

core/modules/navigation/css/components/toolbar-message.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. /* cspell:ignore wght */
  8. .toolbar-message {
  9. z-index: 1;
  10. display: flex;
  11. align-items: start;
  12. cursor: pointer;
  13. text-align: start;
  14. -webkit-text-decoration: none;
  15. text-decoration: none;
  16. word-break: break-word;
  17. color: var(--admin-toolbar-color-gray-800);
  18. border: 0;
  19. border-radius: var(--admin-toolbar-space-8);
  20. background-color: var(--admin-toolbar-color-gray-050);
  21. font-size: var(--admin-toolbar-font-size-info-sm);
  22. line-height: var(--admin-toolbar-line-height-info-sm);
  23. padding-inline: calc(0.75 * var(--admin-toolbar-rem));
  24. padding-block: calc(0.75 * var(--admin-toolbar-rem));
  25. font-variation-settings: "wght" 700;
  26. gap: calc(0.5 * var(--admin-toolbar-rem));
  27. }
  28. .toolbar-message__icon {
  29. flex-shrink: 0;
  30. inline-size: var(--admin-toolbar-space-20);
  31. block-size: var(--admin-toolbar-space-20);
  32. }
  33. html:not([data-admin-toolbar="expanded"]) .toolbar-message__label {
  34. position: absolute;
  35. overflow: hidden;
  36. clip: rect(0 0 0 0);
  37. width: 1px;
  38. height: 1px;
  39. white-space: nowrap;
  40. clip-path: inset(50%);
  41. opacity: 0;
  42. }
  43. html[data-admin-toolbar-animating][data-admin-toolbar="expanded"] .toolbar-message__label {
  44. display: none;
  45. }

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