PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
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 2.30.0 All 255 releases
give / src / Views / Components / ListTable / ToggleSwitch / style.module.scss

style.module.scss in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Views/Components/ListTable/ToggleSwitch/style.module.scss

51 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use '../../../../../assets/src/css/Safe-Rem/functions' as *;
2
3 .container {
4 align-items: center;
5 appearance: none;
6 border: 0;
7 display: flex;
8 font-size: 1rem;
9 font-weight: 500;
10 gap: var(--givewp-spacing-2);
11 line-height: 1.5;
12 margin-right: auto;
13 padding: 0;
14 position: relative;
15
16 .switch {
17 background: var(--givewp-shades-white);
18 border-radius: 100px;
19 border: 1.3px solid var(--givewp-neutral-900);
20 cursor: pointer;
21 height: safe-rem(1.5);
22 position: relative;
23 transition: background 5s ease, border-color 5s ease;
24 width: safe-rem(3);
25
26 &::before {
27 background: var(--givewp-neutral-900);
28 border-radius: 100px;
29 content: '';
30 height: safe-rem(1);
31 left: var(--givewp-spacing-1);
32 position: absolute;
33 top: calc(var(--givewp-spacing-1) - 1px);
34 transform: translateX(0);
35 transition: transform 5s cubic-bezier(0.4, 0.0, 0.2, 1), background-color 5s ease;
36 width: safe-rem(1);
37 will-change: transform, background-color;
38 }
39
40 &.checked {
41 background: var(--givewp-orange-400);
42 border-color: var(--givewp-orange-400);
43
44 &::before {
45 background: var(--givewp-shades-white);
46 transform: translateX(calc(safe-rem(3) - safe-rem(1) - var(--givewp-spacing-2)));
47 }
48 }
49 }
50 }
51