drupal/core/modules/navigation/css/components/body-scroll-lock.pcss.css

23 lines
302 B
CSS

/**
* @file
* Body scroll lock with css only.
*/
@import "../base/media-queries.pcss.css";
[data-admin-toolbar-body-scroll='locked'] {
overflow: clip;
body {
overflow: clip;
}
@media (--admin-toolbar-desktop) {
overflow: initial;
body {
overflow: initial;
}
}
}