_helpers.scss
2 years ago
_modals.scss
2 years ago
_notifications.scss
2 years ago
_variables.scss
2 years ago
_modals.scss
145 lines
| 1 | @use "variables" as *; |
| 2 | //@use "helpers" as *; |
| 3 | |
| 4 | div[modal-backdrop]] { |
| 5 | background-color: rgba(42, 0, 122, 0.5) !important; |
| 6 | z-index: 9990; |
| 7 | position: fixed; |
| 8 | inset: 0; |
| 9 | } |
| 10 | .modal-wrapper { |
| 11 | z-index: 10000; |
| 12 | width: 100%; |
| 13 | max-height: 100%; |
| 14 | height: calc(100% - 1rem); |
| 15 | position: fixed; |
| 16 | top: 0; |
| 17 | left: 0; |
| 18 | right: 0; |
| 19 | overflow-y: auto; |
| 20 | overflow-x: hidden; |
| 21 | inset: 0; |
| 22 | flex-direction: column; |
| 23 | justify-content: center; |
| 24 | display: flex; |
| 25 | align-items: center; |
| 26 | font-family: $font; |
| 27 | &.hidden { |
| 28 | display: none; |
| 29 | } |
| 30 | .btn { |
| 31 | @include btn(); |
| 32 | &.btn-primary { |
| 33 | background-color: $primary-color; |
| 34 | border-color: $primary-color; |
| 35 | color: #fff; |
| 36 | &:hover { |
| 37 | background-color: $primary-hover; |
| 38 | } |
| 39 | } |
| 40 | &.btn-secondary { |
| 41 | &:hover { |
| 42 | color: $primary-color; |
| 43 | background-color: $purple-100; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | .modal-container, |
| 49 | .popup-container { |
| 50 | max-height: 80%; |
| 51 | max-width: 600px; |
| 52 | width: 100%; |
| 53 | position: relative; |
| 54 | } |
| 55 | .modal-inner, |
| 56 | .popup-inner { |
| 57 | padding: $gutter; |
| 58 | background-color: #fff; |
| 59 | border-radius: $border-radius * 2; |
| 60 | position: relative; |
| 61 | height: 100%; |
| 62 | width: 100%; |
| 63 | box-sizing: border-box;//safemode |
| 64 | } |
| 65 | .modal-header { |
| 66 | display: flex; |
| 67 | align-items: center; |
| 68 | justify-content: space-between; |
| 69 | h3 { |
| 70 | font-size: 1rem; |
| 71 | color: $gray-700; |
| 72 | } |
| 73 | .close-modal { |
| 74 | align-self: flex-start; |
| 75 | color: $gray-700; |
| 76 | cursor: pointer; |
| 77 | } |
| 78 | } |
| 79 | .modal-body { |
| 80 | padding: 1rem 0 2rem 0; |
| 81 | display: flex; |
| 82 | flex-direction: column; |
| 83 | justify-content: space-between; |
| 84 | height: 100%; |
| 85 | } |
| 86 | .modal-footer { |
| 87 | margin-top: $gutter; |
| 88 | margin-bottom: 1rem; |
| 89 | align-self: flex-end; |
| 90 | .btn { |
| 91 | min-width: 116px; |
| 92 | text-align: center; |
| 93 | + .btn { |
| 94 | margin-left: 0.5rem; |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | /* Popup */ |
| 99 | .popup-container { |
| 100 | width: 600px; |
| 101 | } |
| 102 | .popup-modal { |
| 103 | top: 15vh; |
| 104 | justify-content: flex-start; |
| 105 | } |
| 106 | .popup-header { |
| 107 | display: flex; |
| 108 | flex-direction: column; |
| 109 | align-items: center; |
| 110 | .close-modal { |
| 111 | align-self: flex-end; |
| 112 | cursor: pointer; |
| 113 | -webkit-appearance: button; |
| 114 | background-color: rgba(0, 0, 0, 0); |
| 115 | background-image: none; |
| 116 | border: 0; |
| 117 | } |
| 118 | h3 { |
| 119 | margin-top: $gutter; |
| 120 | font-size: 1.25rem; |
| 121 | color: $gray-700; |
| 122 | margin-bottom: 0; |
| 123 | } |
| 124 | } |
| 125 | .popup-body { |
| 126 | font-size: 1rem; |
| 127 | color: $gray-600; |
| 128 | margin-top: 1rem; |
| 129 | } |
| 130 | .popup-footer { |
| 131 | display: flex; |
| 132 | align-items: center; |
| 133 | justify-content: center; |
| 134 | margin-top: $gutter; |
| 135 | .btn { |
| 136 | min-width: 116px; |
| 137 | |
| 138 | + .btn { |
| 139 | margin-left: 0.5rem; |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | .text-center { |
| 144 | text-align: center; |
| 145 | } |