utility.pcss.css

Same filename and directory in other branches
  1. 9 core/themes/olivero/css/base/utility.pcss.css
  2. 10 core/misc/dialog/off-canvas/css/utility.pcss.css

Re-create utility styles for off-canvas dialog that are removed in the reset.

@internal

File

core/misc/dialog/off-canvas/css/utility.pcss.css

View source
  1. /**
  2. * @file
  3. * Re-create utility styles for off-canvas dialog that are removed in the reset.
  4. *
  5. * @internal
  6. */
  7. #drupal-off-canvas-wrapper {
  8. & .hidden {
  9. display: none;
  10. }
  11. & .visually-hidden {
  12. position: absolute !important;
  13. overflow: hidden;
  14. clip: rect(1px, 1px, 1px, 1px);
  15. width: 1px !important;
  16. height: 1px !important;
  17. word-wrap: normal;
  18. &.focusable:is(:active, :focus) {
  19. position: static !important;
  20. overflow: visible;
  21. clip: auto;
  22. width: auto !important;
  23. height: auto !important;
  24. }
  25. }
  26. & .invisible {
  27. visibility: hidden;
  28. }
  29. }

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