_button.scss
4 years ago
_checkbox.scss
4 years ago
_currencyswitcher.scss
4 years ago
_donate-now.scss
4 years ago
_donation-amount.scss
4 years ago
_donation-summary.scss
4 years ago
_errors-notices.scss
3 years ago
_ffm.scss
4 years ago
_fn.scss
4 years ago
_funds.scss
4 years ago
_grid.scss
4 years ago
_header.scss
4 years ago
_icons.scss
4 years ago
_label.scss
4 years ago
_legacy-consumer.scss
4 years ago
_modal.scss
3 years ago
_page.scss
4 years ago
_payment-details.scss
3 years ago
_personal-info.scss
3 years ago
_radio.scss
4 years ago
_receipt.scss
4 years ago
_reset.scss
4 years ago
_section.scss
4 years ago
_stripe-checkout-modal.scss
4 years ago
_terms.scss
4 years ago
_text-input.scss
4 years ago
_tooltip.scss
4 years ago
_tributes.scss
4 years ago
_variables.scss
4 years ago
form.scss
1 year ago
variables.php
6 days ago
_donation-amount.scss
214 lines
| 1 | @use 'fn'; |
| 2 | |
| 3 | .give-donation-amount-section { |
| 4 | display: grid; |
| 5 | row-gap: fn.scaleBetween(1.5rem, 2rem); |
| 6 | |
| 7 | & p.give-custom-amount-text { |
| 8 | display: none; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | .give-amount-heading { |
| 13 | padding-block-end: 0.75rem; |
| 14 | border-block-end: 0.0625rem solid #ddd; |
| 15 | font-size: fn.scaleBetween(1.25rem, 1.5rem); |
| 16 | font-weight: 500; |
| 17 | line-height: 1.3; |
| 18 | color: #333; |
| 19 | } |
| 20 | |
| 21 | .give-donation-amount { |
| 22 | display: flex; |
| 23 | align-items: center; |
| 24 | border: 0.125rem solid #424242; |
| 25 | border-radius: 0.5rem; |
| 26 | background-color: #fff; |
| 27 | |
| 28 | &:focus-within { |
| 29 | border-color: var(--give-primary-color); |
| 30 | } |
| 31 | |
| 32 | & .give-currency-symbol, |
| 33 | & .give-text-input { |
| 34 | border-radius: inherit; |
| 35 | } |
| 36 | |
| 37 | & .give-currency-symbol { |
| 38 | display: block; |
| 39 | padding: fn.scaleBetween(1.375rem, 1.644rem); |
| 40 | color: #555; |
| 41 | font-size: 1.375rem; |
| 42 | font-weight: 500; |
| 43 | } |
| 44 | |
| 45 | & .give-text-input { |
| 46 | inline-size: 100%; |
| 47 | padding-block: 0.275em; |
| 48 | padding-inline: 0.45em; |
| 49 | border: 0; |
| 50 | text-align: right; |
| 51 | font-family: inherit; |
| 52 | font-size: fn.scaleBetween(2.625rem, 3.125rem); |
| 53 | font-weight: 600; |
| 54 | line-height: 1.2; |
| 55 | color: #333; |
| 56 | outline: 0; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | .give-amount-description { |
| 61 | line-height: 1.375; |
| 62 | } |
| 63 | |
| 64 | .give-donation-levels-wrap { |
| 65 | display: grid; |
| 66 | grid-template-columns: repeat(auto-fill, minmax(fn.scaleBetween(6.625rem, 10.375rem), 1fr)); |
| 67 | grid-auto-rows: 1fr; |
| 68 | gap: fn.scaleBetween(0.3125rem, 1.875rem); |
| 69 | inline-size: 100%; |
| 70 | list-style: none; |
| 71 | } |
| 72 | |
| 73 | .give-btn.give-donation-level-btn { |
| 74 | min-inline-size: -moz-available; |
| 75 | min-inline-size: -webkit-fill-available; |
| 76 | block-size: 100%; |
| 77 | font-size: fn.scaleBetween(1.5rem, 2.125rem); |
| 78 | padding-block: fn.scaleBetween(0.5rem, 1.6875rem); |
| 79 | padding-inline: 0.5rem; |
| 80 | |
| 81 | transition-property: background-color, color, filter, box-shadow, transform; |
| 82 | transition-duration: 200ms; |
| 83 | transition-timing-function: ease-in; |
| 84 | |
| 85 | &:hover { |
| 86 | transform: scale(1.02); |
| 87 | filter: brightness(1.2); |
| 88 | box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25); |
| 89 | } |
| 90 | |
| 91 | &.give-default-level { |
| 92 | background-color: #fff; |
| 93 | color: var(--give-primary-color); |
| 94 | } |
| 95 | |
| 96 | &.give-btn-level-custom { |
| 97 | word-spacing: 9999px; // This forces a linebreak after each word. |
| 98 | font-size: fn.scaleBetween(1rem, 1.125rem); |
| 99 | line-height: 1.25; |
| 100 | |
| 101 | @media screen and (min-width: $desktopMinWidth) { |
| 102 | font-weight: 400; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | & .give-formatted-currency { |
| 107 | // This is already formatted for the currency and flexbox breaks it so |
| 108 | // we aggressively set the direction. |
| 109 | direction: ltr; |
| 110 | display: flex; |
| 111 | column-gap: 0.15rem; |
| 112 | line-height: 1; |
| 113 | |
| 114 | .give-currency-symbol-before, |
| 115 | .give-currency-symbol-after { |
| 116 | font-weight: 400; |
| 117 | } |
| 118 | |
| 119 | .give-currency-symbol-before { |
| 120 | align-self: flex-start; |
| 121 | transform: translateY(0.2em); |
| 122 | font-size: 0.583em; |
| 123 | |
| 124 | @media screen and (min-width: $desktopMinWidth) { |
| 125 | transform: translateY(0.4em); |
| 126 | font-size: 0.41em; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | .give-currency-symbol-after { |
| 131 | align-self: center; |
| 132 | margin-block-start: 0.2em; |
| 133 | font-size: 0.8em; |
| 134 | } |
| 135 | |
| 136 | .give-amount-formatted { |
| 137 | display: inline-flex; |
| 138 | } |
| 139 | |
| 140 | .give-amount-without-decimals { |
| 141 | white-space: nowrap; |
| 142 | } |
| 143 | |
| 144 | .give-amount-decimal { |
| 145 | font-size: 0.5em; |
| 146 | transform: translateY(0.2em); |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | .give-recurring-donors-choice, |
| 152 | .give-fee-message-label, |
| 153 | .give-currency-switcher-msg-wrap, |
| 154 | .give-recurring-multi-level-message { |
| 155 | padding: 0.8125rem; |
| 156 | border: 0.1875rem solid #fff; |
| 157 | border-radius: 0.5rem; |
| 158 | background-color: #fff; |
| 159 | color: #333; |
| 160 | font-size: fn.scaleBetween(1rem, 1.125rem); |
| 161 | line-height: 1.2; |
| 162 | box-shadow: 0 0 0.88em rgba(0, 0, 0, 0.1); |
| 163 | border: 0.1875rem solid transparent; |
| 164 | transition: border-color 200ms ease-in-out; |
| 165 | } |
| 166 | |
| 167 | .checked-within { |
| 168 | border-color: var(--give-primary-color); |
| 169 | } |
| 170 | |
| 171 | .give-recurring-donors-choice, |
| 172 | .give-fee-message-label, |
| 173 | .give-currency-switcher-msg-wrap { |
| 174 | display: flex; |
| 175 | align-items: center; |
| 176 | column-gap: 0.75rem; |
| 177 | } |
| 178 | |
| 179 | .give_fee_mode_checkbox, |
| 180 | .give-recurring-period { |
| 181 | @include give-checkbox; |
| 182 | } |
| 183 | |
| 184 | .give-recurring-donors-choice-period { |
| 185 | appearance: none; |
| 186 | display: inline; |
| 187 | overflow: visible; // for firefox’ sake! |
| 188 | inline-size: calc(var(--selected-text-width) + 1.25em); |
| 189 | padding-block-start: 0; |
| 190 | padding-block-end: 0.0625em; |
| 191 | padding-inline: 0; |
| 192 | border-block-start-width: 0; |
| 193 | border-block-end-width: 0.0625em; |
| 194 | border-inline-width: 0; |
| 195 | border-style: solid; |
| 196 | border-color: #333; |
| 197 | border-radius: 0; |
| 198 | box-shadow: none; |
| 199 | background-image: url("data:image/svg+xml;utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 8'><path d='M5.6602 7.1953c.246.2461.6562.2461.9023 0l5.332-5.3047c.2461-.2734.2461-.6836 0-.9297L11.2656.332c-.2461-.246-.6562-.246-.9297 0L6.125 4.543 1.8867.332C1.6133.086 1.2031.086.957.332L.3281.961c-.246.246-.246.6562 0 .9296l5.332 5.3047Z' fill='%23a2a3a2'/></svg>"); |
| 200 | background-color: #fff; |
| 201 | background-repeat: no-repeat; |
| 202 | background-position: right top 50%; |
| 203 | background-size: 0.65em auto; |
| 204 | font-size: inherit; |
| 205 | font-family: inherit; |
| 206 | color: inherit; |
| 207 | transition: border-color 200ms ease-in-out; |
| 208 | |
| 209 | &:hover, |
| 210 | &:focus { |
| 211 | border-color: var(--give-primary-color); |
| 212 | } |
| 213 | } |
| 214 |