Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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. }
RSS feed
Powered by Drupal