@import 'common/sass/variables'; @import 'common/sass/mixins'; $m-background: #fff; $m-window-padding-w: 20px; $m-window-padding-h: 30px; $m-header-height: 62px; $m-header-padding: 1rem 2rem 0.5rem 2rem; $m-content-padding: 1.5rem 2rem; $m-footer-padding: 0.5rem 2rem 1rem 2rem; $m-close-size: 26px; $m-anim-speed: 400ms; .Modalshade { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(#000, 0.54); z-index: $zindex-modal-background; display: block; } .Modal { position: fixed; top: 50%; left: 50%; width: initial; max-width: 95%; max-width: calc(100% - #{$m-window-padding-w * 2}); max-height: 95%; max-height: calc(100% - #{$m-window-padding-h * 2}); background: $m-background; border-radius: 2px; transform: translate(-50%, -50%); z-index: $zindex-modal; overflow: hidden; display: flex; flex-direction: column; animation: modal-open $m-anim-speed ease 1; text-align: left; box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12); &-fade { background: linear-gradient(to bottom, #fff0, #fff); position: fixed; height: 25px; width: calc(100% - 3rem); bottom: 4.5rem; left: 50%; transform: translateX(-50%); } &-header { display: flex; flex-wrap: nowrap; padding: $m-header-padding; align-items: center; &-title { font-size: 1.625rem; font-weight: 400; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; } &-close { @include reset-button; height: $m-close-size; width: $m-close-size; opacity: 0.3; transition: opacity 120ms; &:hover { opacity: 0.87; } &-icon { width: 100%; } } } &-content { display: flex; flex: 1; flex-direction: column; padding: $m-content-padding; overflow: auto; > .Spinner { margin: 2.5rem auto; } } &-footer { padding: $m-footer-padding; background: $m-background; // Selector needs a little extra oomph to override bootstrap &-btn.btn { float: right; margin: 0 0 0 8px; min-width: 100px; } } } .animate-modal { &-enter, &-exit { position: relative; z-index: 3; transition: opacity 300ms; } &-enter { opacity: 0; &-active { opacity: 1; } } &-exit { opacity: 1; &-active { opacity: 0; } } }