style.scss
82 lines
| 1 | /* stylelint-disable selector-class-pattern */ |
| 2 | |
| 3 | .give-donor-dashboard-button { |
| 4 | margin: 20px 0; |
| 5 | font-family: Montserrat, Arial, Helvetica, sans-serif; |
| 6 | padding: 12px 20px; |
| 7 | font-size: 16px; |
| 8 | font-weight: 600; |
| 9 | border: 1px solid var(--give-donor-dashboard-accent-color); |
| 10 | border-radius: 3px; |
| 11 | display: inline-flex; |
| 12 | width: fit-content; |
| 13 | align-items: center; |
| 14 | box-shadow: 0 0 0 0 #7ec980, 0 0 0 0 #4fa651; |
| 15 | transition: box-shadow 0.1s ease, background-color ease-in 0.3s; |
| 16 | cursor: pointer; |
| 17 | |
| 18 | svg { |
| 19 | margin-left: 8px; |
| 20 | } |
| 21 | |
| 22 | &:focus { |
| 23 | box-shadow: 0 0 0 1px #7ec980, 0 0 0 2px #4fa651; |
| 24 | } |
| 25 | |
| 26 | &:disabled { |
| 27 | border: 1px solid #bbb; |
| 28 | background: #d0d0d0 !important; |
| 29 | } |
| 30 | |
| 31 | &.give-donor-dashboard-button--primary { |
| 32 | color: #fff !important; |
| 33 | position: relative; |
| 34 | background: none; |
| 35 | box-shadow: none; |
| 36 | justify-content: center; |
| 37 | overflow: hidden; |
| 38 | |
| 39 | &:before { |
| 40 | content: ''; |
| 41 | position: absolute; |
| 42 | top: 0; |
| 43 | right: 0; |
| 44 | bottom: 0; |
| 45 | left: 0; |
| 46 | background: var(--give-donor-dashboard-accent-color); |
| 47 | z-index: 0; |
| 48 | transition: filter 0.3s ease; |
| 49 | } |
| 50 | |
| 51 | &:hover:before { |
| 52 | filter: brightness(90%); // Darkens the background on hover |
| 53 | } |
| 54 | |
| 55 | &.disabled:before { |
| 56 | display: none; |
| 57 | } |
| 58 | |
| 59 | span { |
| 60 | position: relative; |
| 61 | z-index: 1; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | &.give-donor-dashboard-button--variant { |
| 66 | color: var(--give-donor-dashboard-accent-color) !important; |
| 67 | background: var(--givewp-shades-white); |
| 68 | box-shadow: none; |
| 69 | border: 1px solid var(--give-donor-dashboard-accent-color); |
| 70 | margin: 0; |
| 71 | justify-content: center; |
| 72 | |
| 73 | &:hover { |
| 74 | filter: brightness(90%); |
| 75 | } |
| 76 | |
| 77 | span { |
| 78 | color: inherit; |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 |