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 / Campaigns / Blocks / shared / components / ModalForm / styles.scss

styles.scss in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Campaigns/Blocks/shared/components/ModalForm/styles.scss

105 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .givewp-donation-form-modal {
2 outline: none;
3 width: 100%;
4 padding: 1rem;
5 overflow-y: scroll;
6
7 &[data-entering="true"]="true""] {
8 animation: modal-fade 300ms, modal-zoom 600ms;
9 }
10
11 @keyframes modal-fade {
12 from {
13 opacity: 0;
14 }
15
16 to {
17 opacity: 1;
18 }
19 }
20
21 @keyframes modal-zoom {
22 from {
23 transform: scale(0.8);
24 }
25
26 to {
27 transform: scale(1);
28 }
29 }
30
31 &__overlay {
32 position: fixed;
33 top: 0;
34 left: 0;
35 width: 100vw;
36 height: 100dvh;
37 background: rgba(0 0 0 / .7);
38 display: flex;
39 flex-direction: column;
40 align-items: center;
41 justify-content: center;
42 z-index: 100;
43
44 &[data-loading="true"]="true""] {
45 display: none;
46 }
47
48 &[data-entering="true"]="true""] {
49 animation: modal-fade 300ms;
50 }
51
52 &[data-exiting="true"]="true""] {
53 animation: modal-fade 150ms reverse ease-in;
54 }
55 }
56
57 &__open__spinner {
58 position: absolute;
59 top: 50%;
60 left: 50%;
61 transform: translate(-50%, -50%);
62 z-index: 100;
63 line-height: 1;
64 }
65
66 &__open {
67 position: relative;
68 }
69
70 &__close {
71 display: flex;
72 position: fixed;
73 top: 25px;
74 right: 25px;
75 padding: .75rem;
76 width: fit-content;
77 background: #e7e8ed;
78 cursor: pointer;
79 border: 1px solid transparent;
80 border-radius: 50%;
81 z-index: 999;
82 transition: 0.2s;
83
84 svg {
85 height: 1rem;
86 width: 1rem;
87 }
88
89 &:hover, &:focus, &:active {
90 border: 1px solid darken(#e7e8ed, 10%);
91 background-color: darken(#e7e8ed, 10%);
92 }
93 }
94 }
95
96 // Account for admin bar
97 .admin-bar {
98 .givewp-donation-form-modal {
99 margin-top: 32px;
100 &__close {
101 top: calc(32px + 25px);
102 }
103 }
104 }
105