body-scroll-lock.css

Same filename in other branches
  1. 11.x core/modules/navigation/css/components/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. }
  14. [data-admin-toolbar-body-scroll="locked"] body {
  15. overflow: clip;
  16. }
  17. @media (min-width: 64rem) {
  18. [data-admin-toolbar-body-scroll="locked"] {
  19. overflow: initial;
  20. }
  21. [data-admin-toolbar-body-scroll="locked"] body {
  22. overflow: initial;
  23. }
  24. }

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