title.pcss.css
Same filename and directory in other branches
Toolbar title styles.
File
-
core/
modules/ navigation/ components/ title/ title.pcss.css
View source
- /* cspell:ignore csvg cpath wght */
- /**
- * @file
- * Toolbar title styles.
- */
-
- :is(#extra-specificity-hack, [data-drupal-admin-styles]) {
- .toolbar-title {
- font-variation-settings: "wght" 500;
- }
-
- /* Sizes aligned with variables from css/base/variables.pcss.css */
- .toolbar-title--xs {
- font-size: var(--admin-toolbar-font-size-heading-xs);
- }
-
- .toolbar-title--ellipsis {
- .toolbar-title__label {
- overflow: hidden;
- max-width: var(--toolbar--title-max-width);
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
-
- .toolbar-title:has(.toolbar-title__icon) {
- display: flex;
- align-items: center;
- gap: var(--admin-toolbar-space-8);
- }
-
- .toolbar-title__icon {
- flex-shrink: 0;
- inline-size: var(--admin-toolbar-space-16);
- block-size: var(--admin-toolbar-space-16);
-
- @media (forced-colors: active) {
- &,
- path {
- &:not([fill="none"]) {
- fill: canvasText;
- }
- }
- }
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.