3 * CSS for off-canvas dialog.
5 * @todo Move CSS into core dialog library https://www.drupal.org/node/2784443.
8 /* Position the off-canvas dialog container outside the right of the viewport. */
9 .ui-dialog-off-canvas {
10 box-sizing: border-box;
15 /* Wrap the form that's inside the off-canvas dialog. */
16 .ui-dialog-off-canvas .ui-dialog-content {
18 /* Prevent horizontal scrollbar. */
22 [dir="rtl"] .ui-dialog-off-canvas .ui-dialog-content {
26 /* Position the dialog-off-canvas tray container outside the right of the viewport. */
27 .ui-dialog-off-canvas {
28 box-sizing: border-box;
33 /* Wrap the form that's inside the dialog-off-canvas tray. */
34 .ui-dialog-off-canvas #drupal-off-canvas {
36 /* Prevent horizontal scrollbar. */
40 [dir="rtl"] .ui-dialog-off-canvas #drupal-off-canvas {
45 * Force the tray to be 100% width at the same breakpoint the dialog system uses
46 * to expand dialog widths.
48 @media all and (max-width: 48em) { /* 768px */
49 .ui-dialog.ui-dialog-off-canvas {
50 width: 100% !important;
52 /* When tray is at 100% width stop the body from scrolling */