2023-01-09 10:02:16 -08:00
|
|
|
@import "src/variables";
|
|
|
|
|
2020-05-03 07:36:12 -07:00
|
|
|
.settings-modal {
|
2020-05-23 16:06:55 -07:00
|
|
|
overflow: hidden;
|
2020-05-09 20:46:06 -07:00
|
|
|
|
2022-04-04 09:41:09 -07:00
|
|
|
.setting-list,
|
|
|
|
.option-list {
|
|
|
|
list-style-type: none;
|
|
|
|
padding-left: 2em;
|
2023-01-09 10:02:16 -08:00
|
|
|
|
2022-04-04 09:41:09 -07:00
|
|
|
li {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
2020-07-22 23:06:50 -07:00
|
|
|
|
2023-01-09 10:02:16 -08:00
|
|
|
.suboptions {
|
|
|
|
margin-top: 0.3em;
|
2020-05-09 20:46:06 -07:00
|
|
|
}
|
|
|
|
}
|
2020-05-26 13:58:55 -07:00
|
|
|
|
2023-03-19 12:27:07 -07:00
|
|
|
.setting-description {
|
|
|
|
margin-top: 0.2em;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
font-size: 70%;
|
|
|
|
}
|
|
|
|
|
2020-05-26 13:58:55 -07:00
|
|
|
.settings-modal-panel {
|
|
|
|
overflow: hidden;
|
|
|
|
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;
|
2020-07-21 04:53:01 -07:00
|
|
|
height: 100%;
|
2020-05-26 13:58:55 -07:00
|
|
|
}
|
|
|
|
|
2020-07-04 02:42:15 -07:00
|
|
|
>.panel-body {
|
2020-05-26 13:58:55 -07:00
|
|
|
height: 100%;
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
|
|
|
.btn {
|
2022-04-20 13:22:51 -07:00
|
|
|
min-height: 2em;
|
2020-05-26 13:58:55 -07:00
|
|
|
padding: 0 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-02-22 13:31:40 -08:00
|
|
|
|
|
|
|
.settings-footer {
|
|
|
|
display: flex;
|
2023-03-22 09:57:23 -07:00
|
|
|
flex-wrap: wrap;
|
|
|
|
line-height: 2;
|
2023-01-09 10:02:16 -08:00
|
|
|
|
2022-02-22 13:31:40 -08:00
|
|
|
>* {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2022-03-24 15:01:20 -07:00
|
|
|
|
|
|
|
.extra-content {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2022-02-22 13:31:40 -08:00
|
|
|
}
|
2023-01-09 10:02:16 -08:00
|
|
|
|
|
|
|
&.peek {
|
|
|
|
.settings-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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-03 07:36:12 -07:00
|
|
|
}
|