|
@import url('/lib/dialog-polyfill.css'); |
|
@import url('./popup-safari-fix.css'); |
|
|
|
dialog { |
|
color: var(--SmartThemeBodyColor); |
|
} |
|
|
|
|
|
.popup { |
|
width: 500px; |
|
text-align: center; |
|
box-shadow: 0px 0px 14px var(--black70a); |
|
border: 1px solid var(--SmartThemeBorderColor); |
|
padding: 4px 14px; |
|
background-color: var(--SmartThemeBlurTintColor); |
|
border-radius: 10px; |
|
display: flex; |
|
flex-direction: column; |
|
|
|
max-height: calc(100dvh - 2em); |
|
max-width: calc(100dvw - 2em); |
|
min-height: fit-content; |
|
|
|
|
|
overflow: visible; |
|
|
|
|
|
backface-visibility: hidden; |
|
transform: translateZ(0); |
|
-webkit-font-smoothing: subpixel-antialiased; |
|
|
|
|
|
--popup-animation-speed: var(--animation-duration-slow); |
|
} |
|
|
|
|
|
.popup--animation-fast { |
|
--popup-animation-speed: var(--animation-duration); |
|
} |
|
|
|
.popup--animation-slow { |
|
--popup-animation-speed: var(--animation-duration-slow); |
|
} |
|
|
|
.popup--animation-none { |
|
--popup-animation-speed: 0ms; |
|
} |
|
|
|
|
|
.popup .popup-body { |
|
display: flex; |
|
flex-direction: column; |
|
overflow: hidden; |
|
width: min(100%, 100vw); |
|
height: 100%; |
|
padding: 1px; |
|
} |
|
|
|
.popup:not(:has(.img_enlarged_container)) .popup-body { |
|
max-height: 95dvh; |
|
} |
|
|
|
.popup .popup-content { |
|
margin-top: 10px; |
|
padding: 0 8px; |
|
overflow: hidden; |
|
flex-grow: 1; |
|
} |
|
|
|
.popup .popup-content h3:first-child { |
|
|
|
margin-top: 0px; |
|
} |
|
|
|
.popup.vertical_scrolling_dialogue_popup .popup-content { |
|
overflow-y: auto; |
|
} |
|
|
|
.popup.horizontal_scrolling_dialogue_popup .popup-content { |
|
overflow-x: auto; |
|
} |
|
|
|
.popup.left_aligned_dialogue_popup .popup-content { |
|
text-align: start; |
|
} |
|
|
|
|
|
.popup[opening] { |
|
animation: pop-in var(--popup-animation-speed) ease-in-out; |
|
} |
|
|
|
.popup[opening]::backdrop { |
|
animation: fade-in var(--popup-animation-speed) ease-in-out; |
|
} |
|
|
|
|
|
.popup[open] { |
|
color: var(--SmartThemeBodyColor); |
|
} |
|
|
|
.popup[open]::backdrop { |
|
backdrop-filter: blur(calc(var(--SmartThemeBlurStrength) * 2)); |
|
-webkit-backdrop-filter: blur(calc(var(--SmartThemeBlurStrength) * 2)); |
|
background-color: var(--black30a); |
|
} |
|
|
|
body.no-blur .popup[open]::backdrop { |
|
backdrop-filter: none; |
|
-webkit-backdrop-filter: none; |
|
} |
|
|
|
|
|
.popup[closing] { |
|
animation: pop-out var(--popup-animation-speed) ease-in-out; |
|
} |
|
|
|
.popup[closing]::backdrop { |
|
animation: fade-out var(--popup-animation-speed) ease-in-out; |
|
} |
|
|
|
.popup #toast-container { |
|
|
|
height: 100dvh; |
|
top: calc(50% + var(--topBarBlockSize)); |
|
left: 50%; |
|
transform: translate(-50%, -50%); |
|
|
|
|
|
text-align: left; |
|
} |
|
|
|
.popup-crop-wrap { |
|
margin: 10px auto; |
|
max-height: 75vh; |
|
max-height: 75dvh; |
|
max-width: 100%; |
|
} |
|
|
|
.popup-crop-wrap img { |
|
max-width: 100%; |
|
|
|
} |
|
|
|
.popup-inputs { |
|
margin-top: 10px; |
|
font-size: smaller; |
|
opacity: 0.7; |
|
} |
|
|
|
.popup-input { |
|
margin-top: 10px; |
|
} |
|
|
|
.popup-controls { |
|
margin-top: 10px; |
|
display: flex; |
|
align-self: center; |
|
gap: 20px; |
|
} |
|
|
|
.menu_button.menu_button_default { |
|
box-shadow: 0 0 5px var(--white20a); |
|
} |
|
|
|
.menu_button.popup-button-ok { |
|
background-color: var(--crimson70a); |
|
} |
|
|
|
.menu_button.popup-button-ok:hover { |
|
background-color: var(--crimson-hover); |
|
} |
|
|
|
.popup-controls .menu_button { |
|
|
|
width: unset; |
|
|
|
|
|
backface-visibility: hidden; |
|
transform: translateZ(0); |
|
-webkit-font-smoothing: subpixel-antialiased; |
|
} |
|
|
|
.popup-controls .menu_button:hover:focus-visible { |
|
filter: brightness(1.3) saturate(1.3); |
|
} |
|
|
|
.popup .popup-button-close { |
|
position: absolute; |
|
top: -6px; |
|
right: -6px; |
|
width: 24px; |
|
height: 24px; |
|
font-size: 20px; |
|
padding: 2px 3px 3px 2px; |
|
|
|
filter: brightness(0.8); |
|
|
|
|
|
backface-visibility: hidden; |
|
} |
|
|