/** Datei: plugins/rest/assets.OLD/scss/wrapper/_dialog.scss **/ // ===================================== // Dialog-Styles // ===================================== .dialog { $dialog: & !global; position: absolute; width: 100%; height: 100%; border: none; z-index: 1000; transition: opacity 300ms ease, transform 0.3s ease; backdrop-filter: blur(3px); opacity: 0; overflow: hidden; padding: 0; top: 0; left: 0; display: flex; justify-content: center; align-items: center; &.is- { &open { transform: scale(1); opacity: 1; } &closing { transform: scale(0.95); opacity: 0; } } &__{ &wrapper { $dialog-wrapper: & !global; width: 90%; background-color: var(--color-background, #fff); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); max-width: 600px; max-height: calc( 100vh - 6rem ); z-index: 1; padding: 2rem; } &close { $dialog-close: & !global; position: absolute; top: 0rem; right: 0rem; background: transparent; border: none; font-size: 1.25rem; cursor: pointer; color: var(--color-text, #666); transition: color 0.2s ease; outline: 0; padding: 0; line-height: 1em; &:hover { color: var(--color-danger, #d00); } } &header { $dialog-header: & !global; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 0 1rem 0; border-bottom: 1px solid #eee; background: var(--color-background, #fff); position: sticky; top: 0; z-index: 2; } &content { $dialog-content: & !global; flex-grow: 1; overflow-y: auto; padding: 0 1.5rem; margin: 0 -1.5rem; &:has(.tabs__content) { overflow: visible; padding: 0; margin: 0; .tabs__content { max-height: calc( 100vh - 6rem - var( --maxHeight ) - 1.5rem + 10px ); overflow-y: auto; border: 0; margin-inline: -1.5rem; padding-inline: 1.5rem; padding-bottom: 1.5rem; padding-block: 5px; margin-blok: -5px; } } } &backdrop { $dialog-backdrop: & !global; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity 300ms ease-in-out; z-index: 0; } } &-- { &sm { #{$dialog-wrapper} { max-width: 400px; } } &md { #{$dialog-wrapper} { max-width: 600px; // Standard } } &lg { #{$dialog-wrapper} { max-width: 800px; } } &xl { #{$dialog-wrapper} { max-width: 1200px; } } &full { #{$dialog-wrapper} { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; } } &max { #{$dialog-wrapper} { margin-top: 3rem; height: 100%; .scroll__viewport { height : 100vh; } } } &equal { #{$dialog-wrapper} { .scroll__viewport { height : var( --height ); } } } &top { #{$dialog-wrapper} { margin-top: 3rem; } } } }