1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
FrankerFaceZ/styles/dialog.scss

86 lines
1.3 KiB
SCSS
Raw Normal View History

.ffz-dialog {
2017-11-13 01:23:39 -05:00
&:not(.maximized) {
position: absolute;
top: 25%;
left: 25%;
z-index: 99999999;
--width: #{"min(75vw, 128rem)"};
--height: #{"min(75vh, calc(0.75 * var(--width)))"};
top: #{"calc(calc(100vh - var(--height)) / 2)"};
left: #{"calc(calc(100vw - var(--width)) / 2)"};
2017-11-13 01:23:39 -05:00
min-width: 64rem;
min-height: 30rem;
max-width: 75vw;
max-height: 75vh;
width: 75vw;
width: var(--width);
height: 50vh;
height: var(--height);
2017-11-13 01:23:39 -05:00
border-radius: var(--border-radius-extra-large);
2017-11-13 01:23:39 -05:00
> header {
cursor: move;
border-top-left-radius: var(--border-radius-extra-large);
border-top-right-radius: var(--border-radius-extra-large);
2017-11-13 01:23:39 -05:00
}
&.faded {
opacity: 0.5;
&:hover {
opacity: 0.75;
}
}
2017-11-13 01:23:39 -05:00
}
&.maximized {
position: absolute;
top: 0 !important;
left: 0 !important;
2017-11-13 01:23:39 -05:00
width: 100%;
height: 100%;
&, .tw-root--theme-dark & {
border: none !important;
}
2017-11-13 01:23:39 -05:00
> header {
cursor: default;
padding: .9rem 3rem;
2017-11-13 01:23:39 -05:00
}
}
&.exclusive {
z-index: 1000;
}
2017-11-13 01:23:39 -05:00
.want-ps {
overflow-y: auto;
}
> header {
user-select: none;
padding: .9rem 1rem .9rem 2rem;
2017-11-13 01:23:39 -05:00
.tw-search-input {
max-width: 40rem
}
}
}
.ffz-has-dialog {
position: relative;
2017-11-13 01:23:39 -05:00
& > :not(.ffz-dialog):not(.ffz__tooltip):not(.ffz-viewer-card) {
visibility: hidden;
}
2017-11-13 01:23:39 -05:00
}