Loading core/misc/dialog/off-canvas/css/wrapper.css +21 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,27 @@ border-inline-start: solid var(--off-canvas-wrapper-border-width) var(--off-canvas-wrapper-border-color); box-shadow: var(--off-canvas-wrapper-box-shadow); /* * When the off-canvas appears at the top or bottom of the page (Workspaces * does this), it should not obscure the Navigation module's toolbar. * * Note that we have to use `!important` below to override the dialog JS's * inline CSS. * * @todo * We *may* able to remove this code once the https://www.drupal.org/i/3096017 * is fixed. */ [data-admin-toolbar] &:is([data-offset-top], [data-offset-bottom]) { left: var(--drupal-displace-offset-left, 0) !important; width: calc(100% - var(--drupal-displace-offset-left, 0px)) !important; &:dir(rtl) { right: var(--drupal-displace-offset-right, 0) !important; width: calc(100% - var(--drupal-displace-offset-right, 0px)) !important; } } /* * Force the off-canvas dialog to be 100% width at the same breakpoint the * dialog system uses to expand dialog widths. Loading core/misc/dialog/off-canvas/css/wrapper.pcss.css +21 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,27 @@ border-inline-start: solid var(--off-canvas-wrapper-border-width) var(--off-canvas-wrapper-border-color); box-shadow: var(--off-canvas-wrapper-box-shadow); /* * When the off-canvas appears at the top or bottom of the page (Workspaces * does this), it should not obscure the Navigation module's toolbar. * * Note that we have to use `!important` below to override the dialog JS's * inline CSS. * * @todo * We *may* able to remove this code once the https://www.drupal.org/i/3096017 * is fixed. */ [data-admin-toolbar] &:is([data-offset-top], [data-offset-bottom]) { left: var(--drupal-displace-offset-left, 0) !important; width: calc(100% - var(--drupal-displace-offset-left, 0px)) !important; &:dir(rtl) { right: var(--drupal-displace-offset-right, 0) !important; width: calc(100% - var(--drupal-displace-offset-right, 0px)) !important; } } /* * Force the off-canvas dialog to be 100% width at the same breakpoint the * dialog system uses to expand dialog widths. Loading core/modules/navigation/css/components/admin-toolbar.css +0 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,6 @@ body { } @media (min-width: 64rem) { block-size: calc(100vh - var(--drupal-displace-offset-top, 0px)); transform: none; inset-block-start: 0; } Loading core/modules/navigation/css/components/admin-toolbar.pcss.css +0 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,6 @@ body { } @media (--admin-toolbar-desktop) { block-size: calc(100vh - var(--drupal-displace-offset-top, 0px)); transform: none; inset-block-start: 0; } Loading Loading
core/misc/dialog/off-canvas/css/wrapper.css +21 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,27 @@ border-inline-start: solid var(--off-canvas-wrapper-border-width) var(--off-canvas-wrapper-border-color); box-shadow: var(--off-canvas-wrapper-box-shadow); /* * When the off-canvas appears at the top or bottom of the page (Workspaces * does this), it should not obscure the Navigation module's toolbar. * * Note that we have to use `!important` below to override the dialog JS's * inline CSS. * * @todo * We *may* able to remove this code once the https://www.drupal.org/i/3096017 * is fixed. */ [data-admin-toolbar] &:is([data-offset-top], [data-offset-bottom]) { left: var(--drupal-displace-offset-left, 0) !important; width: calc(100% - var(--drupal-displace-offset-left, 0px)) !important; &:dir(rtl) { right: var(--drupal-displace-offset-right, 0) !important; width: calc(100% - var(--drupal-displace-offset-right, 0px)) !important; } } /* * Force the off-canvas dialog to be 100% width at the same breakpoint the * dialog system uses to expand dialog widths. Loading
core/misc/dialog/off-canvas/css/wrapper.pcss.css +21 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,27 @@ border-inline-start: solid var(--off-canvas-wrapper-border-width) var(--off-canvas-wrapper-border-color); box-shadow: var(--off-canvas-wrapper-box-shadow); /* * When the off-canvas appears at the top or bottom of the page (Workspaces * does this), it should not obscure the Navigation module's toolbar. * * Note that we have to use `!important` below to override the dialog JS's * inline CSS. * * @todo * We *may* able to remove this code once the https://www.drupal.org/i/3096017 * is fixed. */ [data-admin-toolbar] &:is([data-offset-top], [data-offset-bottom]) { left: var(--drupal-displace-offset-left, 0) !important; width: calc(100% - var(--drupal-displace-offset-left, 0px)) !important; &:dir(rtl) { right: var(--drupal-displace-offset-right, 0) !important; width: calc(100% - var(--drupal-displace-offset-right, 0px)) !important; } } /* * Force the off-canvas dialog to be 100% width at the same breakpoint the * dialog system uses to expand dialog widths. Loading
core/modules/navigation/css/components/admin-toolbar.css +0 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,6 @@ body { } @media (min-width: 64rem) { block-size: calc(100vh - var(--drupal-displace-offset-top, 0px)); transform: none; inset-block-start: 0; } Loading
core/modules/navigation/css/components/admin-toolbar.pcss.css +0 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,6 @@ body { } @media (--admin-toolbar-desktop) { block-size: calc(100vh - var(--drupal-displace-offset-top, 0px)); transform: none; inset-block-start: 0; } Loading