PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.15.5
GiveWP – Donation Plugin and Fundraising Platform v4.15.5
4.18.0.1 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 All 258 releases
give / src / Views / Form / Templates / Classic / resources / css / _stripe-checkout-modal.scss

_stripe-checkout-modal.scss in GiveWP – Donation Plugin and Fundraising Platform 4.15.5, at src/Views/Form/Templates/Classic/resources/css/_stripe-checkout-modal.scss

126 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'sass:string';
2
3 .give-stripe-checkout-modal {
4 display: none;
5
6 &.give-stripe-checkout-show-modal {
7 position: fixed;
8 inset-block-start: 0;
9 inset-inline-start: 0;
10 // High enough to be shown above everything. Feel free to increase if necessary.
11 z-index: 10;
12 block-size: 100%;
13 min-block-size: max-content;
14 inline-size: 100%;
15 overflow: auto;
16 overscroll-behavior: contain;
17 display: flex;
18 align-items: safe center; // Safe alignment in Firefox
19 justify-content: center;
20 background-color: rgb(0 0 0 / 0.5);
21
22 // For the future...
23 body:has(&) {
24 overflow: hidden;
25 }
26 }
27
28 &-content {
29 block-size: max-content;
30 inline-size: min(100%, 32rem);
31 margin: auto; // Fallback for `align-items: safe center` on parent
32 }
33
34 &-container {
35 background-color: #fff;
36 font-size: 1rem;
37
38 @media screen and (min-width: $desktopMinWidth) {
39 border-radius: 0.5rem;
40 }
41
42 & > :first-child {
43 border-start-start-radius: inherit;
44 border-start-end-radius: inherit;
45 }
46
47 & > :last-child {
48 border-end-start-radius: inherit;
49 border-end-end-radius: inherit;
50 }
51
52 & > * {
53 padding: 1rem;
54 }
55 }
56
57 &-header {
58 position: relative;
59 --tint-color: rgba(var(--give-header-background-color--for-rgb), 0.75);
60 --tint: linear-gradient(to right, var(--tint-color), var(--tint-color));
61 background-color: rgb(var(--give-header-background-color--for-rgb)) !important;
62 /* translucent tint gradient over image */
63 background-image: var(--tint, linear-gradient(transparent, transparent)), var(--give-header-background-image);
64 background-size: cover;
65 background-position: center;
66 color: #fff;
67 text-shadow: 0 0.07em 0.14em rgb(0 0 0 / 0.15);
68 text-align: center;
69 font-family: var(--give-font);
70 }
71
72 &-close {
73 position: absolute;
74 inset-block-start: 0;
75 inset-inline-end: 0;
76 margin: 1rem;
77 border: 0;
78 border-radius: 9999px;
79 background-color: transparent;
80 opacity: 0.75;
81 font-size: 1.2em;
82 transition: opacity 0.2s ease-in-out;
83
84 &:hover {
85 opacity: 1;
86 }
87
88 &:focus {
89 opacity: 1;
90 outline: 0.125em solid fff;
91 }
92
93 &::before {
94 content: 'Close';
95 @include visually-hidden;
96 }
97
98 &::after {
99 content: '\f057';
100 color: #fff;
101 font-family: 'Font Awesome 5 Free';
102 font-weight: 900;
103 block-size: 1em;
104 aspect-ratio: 1;
105 @supports not (aspect-ratio: 1) {
106 inline-size: 1em;
107 }
108 }
109
110 & > svg {
111 display: none;
112 }
113 }
114
115 &-body {
116 display: grid;
117 grid-auto-flow: row;
118 grid-template-columns: repeat(12, 1fr);
119 gap: 1rem;
120 }
121
122 &-sequoia-donate-button {
123 inline-size: 100%;
124 }
125 }
126