Skip to content
Snippets Groups Projects
Select Git revision
  • 1.x
  • 3435981-replace-typography-with
  • 3403423-provide-more-helpful
  • 3392361-prepend-admin-toolbar-to
  • 3377812-update-the-readme
  • prototype
  • master
  • 4.4.x-1.x
  • drop
  • 1.0.0-beta3
  • 1.0.0-beta2
  • 1.0.0-beta1
  • previous/transitions-structurised-3374460/2024-01-03
  • previous/close-all-when-one-opened-3402899-2/2023-12-19
  • previous/3398483-create-a-prototype/2023-11-25
  • previous/3398483-create-a-prototype/2023-11-17
  • previous/3388804-support-admin-theme/2023-11-09
  • previous/3392361-prepend-toolbar/2023-10-26
  • previous/3388367-content-navigation/2023-10-25
  • previous/3395813-rename-bottom-region/2023-10-23
  • previous/3395240-aria--attributes-are/2023-10-23
  • previous/3377158-need-global-box-sizing/2023-10-23
  • previous/3384996-mobile-update/2023-10-09
  • previous/3392361-prepend-admin-toolbar-to/2023-10-08
  • previous/3384996-mobile-update/2023-10-08
  • previous/scroll-when-collapsed/2023-08-17
26 results

toolbar-block.css

Blame
  • m4olivei's avatar
    Issue #3439979 by m4olivei, ckrina: Cleanup all the code quality remaining issues
    m4olivei authored
    7717a835
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    toolbar-block.css 1.89 KiB
    /*
     * DO NOT EDIT THIS FILE.
     * See the following change record for more information,
     * https://www.drupal.org/node/3084859
     * @preserve
     */
    /* cspell:ignore wght */
    /**
     * @file
     * Toolbar block styles.
     */
    .toolbar-block {
      display: grid;
      gap: var(--admin-toolbar-space-4);
    }
    .admin-toolbar__content .toolbar-block:nth-last-child(n + 2)::after {
      margin-top: var(--admin-toolbar-space-8);
      content: "";
      /* TODO: rework color to palette */
      border-top: 1px solid #cfd4dd;
    }
    .toolbar-block__list {
      display: grid;
      margin: 0;
      padding: 0;
      list-style-type: none;
      word-wrap: break-word;
      -webkit-hyphens: auto;
      hyphens: auto;
      gap: var(--admin-toolbar-space-4);
    }
    .toolbar-block__list-item {
      display: grid;
    }
    .toolbar-block__title {
      position: relative;
      margin: 0;
      padding: var(--admin-toolbar-space-12) var(--admin-toolbar-space-8);
      letter-spacing: var(--admin-toolbar-letter-spacing-0-8);
      text-transform: uppercase;
      color: var(--admin-toolbar-color-gray-600);
      font-family: inherit;
      font-size: var(--admin-toolbar-font-size-label-xs);
      line-height: var(--admin-toolbar-line-height-label-xs);
      font-variation-settings: "wght" 500;
    }
    html:not([data-admin-toolbar="expanded"]) .toolbar-block__title,
    html[data-admin-toolbar-animating][data-admin-toolbar="expanded"] .toolbar-block__title {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      color: var(--admin-toolbar-color-gray-600);
      font-size: 0;
      block-size: calc(2.5 * var(--admin-toolbar-rem));
      inline-size: calc(2.5 * var(--admin-toolbar-rem));
    }
    :is(html:not([data-admin-toolbar="expanded"]) .toolbar-block__title, html[data-admin-toolbar-animating][data-admin-toolbar="expanded"] .toolbar-block__title)::before {
      position: absolute;
      display: block;
      width: var(--admin-toolbar-space-4);
      height: var(--admin-toolbar-space-4);
      content: "";
      border-radius: 50%;
      background-color: currentColor;
    }