PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
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.13, at includes/css-templates/frontend/simple-1-col.php

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