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