2022-11-06 21:26:05 +00:00
|
|
|
@import 'src/_variables.scss';
|
|
|
|
.mod-modal {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&.peek {
|
|
|
|
.mod-modal-panel {
|
|
|
|
/* Explanation:
|
|
|
|
* Modal is positioned vertically centered.
|
|
|
|
* 100vh - 100% = Distance between modal's top+bottom boundaries and screen
|
|
|
|
* (100vh - 100%) / 2 = Distance between bottom (or top) boundary and screen
|
|
|
|
* + 100% - we move modal completely off-screen, it's top boundary touches
|
|
|
|
* bottom of the screen
|
|
|
|
* - 50px - leaving tiny amount of space so that titlebar + tiny amount of modal is visible
|
|
|
|
*/
|
|
|
|
transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 50px));
|
|
|
|
|
|
|
|
@media all and (max-width: 800px) {
|
|
|
|
/* For mobile, the modal takes 100% of the available screen.
|
|
|
|
This ensures the minimized modal is always 50px above the browser bottom bar regardless of whether or not it is visible.
|
|
|
|
*/
|
|
|
|
transform: translateY(calc(100% - 50px));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mod-modal-panel {
|
|
|
|
transition: transform;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
transition-duration: 300ms;
|
|
|
|
width: 1000px;
|
|
|
|
max-width: 90vw;
|
|
|
|
height: 90vh;
|
|
|
|
|
|
|
|
@media all and (max-width: 800px) {
|
|
|
|
max-width: 100vw;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-body {
|
|
|
|
height: inherit;
|
2022-11-13 18:05:36 +00:00
|
|
|
overflow-y: hidden;
|
2022-11-06 21:26:05 +00:00
|
|
|
}
|
2022-11-14 17:18:34 +00:00
|
|
|
|
|
|
|
.pagination-container {
|
|
|
|
display: flex;
|
|
|
|
justify-content: right;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-left: 0.6em;
|
|
|
|
}
|
|
|
|
}
|
2022-11-06 21:26:05 +00:00
|
|
|
}
|
|
|
|
}
|