![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/design/frontend/Cnc/default/web/scss/common/ |
// ============================================== // MODALS // ============================================== // Configuration $modal-background-overlay: rgba(0, 0, 0, 0.5); $modal-width: 990px; $modal-padding: 40px; $modal-background: $c-white; body._has-modal { height: 100%; width: 100%; overflow: hidden; .page-header { z-index: 100; } } .modals-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: $modal-background-overlay; z-index: 99; } .modal-slide, .modal-popup { position: fixed; left: 20px; right: 20px; top: 80px; bottom: 20px; min-width: 0; visibility: hidden; opacity: 0; overflow-y: auto; z-index: 100; @include breakpoint(md) { bottom: 0; left: 0; right: 0; top: 0; height: 100vh; width: 100vw; } &._show, &._show .modal-inner-wrap, &._show .modal { visibility: visible; opacity: 1; } .modal-inner-wrap { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 100%; max-width: $modal-width; max-height: 100vh; padding: 40px 20px; background-color: $modal-background; opacity: 0; visibility: hidden; overflow: auto; transition: opacity 250ms ease-in 100ms; pointer-events: auto; @include breakpoint(xs) { width: 90%; left: 50%; top: 50%; transform: translate(-50%,-50%); max-height: 90vh; padding: $modal-padding; } } // Header .modal-header { .modal-title { @extend .title-3; } } // Forms .form { .field { text-align: left; } } // Footer .modal-footer { display: flex; align-items: center; justify-content: center; margin-top: 30px; margin-bottom: $modal-padding; button { @extend .btn; + button { margin-left: 10px; } } } // Action buttons .actions-toolbar { display: flex; justify-content: space-between; margin-top: 20px; } // Close button .action-close { position: absolute; width: 40px; height: 40px; top: 10px; right: 10px; padding: 0; border: none; background: none; cursor: pointer; z-index: 2; &::after { font-family: "jade-icons"; @extend %icon-jade; content: "\e616"; font-size: 2rem; } > span { @extend .visually-hidden; } &.disabled, &[disabled] { cursor: not-allowed; pointer-events: none; opacity: .5 } } // Save cart modal &.save-card-modal { // Title .modal-title { text-align: center; } // Content .modal-content { text-align: center; #txtcartname, #slctupdate { margin: 3rem 0; } [class^="btn"] { padding: 1rem 3rem; margin: 0 1rem; } } // Footer .modal-footer { display: none; } } // Loader .loading-mask { &, &::before, &::after { height: auto; width: auto; } } } fieldset[disabled] { .modal-popup, .modal-slide { .action-close { cursor: not-allowed; pointer-events: none; opacity: .5 } } }