style.scss
99 lines
| 1 | /* stylelint-disable selector-class-pattern */ |
| 2 | |
| 3 | .give-donor-dashboard-radio-control { |
| 4 | margin: 20px 0 0; |
| 5 | outline: none; |
| 6 | border: none; |
| 7 | padding-left: 0; |
| 8 | |
| 9 | .give-donor-dashboard-radio-control__legend { |
| 10 | font-family: Montserrat, Arial, Helvetica, sans-serif; |
| 11 | font-weight: 500; |
| 12 | font-size: 14px; |
| 13 | line-height: 1; |
| 14 | color: #555; |
| 15 | margin-bottom: 10px; |
| 16 | } |
| 17 | |
| 18 | .give-donor-dashboard-radio-control__description { |
| 19 | font-family: Montserrat, Arial, Helvetica, sans-serif; |
| 20 | font-weight: 500; |
| 21 | font-style: italic; |
| 22 | font-size: 13px; |
| 23 | line-height: 1.4; |
| 24 | color: #767676; |
| 25 | margin-bottom: 12px; |
| 26 | } |
| 27 | |
| 28 | .give-donor-dashboard-radio-control__option { |
| 29 | margin: 10px 0; |
| 30 | |
| 31 | &:first-of-type { |
| 32 | margin-top: 20px; |
| 33 | } |
| 34 | |
| 35 | &:last-of-type { |
| 36 | margin-bottom: 20px; |
| 37 | } |
| 38 | |
| 39 | label { |
| 40 | font-family: Montserrat, Arial, Helvetica, sans-serif; |
| 41 | font-weight: 500; |
| 42 | font-size: 14px; |
| 43 | line-height: 1.4; |
| 44 | color: #555; |
| 45 | position: relative; |
| 46 | |
| 47 | padding: 0 0 0 26px; |
| 48 | width: 100%; |
| 49 | margin-left: 0; |
| 50 | display: inline-block; |
| 51 | |
| 52 | &::before { |
| 53 | content: ' '; |
| 54 | position: absolute; |
| 55 | top: calc(50% - 8px); |
| 56 | left: 0; |
| 57 | width: 16px; |
| 58 | height: 16px; |
| 59 | border-radius: 50%; |
| 60 | background: #fff; |
| 61 | border: 1px solid #b4b9be; |
| 62 | box-shadow: 0 0 0 0 var(--give-donor-dashboard-accent-color), inset 0 1px 2px rgba(0, 0, 0, 0.25); |
| 63 | transition: box-shadow 0.1s ease; |
| 64 | } |
| 65 | |
| 66 | &::after { |
| 67 | transform: scale3d(0, 0, 0); |
| 68 | transition: transform 0.2s ease; |
| 69 | border-radius: 50%; |
| 70 | width: 6px; |
| 71 | height: 6px; |
| 72 | position: absolute; |
| 73 | top: calc(50% - 2px); |
| 74 | left: 6px; |
| 75 | content: ' '; |
| 76 | display: block; |
| 77 | background: var(--give-donor-dashboard-accent-color); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | input[type='radio']='radio'] { |
| 82 | opacity: 0 !important; |
| 83 | position: absolute !important; |
| 84 | |
| 85 | &:focus { |
| 86 | + label::before { |
| 87 | box-shadow: 0 0 0 1px var(--give-donor-dashboard-accent-color), inset 0 1px 2px rgba(0, 0, 0, 0.25); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | &:checked { |
| 92 | + label::after { |
| 93 | transform: scale3d(1, 1, 1); |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 |