PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 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 All 257 releases
give / src / DonationForms / resources / styles / design-settings / text-field.scss

text-field.scss in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/DonationForms/resources/styles/design-settings/text-field.scss

110 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .givewp-design-settings--textField-style {
2 &__line {
3 .givewp-layouts-section {
4 input[type='text']='text'], input[type='email']='email'], select[name="honorific"]="honorific""], .givewp-fields-amount__input-container {
5 background: var(--givewp-grey-5, #FAFAFA);
6 color: var(--givewp-grey-400, #8C8C8C);
7 border-top: 0;
8 border-left: 0;
9 border-right: 0;
10 border-radius: 0;
11 }
12
13 .givewp-fields-text, .givewp-fields-select-honorific, .givewp-fields-email {
14
15 label {
16 position: relative;
17
18 > span {
19 visibility: hidden;
20 position: absolute;
21 top: .5rem;
22 left: var(--givewp-spacing-4);
23 color: var(--givewp-primary-color);
24 font-size: .75rem !important;
25 }
26
27 input {
28 padding-top: 2rem;
29 }
30 }
31
32 label:focus-within span {
33 visibility: visible;
34 }
35
36 label:focus-within input {
37 box-shadow: none;
38 border-bottom: 2px solid var(--givewp-primary-color);
39 }
40
41 label:focus-within input[type=text]=text]:not([name=amount],
42 [name=amount-custom])[aria-invalid=true]=true], input[type=text]=text]:not([name=amount],
43 [name=amount-custom]):invalid, input[type=password]=password][aria-invalid=true]=true],
44 input[type=password]=password]:invalid, input[type=email]=email][aria-invalid=true]=true],
45 input[type=email]=email]:invalid, textarea[aria-invalid=true]=true], textarea:invalid {
46 border-bottom: 2px solid var(--givewp-red-500);
47 }
48
49 .givewp-field-error-label {
50 > span {
51 color: var(--givewp-red-500);
52 }
53
54 &::after {
55 content: '';
56 position: absolute;
57 top: 0;
58 right: 0;
59 height: 3.5rem;
60 background-image: var(--icon-invalid);
61 background-size: auto 1.5rem;
62 padding-inline-start: var(--form-element-spacing-horizontal);
63 padding-inline-end: calc(var(--form-element-spacing-horizontal) + 1.5rem);
64 background-position: center right 0.75rem;
65 background-repeat: no-repeat;
66 border: none;
67 }
68 }
69 }
70 }
71 }
72
73 &__box {
74 .givewp-layouts-section {
75 input[type='text']='text'], input[type='email']='email'],
76
77 , select [ name = "honorific" ] = "honorific"" ] {
78 position: relative;
79 }
80
81 .givewp-fields-text, .givewp-fields-select-honorific, .givewp-fields-email {
82 label {
83 position: relative;
84
85 > span {
86 visibility: hidden;
87 position: absolute;
88 top: -.7rem;
89 left: .5rem;
90 width: fit-content;
91 font-size: 0.875rem !important;
92 padding: 0 .25rem;
93 background: var(--givewp-shades-white);
94 color: var(--givewp-primary-color, #0B72D9);
95 z-index: 999;
96 }
97 }
98
99 label:focus-within span {
100 visibility: visible;
101 }
102 }
103 }
104 }
105
106 #amount-custom {
107 border: var(--givewp-red-500);
108 }
109 }
110