$circle-size: 125px; .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: $zindex-modal; } .modal { box-sizing: border-box; width: 90%; overflow-y: auto; position: relative; margin: 2% auto 0; background: $white; z-index: $zindex-modal; max-height: calc(100vh - 20px); border-radius: 5px; border: 1px solid $gray; border-top: 10px solid $blue-medium; &.error { border-top: 10px solid $red; } &.warning { border-top: 10px solid $yellow; } &.success { border-top: 10px solid $green; } &.info { border-top: 10px solid $blue-medium; } &.promo { border-top: 1px solid $gray; } &-state-promo { border-top: 1px solid $gray; height: 80px; // IE Fallback height: rem(80px); position: relative; background: url('/images/common/modal-bg/keyboard.png') center center no-repeat; &-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -8%); z-index: 2; @include padding(25px); } svg { width: 70px; height: 70px; } &-circle { position: absolute; width: $circle-size; width: rem($circle-size); height: $circle-size; height: rem($circle-size); left: 50%; top: 50%; background: $white; border-radius: 50%; transform: translate(-50%, -20%); z-index: 1; } } &-state-icon { width: 100%; height: 50px; position: relative; margin-top: 20px; z-index: 5; svg, img { position: absolute; left: 50%; transform: translate(-50%, 0); width: 50px; height: 50px; g { stroke: $blue-medium; } } } &.w480 { max-width: 600px; width: 30%; min-width: 400px; } &.w800 { max-width: 800px; width: 45%; min-width: 400px; } * { box-sizing: border-box; } &-content { .message-text1, .message-text2{ text-align: center; } .button-modal{ left: 0; } } &-header { padding: 20px; } &-body { padding: 20px; } &-footer { padding: 20px; border-top: 1px solid $gray-light; } &-logo { text-align: center; @include margin(10px 0); svg { width: 120px; height: 15px; } } } .modal-btn-close { height: 20px; width: 20px; position: absolute; top: 10px; right: 10px; line-height: 50px; z-index: 10; cursor: pointer; border: none; background: transparent; &:focus, &:active { outline: none; -webkit-appearance: none; } &:before, &:after { transform: rotate(-45deg); content: ''; position: absolute; top: 50%; left: 50%; margin-left: -10px; display: block; height: 2px; width: 20px; background-color: $gray; transition: all 0.2s ease-out; } &.white:before, &.white:after { background-color: $white; } &:after { transform: rotate(45deg); } &:hover { &:before, &:after { transform: rotate(0deg); } } } .modal-header-title { font-size: 0.7rem; color: $white; } .modal-content { position: relative; z-index: 5; text-align: center; .modal-body { margin:10px; } .form-field-group { text-align: left; } } @media only screen and (min-width : 481px)and (max-width : 560px) { .modal-overlay{ .modal { width:50% !important; min-width: 480px; } } } @media only screen and (max-width : 480px), only screen and (-webkit-min-device-pixel-ratio: 4) and (max-width : 480px) { .modal-overlay{ background-color: #fff; margin-top: 0; height: 100%; .modal { width:100% !important; margin-top: 0; min-width: 100%; border-left: none; border-right: none; border-bottom: none; border-top-right-radius: 0; border-top-left-radius: 0; } .modal-btn-close{ width: 40px; height: 40px; right: 0; top: 0; @include font-size($base-font-size + 2); } .modal-logo { display: block; } } } // Extend modal backgrounds here .modal-state-promo.keyboard { background: url('/images/common/modal-bg/keyboard.png') center center no-repeat; } // Add promo modal svg classes here .modal-state-promo { .svg-email svg { height: 33px; } } //Hide the body scroll bar on mobile view @include breakpoint(xs){ &.hide-scroll-xs { overflow: hidden; } }