2020-04-02 17:08:24 +02:00
|
|
|
.viewer-layout {
|
2022-07-28 09:30:17 +02:00
|
|
|
height: 100vh;
|
2020-04-02 17:08:24 +02:00
|
|
|
display: grid;
|
2021-04-29 15:13:46 +02:00
|
|
|
grid-template-rows: 48px auto;
|
2020-04-02 17:08:24 +02:00
|
|
|
grid-template-columns: 1fr;
|
2020-06-17 09:54:56 +02:00
|
|
|
user-select: none;
|
2020-04-02 17:08:24 +02:00
|
|
|
|
|
|
|
.viewer-header {
|
|
|
|
grid-column: 1 / span 1;
|
|
|
|
grid-row: 1 / span 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.viewer-content {
|
|
|
|
grid-column: 1 / span 1;
|
|
|
|
grid-row: 2 / span 1;
|
|
|
|
}
|
|
|
|
}
|
2021-03-18 16:52:22 +01:00
|
|
|
|
2022-07-28 09:30:17 +02:00
|
|
|
.fullscreen.viewer-layout.force-visible {
|
|
|
|
grid-template-rows: 1fr;
|
|
|
|
& .viewer-header {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
transition: top 400ms ease 300ms;
|
|
|
|
margin-bottom: 0;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .viewer-bottom {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
transition: bottom 400ms ease 300ms;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-21 16:35:30 +01:00
|
|
|
.fullscreen.viewer-layout:not(.force-visible) {
|
2022-07-28 09:30:17 +02:00
|
|
|
grid-template-rows: 1fr;
|
2021-03-18 16:52:22 +01:00
|
|
|
& .viewer-header {
|
|
|
|
width: 100%;
|
|
|
|
position: fixed;
|
2021-07-07 15:07:36 +02:00
|
|
|
top: -48px;
|
2021-03-18 16:52:22 +01:00
|
|
|
left: 0;
|
|
|
|
transition: top 400ms ease 300ms;
|
2022-07-28 09:30:17 +02:00
|
|
|
z-index: 2;
|
|
|
|
margin-bottom: 48px;
|
2021-07-07 15:07:36 +02:00
|
|
|
&::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 1rem;
|
|
|
|
left: 0;
|
|
|
|
top: 48px;
|
|
|
|
}
|
2021-03-18 16:52:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
& .viewer-header:hover {
|
|
|
|
top: 0;
|
|
|
|
transition: top 200ms;
|
|
|
|
}
|
|
|
|
|
2022-07-28 09:30:17 +02:00
|
|
|
& .viewer-bottom {
|
|
|
|
width: 100%;
|
|
|
|
position: fixed;
|
|
|
|
bottom: -48px;
|
|
|
|
left: 0;
|
|
|
|
transition: bottom 400ms ease 300ms;
|
|
|
|
z-index: 2;
|
|
|
|
&::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 1rem;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .viewer-bottom:hover {
|
|
|
|
bottom: 0px;
|
|
|
|
transition: bottom 200ms;
|
|
|
|
}
|
|
|
|
|
2021-03-18 16:52:22 +01:00
|
|
|
& .viewer-content {
|
|
|
|
grid-row: 1 / span 2;
|
|
|
|
}
|
|
|
|
}
|
2021-09-20 14:20:52 +02:00
|
|
|
|
|
|
|
.viewer-overlay {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.viewer-overlay-background {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
&.visible {
|
|
|
|
background-color: rgb(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
}
|