PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.11
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.11
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / includes / css-templates / frontend / medical-bills.php

medical-bills.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.11, at includes/css-templates/frontend/medical-bills.php

336 lines 13.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7
8 /**
9 * Display custom CSS for Medical Bills campaign template.
10 *
11 * @package Charitable
12 * @author WP Charitable LLC
13 * @copyright Copyright (c) 2024, WP Charitable LLC
14 * @license GPL-2.0+
15 * @since 1.0.0
16 * @version 1.8.8.6
17 */
18
19 header( 'Content-type: text/css; charset: UTF-8' );
20
21 $primary = isset( $_GET['p'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['p'] ) : '#5C8AF3'; // phpcs:ignore
22 $secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#21458F'; // phpcs:ignore
23 $tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#F5F0EE'; // phpcs:ignore
24 $button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#5C8AF3'; // phpcs:ignore
25 $mobile_width = isset( $_GET['mw'] ) ? intval( $_GET['mw'] ) : 800; // phpcs:ignore
26
27 $charitable_slug = 'medical-bills';
28 $charitable_wrapper = '.charitable-campaign-wrap.template-' . $charitable_slug;
29 $charitable_preview_wrapper = '.charitable-campaign-wrap.is-charitable-preview.template-' . $charitable_slug;
30
31 require_once '../../admin/campaign-builder/templates/functions-campaign-templates.php';
32
33 // phpcs:disable
34 ?>
35
36 :root {
37 --charitable_campaign_theme_primary: <?php echo $primary; // phpcs:ignore ?>;
38 --charitable_campaign_theme_secondary: <?php echo $secondary; // phpcs:ignore ?>;
39 --charitable_campaign_theme_tertiary: <?php echo $tertiary; // phpcs:ignore ?>;
40 --charitable_campaign_theme_button: <?php echo $button; // phpcs:ignore ?>;
41 }
42
43 /* this narrows things down a little to the preview area header/tabs */
44
45 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row {
46 color: #76838B;
47 }
48 <?php echo $charitable_wrapper; // phpcs:ignore ?> article {
49 color: #76838B;
50 margin-top: 0;
51 }
52
53
54
55 /* row specifics */
56
57 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row {
58 padding: 15px;
59 }
60 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row > * {
61 color: <?php echo $secondary; // phpcs:ignore ?>;
62 font-size: 14px;
63 line-height: 24px;
64 }
65 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row h5 {
66 color: <?php echo $primary; // phpcs:ignore ?>;
67 margin: 0 0 10px 0;
68 padding: 0;
69 font-size: 16px;
70 line-height: 16px;
71 font-weight: 600;
72 }
73 <?php echo $charitable_wrapper; // phpcs:ignore ?> #charitable-template-row-1 {
74 /* background-color: <?php echo $tertiary; // phpcs:ignore ?>; */
75 }
76
77 /* column specifics */
78
79 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) {
80 flex: 1;
81 padding: 0 25px 0 25px;
82 max-width: calc(100% - 50px);
83 }
84 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(odd) {
85 flex: 1;
86 padding: 0;
87 }
88
89 /* section specifics */
90
91 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) .charitable-field-section {
92 background-color: white;
93 padding: 25px;
94 }
95 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(odd) .charitable-field-section {
96
97 }
98
99 /* header */
100
101 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row-type-header h1,
102 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row-type-header .charitable-campaign-field_campaign-title h1 {
103 font-size: 40px !important;
104 line-height: 70px !important;
105 font-weight: 600 !important;
106 color: <?php echo $secondary; // phpcs:ignore ?> !important;
107 word-wrap: anywhere;
108 }
109
110 /* field: campaign title */
111
112 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-campaign-title h1 {
113 margin: 5px 0 5px 0;
114 color: <?php echo $secondary; // phpcs:ignore ?> !important;
115 font-size: 68px !important;
116 line-height: 72px !important;
117 font-weight: 500 !important;
118 word-wrap: anywhere;
119 }
120
121 /* field: button */
122
123 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button button.button,
124 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button a.donate-button {
125 border-radius: 35px;
126 background-color: <?php echo $button; // phpcs:ignore ?> !important;
127 border-color: <?php echo $button; // phpcs:ignore ?> !important;
128 color: <?php echo charitable_get_constracting_text_color($button); // phpcs:ignore ?>;
129 display: flex; /* Changed from block to flex */
130 align-items: center; /* Vertically centers the text */
131 justify-content: center; /* Optionally centers the text horizontally too */
132 text-align: center !important;
133 text-decoration: none !important;
134 transition: filter 0.3s; /* Smooth transition */
135 }
136
137
138 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-percent-raised {
139 color: #202020;
140 font-weight: 500;
141 font-size: 18px;
142 line-height: 21px;
143 }
144 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-goal {
145 color: <?php echo $primary; // phpcs:ignore ?>;
146 font-weight: 600;
147 font-size: 24px;
148 line-height: 28px;
149 }
150 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress {
151 border: 0;
152 padding: 0;
153 background-color: #E0E0E0;
154 border-radius: 5px;
155 margin-top: 15px;
156 }
157 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar {
158 background-color: <?php echo $primary; // phpcs:ignore ?>;
159 height: 8px !important;
160 border-radius: 5px;
161 text-align: right;
162 opacity: 1.0;
163 }
164 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar span {
165 }
166
167 /* field: campaign summary */
168
169 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary {
170
171 }
172 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary div {
173 color: #92918E;
174
175 }
176 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary div span {
177 color: <?php echo $secondary; // phpcs:ignore ?> !important;
178
179 }
180 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary .campaign-summary-item {
181
182 }
183
184 /* field: donate amount */
185
186 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount label,
187 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount input.custom-donation-input[type="text"] {
188 color: <?php echo $secondary; // phpcs:ignore ?>;
189 border: 1px solid <?php echo $secondary; // phpcs:ignore ?> !important;
190 }
191 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount ul li.suggested-donation-amount.selected {
192 background-color: <?php echo $primary; // phpcs:ignore ?>;
193 }
194 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount ul li.suggested-donation-amount.selected span.amount {
195 color: <?php echo $tertiary; // phpcs:ignore ?>;
196 }
197
198 /* tabs: tab nav */
199
200 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article nav.charitable-campaign-nav {
201 background-color: #F7F7F7;
202 margin: 0;
203 }
204 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article nav.charitable-campaign-nav li {
205 border-top: 0;
206 border-right: 0
207 border-bottom: 0;
208 border-left: 0;
209 margin: 0 5px 0 0;
210 padding: 0;
211 }
212 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article nav.charitable-campaign-nav li a {
213 display: block;
214 font-weight: 500 !important;
215 font-size: 17px !important;
216 line-height: 17px !important;
217 text-transform: none;
218 }
219 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active {
220 border: 0;
221 }
222 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active a {
223 }
224
225 /* tabs: style */
226
227 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li {
228 background-color: transparent;
229 }
230 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li a {
231 color: <?php echo $secondary; // phpcs:ignore ?>;
232 }
233 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover {
234 background-color: <?php echo $button; // phpcs:ignore ?>;
235 }
236 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover a {
237 color: white;
238 }
239 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active {
240 background-color: <?php echo $button; // phpcs:ignore ?>;
241 }
242 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active a {
243 color: white;
244 }
245
246 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li {
247 background-color: transparent;
248 }
249 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li a {
250 color: <?php echo $button; // phpcs:ignore ?>;
251 }
252 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover {
253 background-color: <?php echo $button; // phpcs:ignore ?>;
254 }
255 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover a {
256 color: white;
257 }
258 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active {
259 background-color: <?php echo $button; // phpcs:ignore ?>;
260 }
261 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active a {
262 color: white;
263 }
264
265 /* tabs: sized */
266
267 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li {
268
269 }
270 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li a {
271
272 }
273 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li {
274
275 }
276 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li a {
277
278 }
279 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li {
280
281 }
282 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li a {
283
284 }
285
286 /* field: donor wall */
287
288
289 /* field: organizer */
290
291 /* field: social linking */
292 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-placeholder {
293 padding: 0px;
294 }
295 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row.charitable-field-row-social-linking {
296 width: auto;
297 }
298
299 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row.charitable-field-row-social-sharing {
300 width: auto;
301 }
302
303
304 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container {
305 container-type: inline-size;
306 container-name: campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area;
307 }
308 @container campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area (max-width: 700px) {
309 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) .charitable-field-section {
310 padding: 0;
311 }
312
313 .charitable-campaign-wrap .charitable-campaign-column,
314 .charitable-campaign-wrap .charitable-campaign-column:nth-child(even),
315 .charitable-campaign-wrap .charitable-campaign-column:nth-child(odd) {
316 flex: 0 0 100% !important;
317 padding-top: 0;
318 padding-bottom: 0;
319 padding-left: 0;
320 padding-right: 0;
321 }
322 }
323
324 @container campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area (max-width: 1000px) {
325
326 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row.charitable-field-row-social-linking {
327 width: 100%;
328 }
329 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-sharing .charitable-field-row {
330 width: 100%;
331 }
332
333
334 }
335
336 // phpcs:enable