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-causes.php

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

475 lines 18.4 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 Causes 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'] ) : '#192E45'; // phpcs:ignore
22 $secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#215DB7'; // phpcs:ignore
23 $tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#48A9F5'; // phpcs:ignore
24 $button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#48A9F5'; // phpcs:ignore
25 $mobile_width = isset( $_GET['mw'] ) ? intval( $_GET['mw'] ) : 800; // phpcs:ignore
26
27 $charitable_slug = 'medical-causes';
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
34 :root {
35 --charitable_campaign_theme_primary: <?php echo $primary; // phpcs:ignore ?>;
36 --charitable_campaign_theme_secondary: <?php echo $secondary; // phpcs:ignore ?>;
37 --charitable_campaign_theme_tertiary: <?php echo $tertiary; // phpcs:ignore ?>;
38 --charitable_campaign_theme_button: <?php echo $button; // phpcs:ignore ?>;
39 }
40
41 /* this narrows things down a little to the preview area header/tabs */
42
43
44 /* headings, headlines */
45
46
47 <?php echo $charitable_wrapper; // phpcs:ignore ?> div.charitable-campaign-row h5.charitable-field-template-headline {
48 color: white;
49 font-weight: 400 !important;
50 font-size: 64px !important;
51 line-height: 64px !important;
52 margin-top: 0px;
53 margin-bottom: 20px;
54 margin-left: -1px;
55 }
56 <?php echo $charitable_wrapper; // phpcs:ignore ?> div.charitable-campaign-row .tab-content h5.charitable-field-template-headline {
57 color: black !important;
58 font-weight: 500 !important;
59 text-transform: inherit;
60 font-size: 32px !important;
61 line-height: 38px !important;
62 margin-top: 20px;
63 margin-bottom: 20px;
64 }
65 <?php echo $charitable_wrapper; // phpcs:ignore ?> #charitable-template-row-0 h1.charitable-campaign-title {
66 color: white;
67 }
68
69
70 /* row specifics */
71
72 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row {
73 background-color: <?php echo $secondary; // phpcs:ignore ?>;
74 padding: 50px;
75 color: white;
76 padding: 15px;
77 }
78 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row > * {
79 /* color: <?php echo $secondary; // phpcs:ignore ?>; */
80 font-size: 14px;
81 line-height: 24px;
82 }
83 <?php echo $charitable_wrapper; // phpcs:ignore ?> div.charitable-campaign-row.no-padding,
84 <?php echo $charitable_wrapper; // phpcs:ignore ?> div.charitable-campaign-row.no-padding .charitable-campaign-column {
85 padding: 0 !important;
86 }
87
88 /* column specifics */
89
90 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) {
91 flex: 2;
92 border: 0;
93 /* padding-top: 50px; */
94 }
95 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(odd) {
96 border: 0;
97 flex: 1 1 26%;
98 padding-top: 15px;
99 padding-bottom: 15px;
100 }
101
102 /* section specifics */
103
104 /* header */
105
106 /* field: campaign title */
107
108 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-campaign-title h1 {
109 margin: 5px 0 5px 0;
110 font-size: 55px !important;
111 line-height: 58px !important;
112 font-weight: 100 !important;
113 word-wrap: anywhere;
114 }
115
116 /* field: campaign description */
117 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text {
118 padding: 0;
119 color: #D8DAD7;
120 }
121 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text,
122 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text p {
123 font-size: 24px;
124 line-height: 38px;
125 font-weight: 300;
126 }
127
128 /* field: button */
129
130 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-donate-button button.button {
131 background-color: <?php echo $button; // phpcs:ignore ?> !important;
132 border-color: <?php echo $button; // phpcs:ignore ?> !important;
133 color: <?php echo charitable_get_constracting_text_color($button); // phpcs:ignore ?>;
134 text-transform: uppercase;
135 border-radius: 0px;
136 margin-top: 0;
137 margin-bottom: 0;
138 font-weight: 400;
139 min-height: 50px;
140 height: 50px;
141 font-size: 16px;
142 line-height: 15px;
143 }
144
145 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button a.donate-button {
146 border-radius: 0px;
147 text-transform: uppercase;
148 border-radius: 0px;
149 margin-top: 0;
150 margin-bottom: 0;
151 font-weight: 400;
152 min-height: 50px;
153 height: 50px;
154 font-size: 16px;
155 line-height: 15px;
156 background-color: <?php echo $button; // phpcs:ignore ?> !important;
157 border-color: <?php echo $button; // phpcs:ignore ?> !important;
158 display: flex; /* Changed from block to flex */
159 align-items: center; /* Vertically centers the text */
160 justify-content: center; /* Optionally centers the text horizontally too */
161 text-align: center !important;
162 text-decoration: none !important;
163 transition: filter 0.3s; /* Smooth transition */
164 }
165
166
167 /* field: photo */
168
169 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-photo img {
170 width: 100%;
171 border: 5px solid <?php echo $primary; // phpcs:ignore ?>;
172 }
173
174 /* field: text */
175
176 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="fields"] .charitable-campaign-field-text {
177 color: white;
178 }
179
180 /* field: summary */
181
182 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary {
183 padding-left: 0;
184 padding-right: 0;
185 }
186 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary div {
187 font-weight: 400 !important;
188 font-size: 14px !important;
189 line-height: 16px !important;
190 }
191 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary div span {
192 font-weight: 100 !important;
193 font-size: 32px !important;
194 line-height: 38px !important;
195 }
196 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item {
197 border: 0;
198 margin-top: 5px;
199 margin-bottom: 5px;
200 text-transform: capitalize;
201 }
202 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_percent_raised {
203 width: 34%;
204 }
205 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_amount_donated {
206 width: 43%;
207 }
208 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_number_of_donors {
209 width: 23%;
210 }
211 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_time_remaining {
212 width: 100%;
213 }
214
215 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="fields"] .charitable-field-template-campaign-summary div span,
216 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="fields"] .charitable-field-template-campaign-summary .campaign-summary-item {
217 color: white;
218 }
219
220
221
222 /* field: progress bar */
223
224 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-percent-raised {
225 color: #FFFFFF;
226 font-size: 21px;
227 line-height: 21px;
228 font-weight: 100;
229 padding-left: 0;
230 }
231 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-goal {
232 color: white;
233 font-weight: 100;
234 font-size: 21px;
235 line-height: 21px;
236 }
237 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress {
238 border: 0;
239 padding: 0;
240 background-color: #E0E0E0;
241 border-radius: 20px;
242 margin-top: 15px;
243 }
244 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar {
245 background-color: <?php echo $tertiary; // phpcs:ignore ?>;
246 height: 13px !important;
247 border-radius: 20px;
248 text-align: right;
249 opacity: 1.0;
250 }
251 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar span {
252 display: none;
253 }
254
255 /* field: donate amount */
256
257 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount label,
258 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount input.custom-donation-input[type="text"] {
259 color: <?php echo $secondary; // phpcs:ignore ?>;
260 border: 1px solid <?php echo $secondary; // phpcs:ignore ?> !important;
261 }
262 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected {
263 background-color: <?php echo $primary; // phpcs:ignore ?>;
264 }
265 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected span.amount {
266 color: <?php echo $tertiary; // phpcs:ignore ?>;
267 }
268
269 /* field: social linking */
270
271 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-linking {
272 display: table;
273 }
274
275 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-linking .charitable-field-preview-social-linking-headline-container {
276 display: block;
277 float: left;
278 padding: 0;
279 }
280 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-linking .charitable-field-row {
281 display: block;
282 float: left;
283 width: auto;
284 margin: 0 0 0 0;
285 }
286 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-linking h5.charitable-field-template-headline {
287 font-size: 14px;
288 line-height: 16px;
289 color: <?php echo $secondary; // phpcs:ignore ?>;
290 font-weight: 300;
291 margin: 0 15px 0 0;
292 padding: 5px 5px 5px 0;
293 }
294 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-linking .charitable-placeholder {
295 padding: 10px;
296 }
297
298 /* field: social sharing */
299
300 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-sharing {
301 display: table;
302 }
303
304 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-sharing .charitable-field-preview-social-sharing-headline-container {
305 display: block;
306 float: left;
307 padding: 0;
308 }
309 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-sharing .charitable-field-row {
310 display: block;
311 float: left;
312 width: auto;
313 margin: 0 0 0 0;
314 }
315 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-sharing h5.charitable-field-template-headline {
316 font-size: 14px;
317 line-height: 16px;
318 color: <?php echo $secondary; // phpcs:ignore ?>;
319 font-weight: 300;
320 margin: 0 15px 0 0;
321 padding: 5px 5px 5px 0;
322 }
323 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-preview-social-sharing .charitable-placeholder {
324 padding: 10px;
325 }
326
327 /* tabs: container */
328
329 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article {
330 background-color: white;
331 padding-top: 20px;
332 padding-bottom: 20px;
333 }
334 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content > ul li {
335 padding-top: 20px;
336 padding-bottom: 25px;
337 }
338
339 /* tabs: tab nav */
340
341 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav {
342 width: auto;
343 }
344 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav > ul {
345 margin-top: 30px !important;
346 }
347 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav > ul,
348 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content > ul {
349 margin-left: 30px !important;
350 margin-right: 30px !important;
351 }
352 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li {
353 border: 1px solid <?php echo $secondary; // phpcs:ignore ?>;
354 background-color: transparent;
355 margin: 0 15px 0 0;
356 padding: 0;
357 }
358 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li a {
359 display: block;
360 font-weight: 500 !important;
361 font-size: 14px !important;
362 line-height: 15px !important;
363 text-transform: none;
364 }
365 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active {
366 background-color: <?php echo $secondary; // phpcs:ignore ?>;
367 }
368
369
370 /* tabs: style */
371
372 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li {
373 background-color: transparent;
374 }
375 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li a {
376 color: black;
377 }
378 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover {
379 background-color: <?php echo $secondary; // phpcs:ignore ?>;
380 }
381 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover a {
382 color: white;
383 }
384 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active {
385 background-color: <?php echo $secondary; // phpcs:ignore ?>;
386 }
387 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active a {
388 color: white;
389 }
390
391 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li {
392 background-color: transparent;
393 }
394 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li a {
395 color: black;
396 }
397 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover {
398 background-color: <?php echo $primary; // phpcs:ignore ?>;
399 }
400 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover a {
401 color: white;
402 }
403 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active {
404 background-color: <?php echo $primary; // phpcs:ignore ?>;
405 }
406 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active a {
407 color: white;
408 }
409
410 /* tabs: sized */
411
412 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li {
413
414 }
415 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li a {
416
417 }
418 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li {
419
420 }
421 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li a {
422
423 }
424 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li {
425
426 }
427 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li a {
428
429 }
430
431 /* field: donor wall */
432
433
434 /* field: organizer */
435
436
437 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container {
438 container-type: inline-size;
439 container-name: campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area;
440 }
441 @container campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area (max-width: 700px) {
442 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:first-of-type {
443 padding: 0 !important;
444 max-width: 100%;
445 }
446 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row {
447 padding: 10px 30px;
448 }
449 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article {
450 padding-top: 0;
451 padding-bottom: 0;
452 }
453 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav {
454 margin-top: 0px;
455 margin-bottom: 0px;
456 }
457 <?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article .tab-content > ul li {
458 margin-top: 0;
459 padding-top: 0 !important;
460 }
461 <?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .charitable-tabs {
462 margin-top: 0px;
463 }
464 .charitable-campaign-wrap .charitable-campaign-column,
465 .charitable-campaign-wrap .charitable-campaign-column:nth-child(even),
466 .charitable-campaign-wrap .charitable-campaign-column:nth-child(odd) {
467 flex: 0 0 100% !important;
468 padding-top: 0;
469 padding-bottom: 0;
470 padding-left: 0;
471 padding-right: 0;
472 }
473 }
474
475 .charitable-preview.charitable-builder-template-<?php echo $charitable_slug; // phpcs:ignore ?> {