modal.scss in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.9.0, at assets/sass/modal.scss
| 1 | .merchant-modal-opened { |
| 2 | overflow: hidden; |
| 3 | } |
| 4 | |
| 5 | .merchant-modal { |
| 6 | display: flex; |
| 7 | align-items: center; |
| 8 | justify-content: center; |
| 9 | position: fixed; |
| 10 | top: 0; |
| 11 | right: 0; |
| 12 | bottom: 0; |
| 13 | left: 0; |
| 14 | padding: 25px; |
| 15 | visibility: hidden; |
| 16 | opacity: 0; |
| 17 | z-index: 99999; |
| 18 | transition: ease opacity 300ms; |
| 19 | |
| 20 | &:before { |
| 21 | content: ''; |
| 22 | display: block; |
| 23 | position: fixed; |
| 24 | top: 0; |
| 25 | right: 0; |
| 26 | bottom: 0; |
| 27 | left: 0; |
| 28 | background-color: rgba(0,0,0,.5); |
| 29 | z-index: -1; |
| 30 | } |
| 31 | |
| 32 | &.show { |
| 33 | opacity: 1; |
| 34 | visibility: visible; |
| 35 | } |
| 36 | |
| 37 | .merchant-modal-body { |
| 38 | position: relative; |
| 39 | width: 100%; |
| 40 | max-width: 600px; |
| 41 | background-color: #FFF; |
| 42 | padding: 25px; |
| 43 | border-radius: 4px; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | [data-merchant-modal-close]] { |
| 48 | position: absolute; |
| 49 | z-index: 1; |
| 50 | right: 25px; |
| 51 | top: 25px; |
| 52 | width: 17px; |
| 53 | height: 17px; |
| 54 | font-size: 24px; |
| 55 | display: flex; |
| 56 | align-items: center; |
| 57 | justify-content: center; |
| 58 | opacity: 0.6; |
| 59 | transition: ease opacity 300ms; |
| 60 | |
| 61 | svg { |
| 62 | width: 1em; |
| 63 | height: 1em; |
| 64 | fill: #212121; |
| 65 | } |
| 66 | |
| 67 | &:hover { |
| 68 | opacity: 1; |
| 69 | } |
| 70 | } |