PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.1
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
give / src / DonorDashboards / resources / js / app / components / button / style.scss

style.scss in GiveWP – Donation Plugin and Fundraising Platform 4.16.1, at src/DonorDashboards/resources/js/app/components/button/style.scss

82 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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