2020-05-10 13:46:06 +10:00
|
|
|
@import 'src/_variables.scss';
|
2020-05-04 00:36:12 +10:00
|
|
|
.settings-modal {
|
2020-05-24 09:06:55 +10:00
|
|
|
overflow: hidden;
|
2020-05-10 13:46:06 +10:00
|
|
|
|
|
|
|
&.peek {
|
2020-05-25 10:14:41 +10:00
|
|
|
.modal-panel {
|
2020-05-24 09:06:55 +10:00
|
|
|
/* 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));
|
2020-05-10 13:46:06 +10:00
|
|
|
}
|
|
|
|
}
|
2020-05-04 00:36:12 +10:00
|
|
|
}
|