Modal.module.scss
130 lines
| 1 | .giveModalContainer { |
| 2 | position: fixed; |
| 3 | top: 0; |
| 4 | left: 0; |
| 5 | width: 100%; |
| 6 | height: 100%; |
| 7 | background: rgba(255, 255, 255, 0.64); |
| 8 | z-index: 99999; |
| 9 | display: flex; |
| 10 | justify-content: center; |
| 11 | align-items: safe center; |
| 12 | box-sizing: border-box; |
| 13 | padding: 1rem 0; |
| 14 | |
| 15 | .modal { |
| 16 | overscroll-behavior: none; |
| 17 | font-family: "Open Sans", system-ui; |
| 18 | display: flex; |
| 19 | flex-direction: column; |
| 20 | align-items: center; |
| 21 | row-gap: 1.2rem; |
| 22 | width: 100%; |
| 23 | margin: auto; |
| 24 | max-width: 40.125rem; |
| 25 | max-height: 100%; |
| 26 | box-sizing: border-box; |
| 27 | background-color: white; |
| 28 | padding: 2rem 4rem; |
| 29 | box-shadow: 0 0 24px 4px rgba(0, 0, 0, 0.25); |
| 30 | border-top: rgba(105, 184, 107, 1) solid 0.5rem; |
| 31 | overflow-y: auto; |
| 32 | |
| 33 | h2 { |
| 34 | font-weight: bold; |
| 35 | font-size: 2.375rem; |
| 36 | text-transform: uppercase; |
| 37 | line-height: 3.25rem; |
| 38 | color: #556E79; |
| 39 | margin: 0; |
| 40 | } |
| 41 | |
| 42 | p { |
| 43 | text-align: center; |
| 44 | font-size: 1.375rem; |
| 45 | font-weight: 300; |
| 46 | color: #5C5C5C; |
| 47 | margin: 0; |
| 48 | |
| 49 | span { |
| 50 | color: rgba(105, 184, 107, 1); |
| 51 | font-weight: bold; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | a { |
| 56 | font-size: 1rem; |
| 57 | font-style: italic; |
| 58 | text-decoration: underline; |
| 59 | color: rgba(85, 110, 121, 1); |
| 60 | } |
| 61 | |
| 62 | .icon { |
| 63 | width: 8rem; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | .form { |
| 68 | display: flex; |
| 69 | flex-direction: column; |
| 70 | align-items: center; |
| 71 | row-gap: 2rem; |
| 72 | |
| 73 | label { |
| 74 | display: flex; |
| 75 | flex-direction: column; |
| 76 | font-size: 1rem; |
| 77 | font-weight: 400; |
| 78 | |
| 79 | span { |
| 80 | padding-left: 0.3rem; |
| 81 | margin-bottom: 0.2rem; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | .fields { |
| 86 | width: 100%; |
| 87 | display: flex; |
| 88 | flex-direction: column; |
| 89 | row-gap: 2rem; |
| 90 | justify-content: space-between; |
| 91 | align-items: center; |
| 92 | |
| 93 | input[type="submit"]="submit""] { |
| 94 | padding: 1rem 2rem; |
| 95 | } |
| 96 | |
| 97 | input:where([type="text"], [type="email"]) { |
| 98 | width: 22rem; |
| 99 | height: 3.1rem; |
| 100 | border: #c5c5c5 solid 0.15rem; |
| 101 | background-color: white; |
| 102 | box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.1); |
| 103 | padding: 0 0.5rem; |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | .disclosure { |
| 109 | font-size: 0.73rem; |
| 110 | } |
| 111 | |
| 112 | :is(.submissionError, .submissionError a) { |
| 113 | color: red; |
| 114 | font-size: 0.9rem; |
| 115 | text-align: center; |
| 116 | } |
| 117 | |
| 118 | @media (max-width: 428px) { |
| 119 | padding: 0; |
| 120 | |
| 121 | .modal { |
| 122 | padding: 1rem 0.5rem; |
| 123 | |
| 124 | h2 { |
| 125 | font-size: 1.9rem; |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 |