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

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

576 lines 17.3 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.
10 *
11 * @package Charitable
12 * @author WP Charitable LLC
13 * @since 1.8.0
14 * @version 1.8.3.7
15 */
16
17 header( 'Content-type: text/css; charset: UTF-8' );
18
19 if ( ! function_exists( 'charitable_sanitize_hex_color' ) ) {
20 /**
21 * Sanitize a hex color.
22 *
23 * @param string $color The color to sanitize.
24 * @return string|null The sanitized color or null if the color is invalid.
25 */
26 function charitable_sanitize_hex_color( $color ) {
27 // Ensure the value is a string.
28 $color = trim( $color );
29
30 // Check if it's a valid 6-character hex color including the hash.
31 if ( preg_match( '/^#[a-fA-F0-9]{6}$/', $color ) ) {
32 return $color;
33 }
34
35 // Optionally return a default color or handle errors.
36 return null; // Or return default color.
37 }
38 }
39
40 if ( ! function_exists( 'charitable_esc_attr_php' ) ) {
41 /**
42 * Escapes a string for use in PHP.
43 *
44 * @param string $text The text to escape.
45 * @return string The escaped text.
46 */
47 function charitable_esc_attr_php( $text ) {
48 return htmlspecialchars( $text, ENT_QUOTES, 'UTF-8' );
49 }
50 }
51
52 // @codingStandardsIgnoreStart
53
54 $primary = isset( $_GET['p'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['p'] ) : '#000000';
55 $secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#2B66D1';
56 $tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#F99E36';
57 $button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#5AA152';
58
59 $slug = 'simple-2-col'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable used in CSS selectors.
60 $wrapper = '.charitable-preview.charitable-builder-template-' . $slug . ' #charitable-design-wrap .charitable-campaign-preview'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable used in CSS selectors.
61 $wrapper_no_fields = '.charitable-preview.charitable-builder-template-' . $slug . ' #charitable-design-wrap.no-fields-mode .charitable-campaign-preview'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable used in CSS selectors.
62
63 ?>
64
65 .charitable-preview.charitable-builder-template-<?php echo $slug; ?> { /* everything wraps in this */
66
67 font-family: -apple-system, BlinkMacSystemFont, sans-serif;
68
69 }
70
71 /* this narrows things down a little to the preview area header/tabs */
72
73 <?php echo charitable_esc_attr_php( $wrapper ); ?> {
74 /* field items in preview area */
75 font-family: -apple-system, BlinkMacSystemFont, sans-serif;
76 }
77
78 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field {
79 display: flex;
80 }
81
82 /* wide spread changes in header vs tabs */
83
84 <?php echo charitable_esc_attr_php( $wrapper ); ?> > header {
85 margin-bottom: 40px;
86 font-size: 40px;
87 line-height: 70px;
88 font-weight: 600;
89 }
90 <?php echo charitable_esc_attr_php( $wrapper ); ?> h1:empty,
91 <?php echo charitable_esc_attr_php( $wrapper ); ?> h2:empty,
92 <?php echo charitable_esc_attr_php( $wrapper ); ?> h3:empty,
93 <?php echo charitable_esc_attr_php( $wrapper ); ?> h4:empty,
94 <?php echo charitable_esc_attr_php( $wrapper ); ?> h5:empty,
95 <?php echo charitable_esc_attr_php( $wrapper ); ?> h6:empty {
96 display: none;
97 }
98 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h1,
99 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h2,
100 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h3,
101 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h4,
102 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h5,
103 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h6 {
104
105 }
106 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h1,
107 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h2,
108 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h3,
109 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h4,
110 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h5,
111 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h6 {
112
113 }
114
115 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content > * {
116 color: black;
117 }
118
119 <?php echo charitable_esc_attr_php( $wrapper ); ?> header h5 {
120 font-size: 18px;
121 line-height: 21px;
122 font-weight: 500;
123 }
124
125 <?php echo charitable_esc_attr_php( $wrapper ); ?> .placeholder {
126 padding-left: 0;
127 padding-right: 0;
128 padding-top: 0;
129 padding-bottom: 0;
130 }
131
132 <?php echo charitable_esc_attr_php( $wrapper ); ?> > .charitable-preview-header .charitable-field-wrap.charitable-field-target{
133 min-height: 150px;
134 }
135 <?php echo charitable_esc_attr_php( $wrapper ); ?> > .charitable-preview-row .charitable-field-wrap.charitable-field-target {
136 min-height: 600px;
137 }
138
139 /* aligns */
140
141 <?php
142 /*
143 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left > div {
144 margin-left: 0;
145 margin-right: auto;
146 display: table;
147 width: 100%;
148 }
149 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center > div {
150 margin-left: auto;
151 margin-right: auto;
152 display: table;
153 width: 100%;
154 }
155 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right > div {
156 margin-left: auto;
157 margin-right: 0;
158 display: table;
159 width: 100%;
160 }
161
162 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left div.charitable-field-campaign-title,
163 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center div.charitable-field-campaign-title,
164 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right div.charitable-field-campaign-title {
165 width: auto;
166 }
167
168 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left .donation-wall h5,
169 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left .donation-wall ol {
170 text-align: left;
171 }
172 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center .donation-wall h5,
173 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center .donation-wall ol {
174 text-align: center;
175 }
176 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right .donation-wall h5,
177 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right .donation-wall ol {
178 text-align: right;
179 } */
180 ?>
181
182 /* column specifics */
183
184 <?php
185 /*
186 echo $wrapper; ?> .column[data-column-id="0"] {
187 flex: 1;
188 border: 0;
189 padding-left: 0;
190 padding-top: 0;
191 padding-bottom: 0;
192 }
193 <?php echo charitable_esc_attr_php( $wrapper ); ?> .column[data-column-id="0"] .charitable-field-photo {
194 padding: 0;
195 margin: 0;
196 border: 0;
197 }
198 <?php echo charitable_esc_attr_php( $wrapper ); ?> .column[data-column-id="1"] {
199 flex: 1;
200 border: 0;
201 } */
202 ?>
203
204 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-panel-fields .charitable-field-wrap {
205 padding-bottom: 0;
206 }
207
208 /* headlines in general */
209
210 <?php echo charitable_esc_attr_php( $wrapper ); ?> h5.charitable-field-preview-headline {
211
212 }
213
214 /* field: campaign title */
215
216 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-title h1 {
217 margin: 15px auto;
218 font-size: 72px;
219 line-height: 84px;
220 font-weight: 600;
221 }
222
223 /* field: campaign description */
224
225 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description h5.charitable-field-preview-headline {
226 font-size: 27px;
227 line-height: 29px;
228 font-weight: 500;
229 }
230 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text {
231 padding: 0;
232 margin: 0;
233 color: #000000;
234 }
235 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-campaign-builder-no-description-preview div {
236 margin: 0;
237 float: none;
238 }
239
240
241 /* field: text */
242
243 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-text .charitable-campaign-builder-placeholder-preview-text {
244 padding: 0;
245 color: #202020;
246 }
247 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-text h5.charitable-field-preview-headline {
248
249 }
250
251 /* field: html */
252
253 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-html .placeholder {
254 padding: 0;
255 margin: 0;
256 }
257
258 /* field: button */
259
260 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-donate-button .charitable-field-preview-donate-button span.placeholder {
261 padding: 0;
262 }
263 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-donate-button .charitable-field-preview-donate-button span.placeholder.button {
264 text-transform: none;
265 border-radius: 0px;
266 margin-top: 0;
267 margin-bottom: 0;
268 width: 100%;
269 font-weight: 400;
270 min-height: 50px;
271 height: 50px;
272 font-size: 16px;
273 line-height: 50px;
274 }
275
276 /* field: photo */
277
278 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-photo .primary-image {
279 border: transparent;
280 border-radius: 0px;
281 }
282 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-photo .primary-image img {
283 max-width: 100%;
284 }
285 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content .charitable-field.charitable-field-photo .primary-image img {
286 border-radius: 0px;
287 }
288
289
290 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-photo .charitable-preview-align-center .primary-image-container {
291 text-align: center;
292 }
293 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-photo .charitable-preview-align-left .primary-image-container {
294 text-align: left;
295 }
296 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-photo .charitable-preview-align-right .primary-image-container {
297 text-align: right;
298 }
299
300 /* field: photo */
301
302 <?php echo charitable_esc_attr_php( $wrapper ); ?> header .primary-image-container {
303 margin: 0;
304 padding: 0;
305 }
306
307 <?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content .primary-image-container {
308 margin: 0;
309 padding: 0;
310 }
311
312 /* field: progress bar */
313
314 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar-info-row div.campaign-percent-raised {
315
316 font-weight: 400;
317 font-size: 18px;
318 line-height: 21px;
319 }
320 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar-info-row div.campaign-goal {
321 font-weight: 400;
322 font-size: 18px;
323 line-height: 21px;
324 }
325 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress {
326 border: 0;
327 padding: 0;
328 background-color: #E0E0E0;
329 border-radius: 5px;
330 margin-top: 15px;
331 }
332 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar {
333
334 height: 8px !important;
335 border-radius: 5px;
336 text-align: right;
337 opacity: 1.0;
338 }
339 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar span {
340 display: inline-block;
341 border-radius: 25px;
342 width: 25px;
343 height: 25px;
344 margin-right: -15px;
345 margin-top: -10px;
346 }
347
348 /* field: social linking */
349
350 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking {
351 display: table;
352 width: auto !important;
353 }
354
355 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-field-preview-social-linking-headline-container {
356 display: block;
357 float: left;
358 padding: 0;
359 }
360 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-field-row {
361 display: block;
362 float: left;
363 width: auto;
364 margin: 0 0 0 0;
365 }
366 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking h5.charitable-field-preview-headline {
367 font-size: 14px;
368 line-height: 26px;
369 font-weight: 300;
370 margin: 0 20px 0 0;
371 padding: 0;
372 color: <?php echo $primary; ?>;
373 }
374 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-placeholder {
375 padding: 10px;
376 }
377
378 /* field: social sharing */
379
380 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing {
381 display: table;
382 width: auto !important;
383 }
384
385 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-field-preview-social-sharing-headline-container {
386 display: block;
387 float: left;
388 padding: 0;
389 }
390 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-field-row {
391 display: block;
392 float: left;
393 width: auto;
394 margin: 0 0 0 0;
395 }
396 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing h5.charitable-field-preview-headline {
397 font-size: 14px;
398 line-height: 26px;
399 font-weight: 300;
400 margin: 0 20px 0 0;
401 padding: 0;
402 color: <?php echo $primary; ?>;
403 }
404 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-placeholder {
405 padding: 10px;
406 }
407
408 /* field: campaign summary */
409
410 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary {
411 padding-left: 0;
412 padding-right: 0;
413 }
414 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary div {
415 color: <?php echo $primary; ?>;
416 font-weight: 400;
417 font-size: 14px;
418 line-height: 16px;
419 }
420 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary div span {
421 color: <?php echo $secondary; ?>;
422 font-weight: 600;
423 font-size: 32px;
424 line-height: 38px;
425 }
426 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item {
427 color: <?php echo $primary; ?>;
428 border: 0;
429 margin-top: 5px;
430 margin-bottom: 5px;
431 }
432
433 /* field: donate amount */
434
435 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount label,
436 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount input.custom-donation-input[type="text"] {
437 border: 1px solid !important;
438 }
439 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected {
440 border: 10px solid;
441 }
442 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected span.amount {
443
444 }
445
446 /* field: donate form */
447
448 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donation-form .charitable-form-placeholder {
449 width: 100%;
450 margin-left: auto;
451 margin-right: auto;
452 background-color: #f6f6f6;
453 height: auto;
454 max-height: auto;
455 min-height: 200px;
456 padding-top: 0;
457 padding-bottom: 0;
458 display: inline-block;
459 }
460
461 /* field: shortcode */
462
463 <?php echo charitable_esc_attr_php( $wrapper ); ?> .shortcode-preview {
464 padding-left: 10px;
465 padding-right: 10px;
466 }
467
468 /* tabs: container */
469
470 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container {
471 background-color: transparent;
472 margin-top: 0px;
473 }
474
475 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container .tab-content img {
476 max-width: 100%;
477 }
478 <?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container .tab-content > ul {
479 margin-left: 0;
480 margin-right: 0;
481 }
482
483 /* tabs: tab nav */
484
485 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav {
486 border: 1px solid transparent;
487 background-color: transparent;
488 width: auto;
489 margin-left: 0;
490 margin-right: 0;
491 }
492 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li {
493 border-top: 0;
494 border-right: 0;
495 border-bottom: 0;
496 border-left: 0;
497 background-color: transparent;
498 margin: 0 10px 0 0;
499 }
500 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li a {
501 color: black;
502 display: block;
503 text-transform: none;
504 }
505 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li.active {
506 background-color: <?php echo $primary; ?>;
507 color: white;
508 text-decoration: none;
509 }
510 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li:hover {
511 background-color: <?php echo $primary; ?>;
512 color: white;
513 text-decoration: none;
514 filter: brightness(90%);
515 }
516 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li.active a,
517 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li:hover a {
518 color: white;
519 }
520
521
522 /* tabs: style */
523
524 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-boxed li {
525
526 }
527 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-boxed li a {
528
529 }
530 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-rounded li {
531
532 }
533 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-rounded li a {
534
535 }
536 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li {
537 background-color: transparent;
538 border-bottom: 1px solid;
539 border-top: 0;
540 border-right: 0;
541 border-left: 0;
542 }
543 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li a {
544 border-top: 0;
545 border-right: 0;
546 border-left: 0;
547 }
548
549 /* tabs: sized */
550
551 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-small li {
552
553 }
554 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-small li a {
555 font-weight: 500;
556 font-size: 14px;
557 line-height: 16px;
558 }
559 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-medium li {
560
561 }
562 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-medium li a {
563 font-weight: 500;
564 font-size: 19px;
565 line-height: 21px;
566 }
567 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-large li {
568
569 }
570 <?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-large li a {
571 font-weight: 500;
572 font-size: 26px;
573 line-height: 28px;
574 }
575
576 // @codingStandardsIgnoreEnd