off-canvas.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * @file
  3. * CSS for off-canvas dialog.
  4. */
  5. /* Position the off-canvas dialog container outside the right of the viewport. */
  6. .ui-dialog-off-canvas {
  7. overflow: visible;
  8. box-sizing: border-box;
  9. height: 100%;
  10. }
  11. /* Wrap the form that's inside the off-canvas dialog. */
  12. .ui-dialog-off-canvas .ui-dialog-content {
  13. /* Prevent horizontal scrollbar. */
  14. overflow-x: hidden;
  15. overflow-y: auto;
  16. padding: 0 20px;
  17. }
  18. [dir="rtl"] .ui-dialog-off-canvas .ui-dialog-content {
  19. text-align: right;
  20. }
  21. /* Position the off-canvas dialog container outside the right of the viewport. */
  22. .ui-dialog-off-canvas {
  23. overflow: visible;
  24. box-sizing: border-box;
  25. height: 100%;
  26. }
  27. /* Wrap the form that's inside the off-canvas dialog. */
  28. .ui-dialog-off-canvas #drupal-off-canvas {
  29. /* Prevent horizontal scrollbar. */
  30. overflow-x: hidden;
  31. overflow-y: auto;
  32. padding: 0 20px 20px;
  33. }
  34. [dir="rtl"] .ui-dialog-off-canvas #drupal-off-canvas {
  35. text-align: right;
  36. }
  37. /*
  38. * Force the off-canvas dialog to be 100% width at the same breakpoint the
  39. * dialog system uses to expand dialog widths.
  40. */
  41. @media all and (max-width: 48em) { /* 768px */
  42. .ui-dialog.ui-dialog-off-canvas {
  43. width: 100% !important;
  44. }
  45. /* When off-canvas dialog is at 100% width stop the body from scrolling */
  46. .js-off-canvas-dialog-open {
  47. overflow-y: hidden;
  48. height: 100%;
  49. }
  50. }