@import "src/styles/variables"; .wrap { width: 100vw; height: 100vh; background: transparentize(darken($content_bg, 4%), 0.5); display: flex; align-items: center; justify-content: center; padding: 70px 20px 40px 20px; box-sizing: border-box; @include tablet { padding: 20px 0 0 0; } } .container { display: flex; align-items: stretch; justify-content: center; flex-direction: column; min-width: $cell; max-width: 400px; max-height: calc(100vh - 75px); width: 100%; position: relative; box-sizing: border-box; & > div:nth-child(2) { border-top-left-radius: $dialog_radius; border-top-right-radius: $dialog_radius; } & > div:last-child { border-bottom-left-radius: $dialog_radius; border-bottom-right-radius: $dialog_radius; } } .header, .footer { @include outer_shadow(); background: darken($content_bg, 2%); } .body { @include outer_shadow(); position: relative; overflow: auto; flex: 1; background: $content_bg; } @keyframes appear { 0% { top: -48px; } 100% { top: -58px; } } .close { @include outer_shadow; background: lighten($content_bg, 4%); width: 36px; height: 36px; position: absolute; top: -14px; right: 4px; transform: translate(50%, 0) scale(1); display: flex; align-items: center; justify-content: center; border-radius: 100%; cursor: pointer; transition: transform 0.25s, background-color 0.25s; animation: appear 0.5s forwards; z-index: 10; @include tablet { top: -16px; right: 16px; } &:hover { background-color: $red; transform: translate(50%, 0) scale(1.25); } svg { width: 20px; height: 20px; } } .error { position: absolute; bottom: 0; left: 0; width: 100%; height: 40px; pointer-events: none; background: linear-gradient(0deg, $red 50%, transparentize($red, 1)); display: flex; align-items: center; justify-content: center; border-radius: 0 0 $radius $radius; z-index: 11; } .backdrop { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } @keyframes appear { 0% { opacity: 0; } 100% { opacity: 1; } } .shade { position: absolute; background: transparentize($content_bg, 0.3); top: 0; left: 0; width: 100%; height: 100%; z-index: 2; display: flex; align-items: center; justify-content: center; border-radius: $radius; animation: appear 1s forwards; svg { fill: white; } }