//@import '../theme/variables.scss'; @import "./variables.scss"; $module: #{$prefix}-modal; .#{$module} { @include font-size-regular; position: relative; // width: 600px; margin: $spacing-modal-marginY $spacing-modal-marginX; color: $color-modal_main-text; &-mask { position: fixed; top: $spacing-modal_mask-top; right: $spacing-modal_mask-right; left: $spacing-modal_mask-left; bottom: $spacing-modal_mask-bottom; background-color: $color-modal_mask-bg; height: 100%; // filter: alpha(opacity=50); z-index: $z-modal-mask; &-hidden { display: none; } } &-icon-wrapper { display: inline-flex; margin-right: $spacing-modal_icon_wrapper-marginRight; width: $width-icon-extra-large; } &-wrap { position: fixed; overflow: auto; top: $spacing-modal_wrap-top; right: $spacing-modal_wrap-right; bottom: $spacing-modal_wrap-bottom; left: $spacing-modal_wrap-left; z-index: $z-modal; -webkit-overflow-scrolling: touch; outline: 0; &-center{ display: flex; align-items: center; } } &-title { display: inline-flex; align-items: flex-start; justify-content: flex-start; width: $width-modal_title; margin: $spacing-modal_title-margin; } &-content { position: relative; display: flex; height: $height-modal_content; width: $width-modal_content; box-sizing: border-box; flex-direction: column; background-color: $color-modal-bg; border: $width-modal_content-border solid $color-modal_content-border; border-radius: $radius-modal_content; padding: $spacing-modal_content-paddingY $spacing-modal_content-paddingX; background-clip: padding-box; overflow: hidden; @include shadow-elevated; } &-content-fullScreen { border-radius: $radius-modal_content_fullscreen; border: none; } // &-close { // position: absolute; // right: 15px; // } &-header { display: flex; align-items: flex-start; margin: $spacing-modal_header-marginY $spacing-modal_header-marginX; padding: $spacing-modal_header-paddingY $spacing-modal_header-paddingX; font-size: $font-modal_header-fontSize; font-weight: $font-modal_header-fontWeight; background-color: $color-modal_header-bg; color: $color-modal_main-text; border-bottom: $width-modal_header-border solid $color-modal_header-border; } &-body-wrapper { display: flex; align-items: flex-start; margin: $spacing-modal_body_wrapper-marginY $spacing-modal_body_wrapper-marginX; } &-body { flex: 1 1 auto; // padding: $spacing-loose; margin: $spacing-modal_body-margin; padding: $spacing-modal_body-padding; } &-withIcon { margin-left: $spacing-modal_content_withicon-marginLeft; } &-footer { // padding: $spacing-loose; margin: $spacing-modal_footer-marginY $spacing-modal_footer-marginX; padding: $spacing-modal_footer-paddingY $spacing-modal_footer-paddingX; text-align: right; border-radius: $radius-modal_footer; border-top: $width-modal_footer-border solid $color-modal_footer-border; background-color: $color-modal_footer-bg; .#{$prefix}-button { margin-left: $spacing-modal_footer_button-marginLeft; margin-right: 0; } } &-confirm { .#{$module}-header { margin-bottom: $spacing-modal_confirm_header-marginBottom; } // &-content-withIcon { // margin-left: 36px; // } &-icon-wrapper { display: inline-flex; margin-right: $spacing-modal_confirm_icon_wrapper-marginRight; width: $width-icon-extra-large; } &-icon { display: inline-flex; color: $color-modal_primary-icon; } } &-info-icon { color: $color-modal_info-icon; } &-success-icon { color: $color-modal_success-icon; } &-error-icon { color: $color-modal_danger-icon; } &-warning-icon { color: $color-modal_warning-icon; } &-small { width: $width-modal_small; } &-medium { width: $width-modal_medium; } &-large { width: $width-modal_large; } &-full-width { width: $width-modal_full_width; } } .#{$module}-centered { margin: 0 auto; } .#{$module}-popup { .#{$module}-mask, .#{$module}-wrap { position: absolute; overflow: hidden; } } .#{$module}-fixed { .#{$module}-mask, .#{$module}-wrap { position: fixed; overflow: hidden; } } .#{$module}-displayNone { display: none; } .#{$module}-content-animate-hide { animation: 90ms #{$module}-content-keyframe-hide ease forwards; } .#{$module}-content-animate-show { animation: 120ms #{$module}-content-keyframe-show cubic-bezier(0, 0, 0.26, 1.38) forwards; } .#{$module}-mask-animate-hide { animation: 90ms #{$module}-mask-keyframe-hide ease forwards; } .#{$module}-mask-animate-show { animation: 90ms #{$module}-mask-keyframe-show ease forwards; } @keyframes #{$module}-content-keyframe-show { 0% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1); } } @keyframes #{$module}-content-keyframe-hide { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.7); } } @keyframes #{$module}-mask-keyframe-show { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes #{$module}-mask-keyframe-hide { 0% { opacity: 1; } 100% { opacity: 0; } } @import "./rtl.scss";