2024-04-25 19:35:34 +02:00
|
|
|
import {css} from 'lit';
|
|
|
|
|
|
|
|
export default css`
|
|
|
|
|
|
|
|
/* Layout */
|
|
|
|
|
|
|
|
:host {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
2024-04-29 23:04:56 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
:host > * {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2024-04-29 23:04:56 +02:00
|
|
|
.egw_fw_app__name {
|
|
|
|
max-width: 20vw;
|
|
|
|
flex: 1 1 20vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__header {
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
justify-items: stretch;
|
|
|
|
flex: 1 0 2em;
|
|
|
|
max-height: 3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__aside {
|
2024-04-25 19:35:34 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2024-04-29 23:04:56 +02:00
|
|
|
display: grid;
|
|
|
|
grid-template-rows: subgrid;
|
|
|
|
grid-row: start / end;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.egw_fw_app__aside_header {
|
|
|
|
grid-row: sub-header / main;
|
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__aside_content {
|
|
|
|
height: 100%;
|
|
|
|
grid-row: main / footer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__aside_footer {
|
|
|
|
grid-row: footer / end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__left {
|
|
|
|
grid-column: left / left;
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__right {
|
2024-04-29 23:04:56 +02:00
|
|
|
grid-column: right / right;
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.egw_fw_app__main {
|
2024-04-29 23:04:56 +02:00
|
|
|
flex: 1 1 100%;
|
|
|
|
display: grid;
|
|
|
|
align-items: stretch;
|
|
|
|
justify-content: stretch;
|
2024-04-25 19:35:34 +02:00
|
|
|
overflow: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
.egw_fw_app__header {
|
2024-04-29 23:04:56 +02:00
|
|
|
grid-row: sub-header / main;
|
|
|
|
grid-column: main / main;
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
|
2024-04-29 23:04:56 +02:00
|
|
|
.egw_fw_app__main_content {
|
|
|
|
grid-row: main / footer;
|
|
|
|
grid-column: main / main;
|
|
|
|
}
|
2024-04-25 19:35:34 +02:00
|
|
|
|
|
|
|
.egw_fw_app__footer {
|
2024-04-29 23:04:56 +02:00
|
|
|
grid-column: main / right;
|
|
|
|
grid-row: footer / end;
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 500px) {
|
2024-04-29 23:04:56 +02:00
|
|
|
.egw_fw_app__main {
|
2024-04-25 19:35:34 +02:00
|
|
|
grid-template-columns: [start left] fit-content(20%) [main] 1fr [right] fit-content(50%) [end];
|
2024-04-29 23:04:56 +02:00
|
|
|
grid-template-rows: [start sub-header] fit-content(2em) [main] auto [footer] fit-content(2em) [end];
|
|
|
|
}
|
|
|
|
|
|
|
|
::slotted(*) {
|
|
|
|
height: 100%;
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
2024-04-29 23:04:56 +02:00
|
|
|
.egw_fw_app__main {
|
2024-04-25 19:35:34 +02:00
|
|
|
grid-template-areas:
|
|
|
|
"header"
|
|
|
|
"main"
|
|
|
|
"left right"
|
2024-04-29 23:04:56 +02:00
|
|
|
"footer"
|
2024-04-25 19:35:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|