2017-01-16 20:44:32 +00:00
|
|
|
/**
|
|
|
|
* @file
|
2017-04-29 21:36:10 +00:00
|
|
|
* CSS for off-canvas dialog.
|
2017-01-16 20:44:32 +00:00
|
|
|
*/
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
|
2017-04-29 21:36:10 +00:00
|
|
|
/* Position the off-canvas dialog container outside the right of the viewport. */
|
|
|
|
.ui-dialog-off-canvas {
|
2019-04-01 17:16:16 +00:00
|
|
|
overflow: visible;
|
2017-05-19 16:46:41 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
2017-01-16 20:44:32 +00:00
|
|
|
}
|
|
|
|
|
2017-04-29 21:36:10 +00:00
|
|
|
/* Wrap the form that's inside the off-canvas dialog. */
|
|
|
|
.ui-dialog-off-canvas .ui-dialog-content {
|
2017-05-19 16:46:41 +00:00
|
|
|
/* Prevent horizontal scrollbar. */
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2019-04-01 17:16:16 +00:00
|
|
|
padding: 0 20px;
|
2017-01-16 20:44:32 +00:00
|
|
|
}
|
2017-04-29 21:36:10 +00:00
|
|
|
[dir="rtl"] .ui-dialog-off-canvas .ui-dialog-content {
|
2017-05-19 16:46:41 +00:00
|
|
|
text-align: right;
|
2017-01-16 20:44:32 +00:00
|
|
|
}
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
|
2017-10-24 22:46:32 +00:00
|
|
|
/* Position the off-canvas dialog container outside the right of the viewport. */
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
.ui-dialog-off-canvas {
|
2019-04-01 17:16:16 +00:00
|
|
|
overflow: visible;
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2017-10-24 22:46:32 +00:00
|
|
|
/* Wrap the form that's inside the off-canvas dialog. */
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
.ui-dialog-off-canvas #drupal-off-canvas {
|
|
|
|
/* Prevent horizontal scrollbar. */
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2019-04-01 17:16:16 +00:00
|
|
|
padding: 0 20px 20px;
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
}
|
|
|
|
[dir="rtl"] .ui-dialog-off-canvas #drupal-off-canvas {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2017-10-24 22:46:32 +00:00
|
|
|
* Force the off-canvas dialog to be 100% width at the same breakpoint the
|
|
|
|
* dialog system uses to expand dialog widths.
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
*/
|
|
|
|
@media all and (max-width: 48em) { /* 768px */
|
|
|
|
.ui-dialog.ui-dialog-off-canvas {
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
2017-10-24 22:46:32 +00:00
|
|
|
/* When off-canvas dialog is at 100% width stop the body from scrolling */
|
|
|
|
.js-off-canvas-dialog-open {
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
overflow-y: hidden;
|
2019-04-01 17:16:16 +00:00
|
|
|
height: 100%;
|
Issue #2826722 by tkoleary, tedbow, DyanneNova, starshaped, drpal, jian he, pk188, xjm, yoroy, EclipseGc, rikki_iki, Wim Leers, droplet: Add a 'fence' around settings tray with aggressive CSS reset
(cherry picked from commit 7a271014d94ee6f46ff4397fb1b93898289907ae)
2017-07-31 21:35:35 +00:00
|
|
|
}
|
|
|
|
}
|