body-scroll-lock.css

Same filename in this branch
  1. main core/themes/stable9/css/navigation/body-scroll-lock.css
Same filename and directory in other branches
  1. 10 core/modules/navigation/css/components/body-scroll-lock.css
  2. 11.x core/modules/navigation/css/components/body-scroll-lock.css
  3. 11.x core/themes/stable9/css/navigation/body-scroll-lock.css

Body scroll lock with css only.

File

core/modules/navigation/css/components/body-scroll-lock.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. /**
  8. * @file
  9. * Body scroll lock with css only.
  10. */
  11. [data-admin-toolbar-body-scroll="locked"] {
  12. overflow: clip;
  13. body {
  14. overflow: clip;
  15. }
  16. @media (min-width: 64rem) {
  17. overflow: initial;
  18. body {
  19. overflow: initial;
  20. }
  21. }
  22. }

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