image.scss
260 lines
| 1 | /* Classic */ |
| 2 | .givewp-donation-form { |
| 3 | .givewp-layouts { |
| 4 | &-header { |
| 5 | position: relative; |
| 6 | padding: 0; |
| 7 | gap: 0; |
| 8 | |
| 9 | &__templates, &__templates--background, &__templates--center { |
| 10 | display: flex; |
| 11 | flex-direction: column; |
| 12 | padding: var(--givewp-spacing-6); |
| 13 | gap: var(--givewp-spacing-6); |
| 14 | width: 100%; |
| 15 | |
| 16 | @media screen and (min-width: 32rem) { |
| 17 | padding: var(--givewp-spacing-10) var(--givewp-spacing-20); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | &__templates--above, &__templates--background, &__templates--center { |
| 22 | .givewp-layouts-headerImage { |
| 23 | width: 100%; |
| 24 | |
| 25 | img { |
| 26 | object-fit: cover; |
| 27 | min-width: 100%; |
| 28 | border-top-left-radius: var(--givewp-rounded-8); |
| 29 | border-top-right-radius: var(--givewp-rounded-8); |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | &__templates { |
| 35 | &--background { |
| 36 | .givewp-layouts-headerImage { |
| 37 | margin-top: -1.5rem; |
| 38 | width: 100%; |
| 39 | height: auto; |
| 40 | |
| 41 | img { |
| 42 | position: absolute; |
| 43 | top: 0; |
| 44 | left: 0; |
| 45 | height: 100%; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | div:not(.givewp-layouts-headerImage, .givewp-layouts-headerImage__overlay), aside { |
| 50 | position: relative; |
| 51 | z-index: 999; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | &--templates, &--above { |
| 56 | padding: 0; |
| 57 | width: 100%; |
| 58 | gap: 0; |
| 59 | |
| 60 | @supports (background-color: color-mix(in lab, var(--givewp-primary-color) 15%, white)) { |
| 61 | background-color: color-mix(in lab, var(--givewp-primary-color) 15%, white); |
| 62 | } |
| 63 | |
| 64 | .givewp-layouts-headerTitle h2, .givewp-layouts-headerDescription p { |
| 65 | color: var(--givewp-grey-900); |
| 66 | } |
| 67 | |
| 68 | .givewp-layouts-headerImage { |
| 69 | position: relative; |
| 70 | |
| 71 | img { |
| 72 | height: 320px; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | .givewp-layouts-header__content { |
| 77 | display: flex; |
| 78 | flex-direction: column; |
| 79 | gap: var(--givewp-spacing-6); |
| 80 | padding: var(--givewp-spacing-6); |
| 81 | |
| 82 | @media screen and (min-width: 32rem) { |
| 83 | padding: var(--givewp-spacing-10) var(--givewp-spacing-20); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | &--center { |
| 89 | @supports (background-color: color-mix(in lab, var(--givewp-primary-color) 15%, white)) { |
| 90 | background-color: color-mix(in lab, var(--givewp-primary-color) 15%, white); |
| 91 | } |
| 92 | |
| 93 | .givewp-layouts-headerTitle h2, .givewp-layouts-headerDescription p { |
| 94 | color: var(--givewp-grey-900); |
| 95 | } |
| 96 | |
| 97 | .givewp-layouts-headerImage { |
| 98 | position: relative; |
| 99 | |
| 100 | &__overlay { |
| 101 | &:before { |
| 102 | border-radius: var(--givewp-rounded-4); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | img { |
| 107 | height: 311px; |
| 108 | border-radius: var(--givewp-rounded-4); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | .givewp-layouts-goal { |
| 113 | margin-top: -1.25rem; |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | /* Multi Step */ |
| 122 | .givewp-donation-form__steps-body, .givewp-donation-form > .givewp-layouts-header { |
| 123 | padding: 0; |
| 124 | background: #fff; |
| 125 | |
| 126 | .givewp-layouts-multiStepForm, .givewp-layouts-header__templates-ms { |
| 127 | padding: 2rem 2rem 0 2rem; |
| 128 | } |
| 129 | |
| 130 | .givewp-donation-form__steps-button-next { |
| 131 | width: calc(100% - 4rem); |
| 132 | margin: 0 auto; |
| 133 | } |
| 134 | |
| 135 | .givewp-layouts-multiStepForm__form { |
| 136 | .givewp-donation-form__steps-button-next { |
| 137 | width: 100%; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | |
| 142 | .givewp-layouts-header__templates-ms { |
| 143 | .givewp-layouts-headerImage { |
| 144 | width: 100%; |
| 145 | |
| 146 | img { |
| 147 | object-fit: cover; |
| 148 | min-width: 100%; |
| 149 | border-top-left-radius: var(--givewp-rounded-8); |
| 150 | border-top-right-radius: var(--givewp-rounded-8); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | .givewp-layouts-headerTitle { |
| 155 | color: var(--givewp-grey-900); |
| 156 | } |
| 157 | |
| 158 | .givewp-layouts-headerDescription { |
| 159 | color: var(--givewp-grey-700); |
| 160 | } |
| 161 | |
| 162 | |
| 163 | &--background { |
| 164 | padding: 0; |
| 165 | |
| 166 | .givewp-layouts-header { |
| 167 | &__content { |
| 168 | position: relative; |
| 169 | padding: 2rem 2rem .5rem 2rem; |
| 170 | margin-bottom: var(--givewp-spacing-4); |
| 171 | |
| 172 | .givewp-layouts-headerTitle h2, .givewp-layouts-headerDescription p { |
| 173 | color: var(--givewp-shades-white); |
| 174 | } |
| 175 | |
| 176 | } |
| 177 | |
| 178 | &__goal { |
| 179 | padding: 0 2rem; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | |
| 184 | div:not(.givewp-layouts-headerImage,, .givewp-layouts-headerImage__overlay, .givewp-layouts-header__content), aside { |
| 185 | position: relative; |
| 186 | z-index: 999; |
| 187 | } |
| 188 | |
| 189 | .givewp-layouts-headerImage { |
| 190 | |
| 191 | img { |
| 192 | position: absolute; |
| 193 | top: 0; |
| 194 | left: 0; |
| 195 | height: 100%; |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | &--above { |
| 201 | padding: 0; |
| 202 | |
| 203 | .givewp-layouts-header__content { |
| 204 | padding: 0 2rem; |
| 205 | } |
| 206 | |
| 207 | .givewp-layouts-headerImage { |
| 208 | position: relative; |
| 209 | |
| 210 | margin-bottom: var(--givewp-spacing-6); |
| 211 | |
| 212 | img { |
| 213 | height: 320px; |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | &--center { |
| 219 | padding: 2rem 2rem 0 2rem; |
| 220 | |
| 221 | .givewp-layouts-headerImage { |
| 222 | position: relative; |
| 223 | |
| 224 | &__overlay { |
| 225 | &:before { |
| 226 | border-radius: var(--givewp-rounded-4); |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | img { |
| 231 | border-radius: var(--givewp-rounded-4); |
| 232 | max-height: 320px; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | .givewp-layouts-goal { |
| 237 | margin-top: var(--givewp-spacing-1); |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | .givewp-layouts-headerImage { |
| 244 | |
| 245 | &__overlay:before { |
| 246 | content: ''; |
| 247 | position: absolute; |
| 248 | top: 0; |
| 249 | left: 0; |
| 250 | width: 100%; |
| 251 | height: 100%; |
| 252 | border-top-left-radius: var(--givewp-rounded-4); |
| 253 | border-top-right-radius: var(--givewp-rounded-4); |
| 254 | background: var(--givewp-image-color); |
| 255 | border: 1px solid var(--givewp-image-color); |
| 256 | opacity: calc(var(--givewp-image-opacity) / 100); |
| 257 | z-index: 999; |
| 258 | } |
| 259 | } |
| 260 |