stellarwp-sales-banner.scss
208 lines
| 1 | .give_forms_page_give-reports .give-sale-banners-container, .givewp-sale-banners-container { |
| 2 | /* Box-sizing reset */ |
| 3 | &, |
| 4 | & *, |
| 5 | & ::before, |
| 6 | & ::after { |
| 7 | box-sizing: border-box; |
| 8 | } |
| 9 | |
| 10 | margin: 0 auto; |
| 11 | } |
| 12 | |
| 13 | .give_forms_page_give-reports .give-sale-banner, .give-sale-banner { |
| 14 | position: relative; |
| 15 | display: flex; |
| 16 | justify-content: space-between; |
| 17 | background: #1D202F; |
| 18 | padding: 2rem 1.25rem 1.5rem 3.25rem; |
| 19 | box-shadow: 0 0.0625em 0.25em rgba(0, 0, 0, 0.25); |
| 20 | font-size: clamp(max(0.875rem, 14px), 2vw, max(1rem, 16px)); |
| 21 | color: #F9FAF9; |
| 22 | overflow: hidden; |
| 23 | } |
| 24 | |
| 25 | .give_forms_page_give-reports .give-sale-banner-content, .give-sale-banner-content { |
| 26 | flex: .7; |
| 27 | display: flex; |
| 28 | align-items: center; |
| 29 | justify-content: flex-start; |
| 30 | gap: 3rem; |
| 31 | |
| 32 | |
| 33 | & * { |
| 34 | font-size: inherit; |
| 35 | font-family: 'Neurial Grotesk', Montserrat, sans-serif; |
| 36 | } |
| 37 | |
| 38 | a { |
| 39 | color: inherit; |
| 40 | text-decoration-thickness: 0.05em; |
| 41 | transform-style: preserve-3d; |
| 42 | |
| 43 | &::after { |
| 44 | content: ""; |
| 45 | position: absolute; |
| 46 | transform: translateZ(-1px); |
| 47 | display: block; |
| 48 | background-color: #fff; |
| 49 | height: calc(100% + 0.2em); |
| 50 | width: calc(100% + 0.6em); |
| 51 | top: -0.1em; |
| 52 | left: -0.3em; |
| 53 | opacity: 0; |
| 54 | box-shadow: 0 0.0625em 0.125em rgba(0, 0, 0, 0.05); |
| 55 | transition: opacity 0.2s ease-in-out; |
| 56 | } |
| 57 | |
| 58 | &:focus { |
| 59 | outline: none; |
| 60 | box-shadow: none; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | &__primary-cta { |
| 65 | white-space: nowrap; |
| 66 | |
| 67 | &__header, &__sub-header { |
| 68 | flex: 1 1 auto; |
| 69 | margin: 0; |
| 70 | padding: 0; |
| 71 | line-height: 29px; |
| 72 | color: #F9FAF9; |
| 73 | } |
| 74 | |
| 75 | &__header { |
| 76 | font-size: 1.5rem; |
| 77 | font-weight: 700; |
| 78 | } |
| 79 | |
| 80 | &__sub-header { |
| 81 | font-size: 1.25rem; |
| 82 | font-weight: 300; |
| 83 | line-height: normal |
| 84 | } |
| 85 | |
| 86 | &__link { |
| 87 | font-family: 'Inconsolata', Montserrat, sans-serif; |
| 88 | font-size: .875rem; |
| 89 | display: inline-flex; |
| 90 | padding: 0.73125rem 1.6714375rem; |
| 91 | justify-content: center; |
| 92 | align-items: center; |
| 93 | background: #62B265; |
| 94 | border-radius: 9999px; |
| 95 | text-decoration: none; |
| 96 | margin: 1rem auto 0 0; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | &__secondary-cta { |
| 101 | display: flex; |
| 102 | flex-direction: column; |
| 103 | gap: 1rem; |
| 104 | |
| 105 | &__content { |
| 106 | font-size: 1rem; |
| 107 | font-style: normal; |
| 108 | font-weight: 400; |
| 109 | line-height: normal; |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | .give-sale-banner-dismiss.givewp-sale-banner__dismiss[aria-label="Dismiss"]="Dismiss""][aria-controls]][data-id]] { |
| 115 | position: absolute; |
| 116 | top: 1rem; |
| 117 | right: 1rem; |
| 118 | --size: 1.25rem; |
| 119 | appearance: none; |
| 120 | background: none; |
| 121 | display: grid; |
| 122 | place-content: center; |
| 123 | padding: 0; |
| 124 | width: var(--size); |
| 125 | height: var(--size); |
| 126 | border: 0; |
| 127 | outline-offset: 0.25rem; |
| 128 | color: inherit; |
| 129 | cursor: pointer; |
| 130 | font-size: inherit; |
| 131 | transition: color 0.2s, transform 0.2s; |
| 132 | z-index: 999; |
| 133 | |
| 134 | & svg { |
| 135 | width: var(--size); |
| 136 | height: var(--size); |
| 137 | transition: fill 200ms ease-in-out; |
| 138 | fill: none; |
| 139 | |
| 140 | /* This ensures that the event target is the button when clicked. */ |
| 141 | pointer-events: none; |
| 142 | } |
| 143 | |
| 144 | &:hover { |
| 145 | transform: scale(1.15); |
| 146 | } |
| 147 | |
| 148 | &:active { |
| 149 | transform: scale(0.95); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | .give-sale-banner__abstract-icon { |
| 154 | position: absolute; |
| 155 | bottom: 0; |
| 156 | right: 0; |
| 157 | } |
| 158 | |
| 159 | |
| 160 | @media screen and (min-width: 1800px) { |
| 161 | .give-sale-banner__abstract-icon { |
| 162 | bottom: -4rem; |
| 163 | |
| 164 | svg { |
| 165 | width: 330px; |
| 166 | height: 224px; |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | @media screen and (max-width: 1200px) { |
| 172 | .give-sale-banner-content { |
| 173 | gap: 1.5rem; |
| 174 | |
| 175 | & a { |
| 176 | font-size: 0.875rem; |
| 177 | } |
| 178 | |
| 179 | &__primary-cta { |
| 180 | white-space: normal; |
| 181 | } |
| 182 | |
| 183 | &__secondary-cta { |
| 184 | gap: 1rem; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | .give_forms_page_give-reports .give-sale-banner-content__primary-cta { |
| 189 | white-space: normal; |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | @media screen and (max-width: 770px) { |
| 194 | .give-sale-banner { |
| 195 | padding-left: 1rem; |
| 196 | } |
| 197 | |
| 198 | .give_forms_page_give-reports .give-sale-banner-content__secondary-cta, .give-sale-banner-content__secondary-cta { |
| 199 | display: none; |
| 200 | } |
| 201 | |
| 202 | .give-sale-banner__abstract-icon { |
| 203 | max-width: 8.25rem; |
| 204 | max-height: 9.5rem; |
| 205 | right: 6rem; |
| 206 | } |
| 207 | } |
| 208 |