_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
4 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
_page.scss
4 years ago
_payment-details.scss
4 years ago
_personal-info.scss
4 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
4 years ago
variables.php
4 years ago
_radio.scss
53 lines
| 1 | @mixin give-radio { |
| 2 | --size: 1.25em; |
| 3 | |
| 4 | position: relative; |
| 5 | appearance: none; |
| 6 | margin: 0; |
| 7 | content: ''; |
| 8 | flex-grow: 0; |
| 9 | flex-shrink: 0; |
| 10 | font-size: 1em; |
| 11 | transition: box-shadow 200ms ease-in-out; |
| 12 | border-radius: 9999px; |
| 13 | background-color: #fff; |
| 14 | |
| 15 | &::before, |
| 16 | &::after { |
| 17 | content: ''; |
| 18 | display: block; |
| 19 | border-radius: inherit; |
| 20 | } |
| 21 | |
| 22 | &::before { |
| 23 | width: var(--size); |
| 24 | height: var(--size); |
| 25 | |
| 26 | box-shadow: inset 0 0.0625em 0.125em rgba(0, 0, 0, 0.25); |
| 27 | border: 0.0625em solid #b4b9be; |
| 28 | } |
| 29 | |
| 30 | &::after { |
| 31 | width: calc(var(--size) * 0.375); |
| 32 | height: calc(var(--size) * 0.375); |
| 33 | |
| 34 | position: absolute; |
| 35 | top: 50%; |
| 36 | left: calc(var(--size) / 2); |
| 37 | transform: translate(-50%, -50%); |
| 38 | |
| 39 | background-color: var(--give-primary-color); |
| 40 | |
| 41 | opacity: 0; |
| 42 | transition: opacity 200ms ease-in-out; |
| 43 | } |
| 44 | |
| 45 | &:checked::after { |
| 46 | opacity: 1; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | :is(.form-row, .give-tributes-dedicate-donation) input[type='radio']='radio']:not(.give-tribute-type-button) { |
| 51 | @include give-radio; |
| 52 | } |
| 53 |