2021-01-19 16:28:37 +01:00
|
|
|
// @todo RTL layout
|
|
|
|
|
|
|
|
:host {
|
2021-01-26 09:28:46 +01:00
|
|
|
--menu-min-width: 270px;
|
|
|
|
--menu-max-width: 28%;
|
|
|
|
--menu-display: flex;
|
|
|
|
--content-display: block;
|
|
|
|
--border-width: 1;
|
2021-01-19 16:28:37 +01:00
|
|
|
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
inset: 0;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
contain: strict;
|
|
|
|
}
|
|
|
|
|
2021-01-26 09:28:46 +01:00
|
|
|
:host(.menu-only) {
|
|
|
|
--menu-min-width: 0;
|
|
|
|
--menu-max-width: 100%;
|
|
|
|
--content-display: none;
|
|
|
|
--border-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
:host(.content-only) {
|
|
|
|
--menu-display: none;
|
|
|
|
--border-width: 0;
|
|
|
|
}
|
|
|
|
|
2021-01-19 16:28:37 +01:00
|
|
|
:host-context(ion-app.md) {
|
2021-01-26 09:28:46 +01:00
|
|
|
--border: calc(var(--border-width) * 1px) solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, .13))));
|
2021-01-19 16:28:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
:host-context(ion-app.ios) {
|
2021-01-26 09:28:46 +01:00
|
|
|
--border: calc(var(--border-width) * .55px) solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));
|
2021-01-19 16:28:37 +01:00
|
|
|
}
|
|
|
|
|
2021-01-26 09:28:46 +01:00
|
|
|
.menu,
|
|
|
|
.content {
|
2021-01-19 16:28:37 +01:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
position: relative;
|
|
|
|
box-shadow: none !important;
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
2021-01-26 09:28:46 +01:00
|
|
|
.menu {
|
|
|
|
display: var(--menu-display);
|
2021-01-19 16:28:37 +01:00
|
|
|
flex-shrink: 0;
|
|
|
|
order: -1;
|
|
|
|
border-left: unset;
|
|
|
|
border-right: unset;
|
|
|
|
border-inline-start: 0;
|
2021-01-26 09:28:46 +01:00
|
|
|
border-inline-end: var(--border);
|
|
|
|
min-width: var(--menu-min-width);
|
|
|
|
max-width: var(--menu-max-width);
|
2021-01-19 16:28:37 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2021-01-26 09:28:46 +01:00
|
|
|
.content {
|
|
|
|
display: var(--content-display);
|
2021-01-19 16:28:37 +01:00
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
::ng-deep ion-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|