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 / simple-1-col.php

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

770 lines 24.5 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 Club Organization 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 */
17
18 header( 'Content-type: text/css; charset: UTF-8' );
19
20 require_once '../../admin/campaign-builder/templates/functions-campaign-templates.php';
21
22 if ( ! function_exists( 'charitable_sanitize_hex_color' ) ) {
23 /**
24 * Sanitize a hex color.
25 *
26 * @param string $color The color to sanitize.
27 * @return string|null The sanitized color or null if the color is invalid.
28 */
29 function charitable_sanitize_hex_color( $color ) {
30 // Ensure the value is a string.
31 $color = trim( $color );
32
33 // Check if it's a valid 6-character hex color including the hash.
34 if ( preg_match( '/^#[a-fA-F0-9]{6}$/', $color ) ) {
35 return $color;
36 }
37
38 // Optionally return a default color or handle errors.
39 return null; // Or return default color.
40 }
41 }
42
43 if ( ! function_exists( 'charitable_esc_attr_php' ) ) {
44 /**
45 * Escapes a string for use in PHP.
46 *
47 * @param string $text The text to escape.
48 * @return string The escaped text.
49 */
50 function charitable_esc_attr_php( $text ) {
51 return htmlspecialchars( $text, ENT_QUOTES, 'UTF-8' );
52 }
53 }
54
55 // @codingStandardsIgnoreStart
56
57 $primary = isset( $_GET['p'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['p'] ) : '#F58A07'; // phpcs:ignore
58 $secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#1D3444'; // phpcs:ignore
59 $tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#5B5B5B'; // phpcs:ignore
60 $button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#F58A07'; // phpcs:ignore
61 $mobile_width = isset( $_GET['mw'] ) ? intval( $_GET['mw'] ) : 800; // phpcs:ignore
62
63 $slug = 'simple-1-col';
64 $wrapper = '.charitable-campaign-wrap.template-' . $slug;
65 $preview_wrapper = '.charitable-campaign-wrap.is-charitable-preview.template-' . $slug;
66
67 /* what should change from admin vs. frontend */
68
69 // .charitable-field ----------> .charitable-campaign-field
70 // .charitable-preview-* ----------> .charitable-campaign-*
71
72 ?>
73
74 .charitable-preview.charitable-builder-template-<?php echo $slug; // phpcs:ignore ?> { /* everything wraps in this */
75
76 font-family: -apple-system, BlinkMacSystemFont, sans-serif;
77
78 }
79
80 /* this narrows things down a little to the preview area header/tabs */
81
82 <?php echo $wrapper; // phpcs:ignore ?> {
83 /* field items in preview area */
84 font-family: -apple-system, BlinkMacSystemFont, sans-serif;
85 }
86
87 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field {
88 /* display: flex; */
89 display: table;
90 }
91
92 /* wide spread changes in header vs tabs */
93
94 <?php echo $wrapper; // phpcs:ignore ?> > header {
95 margin-bottom: 40px;
96 font-size: 40px;
97 line-height: 70px;
98 font-weight: 600;
99 color: <?php echo $secondary; // phpcs:ignore ?>;
100 }
101 <?php echo $wrapper; // phpcs:ignore ?> h1:empty,
102 <?php echo $wrapper; // phpcs:ignore ?> h2:empty,
103 <?php echo $wrapper; // phpcs:ignore ?> h3:empty,
104 <?php echo $wrapper; // phpcs:ignore ?> h4:empty,
105 <?php echo $wrapper; // phpcs:ignore ?> h5:empty,
106 <?php echo $wrapper; // phpcs:ignore ?> h6:empty {
107 display: none;
108 }
109 <?php echo $wrapper; // phpcs:ignore ?> header h1,
110 <?php echo $wrapper; // phpcs:ignore ?> header h2,
111 <?php echo $wrapper; // phpcs:ignore ?> header h3,
112 <?php echo $wrapper; // phpcs:ignore ?> header h4,
113 <?php echo $wrapper; // phpcs:ignore ?> header h5,
114 <?php echo $wrapper; // phpcs:ignore ?> header h6 {
115
116 }
117 <?php echo $wrapper; // phpcs:ignore ?> .tab-content h1,
118 <?php echo $wrapper; // phpcs:ignore ?> .tab-content h2,
119 <?php echo $wrapper; // phpcs:ignore ?> .tab-content h3,
120 <?php echo $wrapper; // phpcs:ignore ?> .tab-content h4,
121 <?php echo $wrapper; // phpcs:ignore ?> .tab-content h5,
122 <?php echo $wrapper; // phpcs:ignore ?> .tab-content h6 {
123
124 }
125
126 <?php echo $wrapper; // phpcs:ignore ?> .tab-content > * {
127 color: black;
128 }
129
130 <?php echo $wrapper; // phpcs:ignore ?> header h5 {
131 font-size: 18px;
132 line-height: 21px;
133 font-weight: 500;
134 }
135
136 <?php echo $wrapper; // phpcs:ignore ?> .placeholder {
137 padding-left: 0;
138 padding-right: 0;
139 padding-top: 0;
140 padding-bottom: 0;
141 }
142
143 /* aligns */
144
145 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-left {
146 margin-left: 0;
147 margin-right: auto;
148 }
149 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center,
150 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center > div {
151 margin-left: auto;
152 margin-right: auto;
153 }
154 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-right {
155 margin-left: auto;
156 margin-right: 0;
157 }
158
159 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-left div.charitable-field-campaign-title {
160 margin-left: 0;
161 margin-right: auto;
162 text-align: left;
163 }
164 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center div.charitable-field-campaign-title {
165 margin-left: auto;
166 margin-right: auto;
167 text-align: center;
168 }
169 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-right div.charitable-field-campaign-title {
170 margin-left: auto;
171 margin-right: 0;
172 text-align: right;
173 }
174 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-left.charitable-campaign-field-photo img {
175 margin-left: 0;
176 margin-right: auto;
177 display: block;
178 }
179 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center.charitable-campaign-field-photo img {
180 margin-left: auto;
181 margin-right: auto;
182 display: block;
183 }
184 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-right.charitable-campaign-field-photo img {
185 margin-left: auto;
186 margin-right: 0;
187 display: block;
188 }
189 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-left .charitable-field-template-social-sharing,
190 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-left .charitable-field-template-social-linking {
191 margin-left: 0;
192 margin-right: auto;
193 }
194 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center .charitable-field-template-social-sharing,
195 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center .charitable-field-template-social-linking {
196 margin-left: auto;
197 margin-right: auto;
198 }
199 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-right .charitable-field-template-social-sharing,
200 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-right .charitable-field-template-social-linking {
201 margin-left: auto;
202 margin-right: 0;
203 }
204 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-left .donation-wall ol {
205 text-align: left;
206 }
207 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-center .donation-wall ol {
208 text-align: center;
209 }
210 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-align-right .donation-wall ol {
211 text-align: right;
212 }
213
214 <?php echo $wrapper; // phpcs:ignore ?> .charitable-placeholder {
215 width: 100%;
216 }
217
218
219 /* column specifics */
220
221 <?php echo $wrapper; // phpcs:ignore ?> .column[data-column-id="0"] {
222 flex: 1;
223 border: 0;
224 padding-left: 0;
225 padding-top: 0;
226 padding-bottom: 0;
227 }
228 <?php echo $wrapper; // phpcs:ignore ?> .column[data-column-id="0"] .charitable-field-photo {
229 padding: 0;
230 margin: 0;
231 border: 0;
232 }
233 <?php echo $wrapper; // phpcs:ignore ?> .column[data-column-id="1"] {
234 flex: 1;
235 border: 0;
236 }
237
238 <?php echo $wrapper; // phpcs:ignore ?> .charitable-panel-fields .charitable-field-wrap {
239 padding-bottom: 0;
240 }
241
242 /* headlines in general */
243
244 <?php echo $wrapper; // phpcs:ignore ?> h5.charitable-field-preview-headline {
245
246 }
247
248 /* field: campaign title */
249
250 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-campaign-title h1 {
251 margin: 15px auto;
252 font-size: 72px;
253 line-height: 84px;
254 font-weight: 600;
255 word-wrap: anywhere;
256 }
257
258 /* field: campaign description */
259
260 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-description h5.charitable-field-template-headline {
261 font-size: 27px;
262 line-height: 29px;
263 font-weight: 500;
264 }
265 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-description .charitable-campaign-builder-placeholder-template-text {
266 padding: 0;
267 margin: 0;
268 color: #000000;
269 font-size: 14px;
270 line-height: 24px;
271 }
272 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-builder-no-description-preview div {
273 margin: 0;
274 float: none;
275 }
276
277 /* field: campaign text */
278
279 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-text {
280 padding: 0;
281 color: #000000;
282 font-size: 14px;
283 line-height: 24px;
284 }
285 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-text h5.charitable-field-template-headline {
286 font-size: 27px;
287 line-height: 29px;
288 font-weight: 500;
289 }
290
291 /* field: html */
292
293 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field.charitable-field-html .placeholder {
294 padding: 0;
295 margin: 0;
296 }
297
298 /* field: button */
299 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-donate-button {
300 margin-top: 15px;
301 margin-bottom: 15px;
302 }
303 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-donate-button button.charitable-button,
304 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-donate-button a.charitable-button {
305 background-color: <?php echo $button; // phpcs:ignore ?>;
306 border-color: <?php echo $button; // phpcs:ignore ?>;
307 color: <?php echo charitable_get_constracting_text_color($button); // phpcs:ignore ?>;
308 text-transform: none;
309 border-radius: 0px;
310 margin-top: 0;
311 margin-bottom: 0;
312 width: 100%;
313 font-weight: 400;
314 font-size: 16px;
315 line-height: 25px;
316 display: flex; /* Changed from block to flex */
317 align-items: center; /* Vertically centers the text */
318 justify-content: center; /* Optionally centers the text horizontally too */
319 text-align: center !important;
320 text-decoration: none !important;
321 transition: filter 0.3s; /* Smooth transition */
322 }
323
324 /* field: photo */
325
326 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-photo .charitable-campaign-primary-image {
327 border: transparent;
328 border-radius: 0px;
329 margin-top: 25px;
330 margin-bottom: 25px;
331 }
332 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-photo .charitable-campaign-primary-image img {
333 max-width: 100%;
334 }
335 <?php echo $wrapper; // phpcs:ignore ?> .tab-content .charitable-campaign-field-photo .charitable-campaign-primary-image img {
336 border-radius: 0px;
337 }
338
339
340 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-photo .charitable-campaign-align-center .primary-image-container {
341 text-align: center;
342 }
343 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-photo .charitable-campaign-align-left .primary-image-container {
344 text-align: left;
345 }
346 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-photo .charitable-campaign-align-right .primary-image-container {
347 text-align: right;
348 }
349
350 /* field: photo */
351
352 <?php echo $wrapper; // phpcs:ignore ?> header .primary-image-container {
353 margin: 0;
354 padding: 0;
355 }
356
357 <?php echo $wrapper; // phpcs:ignore ?> .tab-content .primary-image-container {
358 margin: 0;
359 padding: 0;
360 }
361
362 /* field: progress bar */
363
364 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-percent-raised {
365 color: <?php echo $primary; // phpcs:ignore ?>;
366 font-weight: 400;
367 font-size: 18px;
368 line-height: 21px;
369 }
370 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-goal {
371 font-weight: 400;
372 font-size: 18px;
373 line-height: 21px;
374 }
375 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress {
376 border: 0;
377 padding: 0;
378 background-color: #E0E0E0;
379 border-radius: 5px;
380 margin-top: 15px;
381 margin-bottom: 15px;
382 }
383 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar {
384 background-color: <?php echo $secondary; // phpcs:ignore ?>;
385 height: 8px !important;
386 border-radius: 5px;
387 text-align: right;
388 opacity: 1.0;
389 }
390 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar span {
391 display: inline-block;
392 border-radius: 25px;
393 width: 25px;
394 height: 25px;
395 margin-right: -15px;
396 margin-top: -10px;
397 }
398
399 /* field: social linking */
400
401 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links {
402 display: table;
403 }
404
405 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links .charitable-field-template-social-linking-headline-container {
406 display: block;
407 float: left;
408 padding: 0;
409 }
410 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links .charitable-field-row {
411 display: block;
412 float: left;
413 width: auto;
414 margin: 0 0 0 0;
415 }
416 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links h5.charitable-field-preview-headline {
417 font-size: 14px !important;
418 line-height: 26px !important;
419 font-weight: 300 !important;
420 margin: 0 20px 0 0;
421 padding: 0;
422 color: <?php echo $primary; // phpcs:ignore ?> !important;
423 }
424 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links .charitable-placeholder {
425 padding: 10px;
426 }
427 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking {
428 display: table;
429 margin-top: 10px;
430 margin-bottom: 10px;
431 }
432 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row p {
433 display: none;
434 }
435 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking h5.charitable-field-template-headline {
436 font-size: 14px !important;
437 line-height: 26px !important;
438 font-weight: 300 !important;
439 margin: 0 20px 0 0;
440 padding: 0;
441 color: <?php echo $primary; // phpcs:ignore ?> !important;
442 }
443 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-social-field-column {
444 float: left;
445 margin-right: 20px;
446 }
447 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-social-field-column .charitable-campaign-social-link {
448 margin-top: 5px;
449 min-height: 20px !important;
450 }
451 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-campaign-social-link img,
452 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-campaign-social-link a {
453 width: 25px;
454 height: 25px;
455 }
456 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-campaign-social-link a:hover {
457 opacity: 0.65;
458 }
459
460 /* social icons */
461
462 <?php
463 // Social media icons for frontend - using dark style
464 $social_icons = array(
465 'twitter', 'facebook', 'linkedin', 'instagram',
466 'pinterest', 'tiktok', 'mastodon', 'youtube',
467 'threads', 'bluesky'
468 );
469
470 foreach ( $social_icons as $icon ) {
471 $icon_url = charitable_get_campaign_builder_asset_url( "images/campaign-builder/fields/social-links/{$icon}-dark.svg" );
472 if ( ! empty( $icon_url ) ) {
473 ?>
474 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field.charitable-field-social-links .charitable-social-linking-preview-<?php echo esc_attr( $icon ); ?> .charitable-placeholder,
475 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field.charitable-field-social-sharing .charitable-social-sharing-preview-<?php echo esc_attr( $icon ); ?> .charitable-placeholder {
476 background-image: url('<?php echo esc_url( $icon_url ); ?>');
477 }
478 <?php
479 }
480 }
481 ?>
482
483 /* field: social sharing */
484
485 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing {
486 display: table;
487 }
488
489 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing .charitable-field-template-social-sharing-headline-container {
490 display: block;
491 float: left;
492 padding: 0;
493 }
494 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing .charitable-field-row {
495 display: block;
496 float: left;
497 width: auto;
498 margin: 0 0 0 0;
499 }
500 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing h5.charitable-field-preview-headline {
501 font-size: 14px;
502 line-height: 26px;
503 font-weight: 300;
504 margin: 0 20px 0 0;
505 padding: 0;
506 color: <?php echo $primary; // phpcs:ignore ?>;
507 }
508 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing .charitable-placeholder {
509 padding: 10px;
510 }
511 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing {
512 display: table;
513 margin-top: 10px;
514 margin-bottom: 10px;
515 }
516 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row p {
517 display: none;
518 }
519 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing h5.charitable-field-template-headline {
520 font-size: 14px !important;
521 line-height: 26px !important;
522 font-weight: 300 !important;
523 margin: 0 20px 0 0;
524 padding: 0;
525 color: <?php echo $primary; // phpcs:ignore ?> !important;
526 }
527 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-social-field-column {
528 float: left;
529 margin-right: 20px;
530 }
531 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-social-field-column .charitable-campaign-social-link {
532 margin-top: 5px;
533 min-height: 20px !important;
534 }
535 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-campaign-social-link img,
536 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-campaign-social-link a {
537 width: 25px;
538 height: 25px;
539 }
540 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-campaign-social-link a:hover {
541 opacity: 0.65;
542 }
543
544 /* field: campaign summary */
545
546 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary {
547 padding-left: 0;
548 padding-right: 0;
549 }
550 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary div {
551 color: <?php echo $primary; // phpcs:ignore ?>;
552 font-weight: 400;
553 font-size: 14px;
554 line-height: 16px;
555 text-align: left;
556 text-transform: capitalize;
557 }
558 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary div span {
559 color: <?php echo $secondary; // phpcs:ignore ?>;
560 font-weight: 600;
561 font-size: 32px;
562 line-height: 38px;
563 text-align: left;
564 text-transform: capitalize;
565 }
566 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item {
567 color: <?php echo $primary; // phpcs:ignore ?>;
568 border: 0;
569 margin-top: 5px;
570 margin-bottom: 5px;
571 text-align: left;
572 text-transform: capitalize;
573 }
574
575 /* field: donate amount */
576
577 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount label,
578 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-ield-donate-amount input.custom-donation-input[type="text"] {
579 color: <?php echo $primary; // phpcs:ignore ?>;
580 <?php /* border: 1px solid <?php echo $primary; // phpcs:ignore ?> !important; */ ?>
581 pointer-events: auto;
582 }
583 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount ul li.suggested-donation-amount.selected {
584 border: 10px solid <?php echo $tertiary; // phpcs:ignore ?> !important;
585 }
586 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount ul li.suggested-donation-amount.selected span.amount {
587 color: <?php echo $primary; // phpcs:ignore ?>;
588 /* invert the color */
589 filter: invert(1);
590 /* opacity */
591 opacity: 0.5;
592 }
593 <?php echo $wrapper; // phpcs:ignore ?> .charitable-template-donation-options ul.charitable-template-donation-amounts {
594 margin: 0;
595 }
596 <?php echo $wrapper; // phpcs:ignore ?> .charitable-template-donation-options ul.charitable-template-donation-amounts .charitable-template-donation-amount,
597 <?php echo $wrapper; // phpcs:ignore ?> .charitable-template-donation-options ul.charitable-template-donation-amounts .charitable-template-donation-amount.custom-donation-amount input[type="text"] {
598 color: <?php echo $primary; // phpcs:ignore ?> !important;
599 border-color: <?php echo $primary; // phpcs:ignore ?> !important;
600 pointer-events: auto !important;
601 }
602 <?php echo $wrapper; // phpcs:ignore ?> .donation-amounts.donation-suggested-amount li input[type=text] {
603 font-size: 16px;
604 }
605
606
607 /* field: donate form */
608
609 <?php echo $wrapper; // phpcs:ignore ?> .charitable-field-donation-form .charitable-form-placeholder {
610 width: 100%;
611 margin-left: auto;
612 margin-right: auto;
613 background-color: #f6f6f6;
614 height: auto;
615 max-height: auto;
616 min-height: 200px;
617 padding-top: 0;
618 padding-bottom: 0;
619 display: inline-block;
620 }
621
622 /* field: shortcode */
623
624 <?php echo $wrapper; // phpcs:ignore ?> .shortcode-preview {
625 padding-left: 10px;
626 padding-right: 10px;
627 }
628
629 /* tabs: container */
630
631 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-tab-container {
632 background-color: transparent;
633 margin-top: 0px;
634 }
635
636 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-tab-container .tab-content img {
637 max-width: 100%;
638 }
639 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-tab-container .tab-content > ul {
640 margin-left: 0;
641 margin-right: 0;
642 }
643
644 /* tabs: tab nav */
645
646 <?php echo $wrapper; // phpcs:ignore ?> article nav {
647 border: 1px solid transparent;
648 background-color: transparent;
649 width: auto;
650 margin-left: 0;
651 margin-right: 0;
652 }
653 <?php echo $wrapper; // phpcs:ignore ?> article nav li {
654 border-top: 0;
655 border-right: 0;
656 border-bottom: 0;
657 border-left: 0;
658 background-color: transparent;
659 margin: 0 10px 0 0;
660 }
661 <?php echo $wrapper; // phpcs:ignore ?> article nav li a {
662 color: black;
663 display: block;
664 text-transform: none;
665 }
666 <?php echo $wrapper; // phpcs:ignore ?> article nav li.active {
667 background-color: <?php echo $primary; // phpcs:ignore ?>;
668 color: white;
669 text-decoration: none;
670 }
671 <?php echo $wrapper; // phpcs:ignore ?> article nav li:hover {
672 background-color: <?php echo $primary; // phpcs:ignore ?>;
673 color: white;
674 text-decoration: none;
675 filter: brightness(90%);
676 }
677 <?php echo $wrapper; // phpcs:ignore ?> article nav li.active a,
678 <?php echo $wrapper; // phpcs:ignore ?> article nav li:hover a {
679 color: white;
680 }
681
682 /* tabs: style */
683
684 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-style-boxed li {
685
686 }
687 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-style-boxed li a {
688
689 }
690 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-style-rounded li {
691
692 }
693 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-style-rounded li a {
694
695 }
696 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-style-minimum li {
697 background-color: transparent;
698 border-bottom: 1px solid <?php echo $button; // phpcs:ignore ?>;
699 border-top: 0;
700 border-right: 0;
701 border-left: 0;
702 }
703 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-style-minimum li a {
704 color: <?php echo $primary; // phpcs:ignore ?>;
705 border-top: 0;
706 border-right: 0;
707 border-left: 0;
708 }
709
710 /* tabs: sized */
711
712 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-size-small li {
713 font-size: 10px;
714 padding: 0;
715 }
716 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-size-small li a {
717 font-size: 16px;
718 padding: 18px;
719 }
720 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-size-medium li {
721 font-size: 14px;
722 padding: 0;
723 }
724 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-size-large li {
725
726 }
727 <?php echo $wrapper; // phpcs:ignore ?> article nav.tab-size-large li a {
728 font-weight: 500;
729 font-size: inherit;
730 line-height: inherit;
731 }
732
733 /* field: donor wall */
734
735 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-donation-wall {
736 font-size: 18px;
737 line-height: 24px;
738 margin-top: 15px;
739 margin-bottom: 15px;
740 }
741
742 /* field: organizer */
743 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer {
744 font-size: 15px;
745 line-height: 25px;
746 font-weight: 400;
747 }
748 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer .charitable-organizer-name {
749 font-weight: 600;
750 font-size: 21px;
751 line-height: 31px;
752 }
753 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer p,
754 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer h1,
755 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer h2,
756 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer h3,
757 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer h4,
758 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer h5 {
759 margin-top: 0;
760 margin-bottom: 0;
761 }
762 <?php echo $wrapper; // phpcs:ignore ?> .charitable-campaign-field-organizer h5 {
763 margin: 0;
764 padding: 0;
765 font-size: 15px;
766 line-height: 25px;
767 font-weight: 400;
768 }
769
770 // @codingStandardsIgnoreEnd