| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Display custom CSS for School Trip 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 = 'school-trip'; |
| 28 |
$charitable_wrapper = '.charitable-campaign-wrap.template-' . $charitable_slug; |
| 29 |
$charitable_preview_wrapper = '.charitable-campaign-wrap.is-charitable-preview.template-' . $charitable_slug; |
| 30 |
|
| 31 |
require_once dirname( __DIR__, 2 ) . '/admin/campaign-builder/templates/functions-campaign-templates.php'; |
| 32 |
|
| 33 |
?> |
| 34 |
|
| 35 |
<?php |
| 36 |
/* |
| 37 |
* Headline colour. Emitted ONLY when the campaign actually configured a primary |
| 38 |
* colour (the endpoint omits 'p' otherwise), so a campaign that customised nothing |
| 39 |
* falls back to the historic #000 in base.css and renders byte-identical. The hex |
| 40 |
* guard stops a malformed 'p' from emitting an invalid token, which would make the |
| 41 |
* headline inherit the theme's colour instead of falling back. |
| 42 |
* |
| 43 |
* Emitted at the top of the stylesheet rather than appended at the end, because |
| 44 |
* save-the-museum.php has an unclosed rule near its end that would otherwise nest |
| 45 |
* this declaration inside it. |
| 46 |
*/ |
| 47 |
if ( isset( $_GET['p'] ) && preg_match( '/^#[A-Fa-f0-9]{3,6}$/', $primary ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 48 |
?> |
| 49 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> { |
| 50 |
--charitable_campaign_theme_headline: <?php echo $primary; // phpcs:ignore ?>; |
| 51 |
} |
| 52 |
<?php |
| 53 |
endif; |
| 54 |
?> |
| 55 |
|
| 56 |
:root { |
| 57 |
--charitable_campaign_theme_primary: <?php echo $primary; // phpcs:ignore ?>; |
| 58 |
--charitable_campaign_theme_secondary: <?php echo $secondary; // phpcs:ignore ?>; |
| 59 |
--charitable_campaign_theme_tertiary: <?php echo $tertiary; // phpcs:ignore ?>; |
| 60 |
--charitable_campaign_theme_button: <?php echo $button; // phpcs:ignore ?>; |
| 61 |
} |
| 62 |
|
| 63 |
/* column specifics */ |
| 64 |
|
| 65 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) { |
| 66 |
flex: 2; |
| 67 |
border: 0; |
| 68 |
padding-top: 50px; |
| 69 |
} |
| 70 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(odd) { |
| 71 |
border: 0; |
| 72 |
flex: 1 1 26%; |
| 73 |
padding-top: 15px; |
| 74 |
padding-bottom: 15px; |
| 75 |
} |
| 76 |
|
| 77 |
/* section specifics */ |
| 78 |
|
| 79 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) .charitable-field-section { |
| 80 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 81 |
color: white; |
| 82 |
padding: 35px; |
| 83 |
} |
| 84 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) * { |
| 85 |
color: white; |
| 86 |
} |
| 87 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(odd) .charitable-field-section { |
| 88 |
background-color: transparent; |
| 89 |
|
| 90 |
} |
| 91 |
|
| 92 |
/* headlines */ |
| 93 |
|
| 94 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> div.charitable-campaign-row h5.charitable-field-template-headline { |
| 95 |
font-weight: 400; |
| 96 |
font-size: 32px; |
| 97 |
line-height: 34px; |
| 98 |
} |
| 99 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> div.charitable-campaign-row .charitable-campaign-column:nth-child(even) h5.charitable-field-template-headline { |
| 100 |
color: white; |
| 101 |
} |
| 102 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .tab-content h5.charitable-field-template-headline { |
| 103 |
color: black !important; |
| 104 |
font-weight: 500 !important; |
| 105 |
text-transform: inherit; |
| 106 |
font-size: 32px !important; |
| 107 |
line-height: 38px !important; |
| 108 |
margin-top: 20px; |
| 109 |
margin-bottom: 20px; |
| 110 |
} |
| 111 |
|
| 112 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-header h5.charitable-field-template-headline { |
| 113 |
color: <?php echo $primary; // phpcs:ignore ?> !important; |
| 114 |
font-weight: 500 !important; |
| 115 |
text-transform: inherit; |
| 116 |
font-size: 42px !important; |
| 117 |
line-height: 48px !important; |
| 118 |
margin-top: 20px; |
| 119 |
margin-bottom: 20px; |
| 120 |
} |
| 121 |
|
| 122 |
/* field: campaign title */ |
| 123 |
|
| 124 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field_campaign-title h1 { |
| 125 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 126 |
} |
| 127 |
|
| 128 |
/* field: button */ |
| 129 |
|
| 130 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-donate-button button.button, |
| 131 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> button.charitable-button, |
| 132 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> a.charitable-button { |
| 133 |
background-color: <?php echo $button; // phpcs:ignore ?> !important; |
| 134 |
border-color: <?php echo $button; // phpcs:ignore ?> !important; |
| 135 |
color: <?php echo charitable_get_constracting_text_color($button); // phpcs:ignore ?>; |
| 136 |
text-transform: uppercase; |
| 137 |
border-radius: 0px; |
| 138 |
margin-top: 0; |
| 139 |
margin-bottom: 0; |
| 140 |
width: 100%; |
| 141 |
font-weight: 400; |
| 142 |
min-height: 50px; |
| 143 |
height: 50px; |
| 144 |
font-size: 16px; |
| 145 |
line-height: 15px; |
| 146 |
} |
| 147 |
|
| 148 |
/* field: photo */ |
| 149 |
|
| 150 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-photo .primary-image { |
| 151 |
border: transparent; |
| 152 |
} |
| 153 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-photo .charitable-campaign-primary-image { |
| 154 |
width: 100%; |
| 155 |
} |
| 156 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-photo img { |
| 157 |
width: 100%; |
| 158 |
border: 0; |
| 159 |
border-radius: 15px; |
| 160 |
} |
| 161 |
|
| 162 |
/* field: progress bar */ |
| 163 |
|
| 164 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-percent-raised { |
| 165 |
color: #FFFFFF; |
| 166 |
font-size: 21px; |
| 167 |
line-height: 21px; |
| 168 |
font-weight: 100; |
| 169 |
padding-left: 0; |
| 170 |
} |
| 171 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-goal { |
| 172 |
color: white; |
| 173 |
font-weight: 100; |
| 174 |
font-size: 21px; |
| 175 |
line-height: 21px; |
| 176 |
} |
| 177 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress { |
| 178 |
background-color: #E0E0E0; |
| 179 |
border-radius: 20px; |
| 180 |
margin-top: 15px; |
| 181 |
} |
| 182 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar { |
| 183 |
background-color: white; |
| 184 |
height: 13px !important; |
| 185 |
border-radius: 20px; |
| 186 |
} |
| 187 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar span { |
| 188 |
|
| 189 |
} |
| 190 |
|
| 191 |
/* field: social linking */ |
| 192 |
|
| 193 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links { |
| 194 |
|
| 195 |
} |
| 196 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking { |
| 197 |
display: table; |
| 198 |
padding: 0; |
| 199 |
margin: 0; |
| 200 |
} |
| 201 |
|
| 202 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-template-social-linking-headline-container { |
| 203 |
float: left; |
| 204 |
display: table; |
| 205 |
vertical-align: middle; |
| 206 |
padding: 0; |
| 207 |
} |
| 208 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking-headline-container h5 { |
| 209 |
margin-right: 10px !important; |
| 210 |
font-weight: 400 !important; |
| 211 |
font-size: 18px !important; |
| 212 |
line-height: 24px !important; |
| 213 |
color: white !important; |
| 214 |
} |
| 215 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row { |
| 216 |
display: block; |
| 217 |
float: left; |
| 218 |
width: auto; |
| 219 |
margin: 0 0 0 0; |
| 220 |
} |
| 221 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row.charitable-field-row-social-linking { |
| 222 |
width: auto; |
| 223 |
} |
| 224 |
|
| 225 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row p { |
| 226 |
display: none; |
| 227 |
} |
| 228 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking h5.charitable-field-template-headline { |
| 229 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 230 |
margin: 0 30px 10px 0 !important; |
| 231 |
padding: 0; |
| 232 |
font-size: 16px; |
| 233 |
line-height: 16px; |
| 234 |
font-weight: 700; |
| 235 |
} |
| 236 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-placeholder { |
| 237 |
padding: 6px 0 0 0px; |
| 238 |
} |
| 239 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-field-column { |
| 240 |
float: left; |
| 241 |
margin-right: 20px; |
| 242 |
} |
| 243 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-field-column .charitable-campaign-social-link { |
| 244 |
margin-top: 5px; |
| 245 |
min-height: 20px !important; |
| 246 |
} |
| 247 |
|
| 248 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-campaign-social-link a:hover { |
| 249 |
opacity: 0.65; |
| 250 |
} |
| 251 |
|
| 252 |
|
| 253 |
/* field: social sharing */ |
| 254 |
|
| 255 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing { |
| 256 |
|
| 257 |
} |
| 258 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing { |
| 259 |
display: table; |
| 260 |
padding: 0; |
| 261 |
margin-top: 40px; |
| 262 |
} |
| 263 |
|
| 264 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-template-social-sharing-headline-container { |
| 265 |
float: left; |
| 266 |
display: table; |
| 267 |
vertical-align: middle; |
| 268 |
padding: 0; |
| 269 |
} |
| 270 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing-headline-container h5 { |
| 271 |
margin-right: 10px !important; |
| 272 |
font-weight: 400 !important; |
| 273 |
font-size: 18px !important; |
| 274 |
line-height: 24px !important; |
| 275 |
color: white !important; |
| 276 |
} |
| 277 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row { |
| 278 |
display: block; |
| 279 |
float: none; |
| 280 |
width: auto; |
| 281 |
margin: 0 0 0 0; |
| 282 |
} |
| 283 |
|
| 284 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row p { |
| 285 |
display: none; |
| 286 |
} |
| 287 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing h5.charitable-field-template-headline { |
| 288 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 289 |
margin: 0 20px 10px 0; |
| 290 |
padding: 0; |
| 291 |
font-size: 16px; |
| 292 |
line-height: 16px; |
| 293 |
font-weight: 700; |
| 294 |
} |
| 295 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-placeholder { |
| 296 |
padding: 10px; |
| 297 |
} |
| 298 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-field-column { |
| 299 |
float: left; |
| 300 |
margin-right: 20px; |
| 301 |
} |
| 302 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-field-column .charitable-campaign-social-link { |
| 303 |
margin-top: 5px; |
| 304 |
min-height: 20px !important; |
| 305 |
} |
| 306 |
|
| 307 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-campaign-social-link a:hover { |
| 308 |
opacity: 0.65; |
| 309 |
} |
| 310 |
|
| 311 |
/* field: social sharing AND linking */ |
| 312 |
|
| 313 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-field-row .charitable-campaign-social-link, |
| 314 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-sharing .charitable-field-row .charitable-campaign-social-link { |
| 315 |
border: 1px solid <?php echo $tertiary; // phpcs:ignore ?>; |
| 316 |
border-radius: 40px; |
| 317 |
padding: 10px; |
| 318 |
} |
| 319 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-field-template-social-linking, |
| 320 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-sharing .charitable-field-template-social-sharing { |
| 321 |
border: 1px solid rgba(0, 0, 0, 0.20); |
| 322 |
border-radius: 10px; |
| 323 |
display: table; |
| 324 |
width: 100%; |
| 325 |
padding: 0px; |
| 326 |
} |
| 327 |
|
| 328 |
/* field: social sharing AND linking */ |
| 329 |
|
| 330 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-field-row .charitable-campaign-social-link, |
| 331 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-sharing .charitable-field-row .charitable-campaign-social-link { |
| 332 |
border: 0; |
| 333 |
padding: 0; |
| 334 |
} |
| 335 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-field-template-social-linking, |
| 336 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-sharing .charitable-field-template-social-sharing { |
| 337 |
border: 0; |
| 338 |
} |
| 339 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-field-template-social-linking img, |
| 340 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-sharing .charitable-field-template-social-sharing img { |
| 341 |
height: 20px !important; |
| 342 |
} |
| 343 |
|
| 344 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field.charitable-field-social-links .charitable-field-row .charitable-placeholder, |
| 345 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field.charitable-field-social-sharing .charitable-field-row .charitable-placeholder { |
| 346 |
padding: 10px; |
| 347 |
} |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
/* field: campaign summary */ |
| 352 |
|
| 353 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary { |
| 354 |
padding-left: 0; |
| 355 |
padding-right: 0; |
| 356 |
} |
| 357 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary div { |
| 358 |
|
| 359 |
font-weight: 400; |
| 360 |
font-size: 14px; |
| 361 |
line-height: 16px; |
| 362 |
} |
| 363 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary div span { |
| 364 |
color: white; |
| 365 |
font-weight: 100; |
| 366 |
font-size: 32px; |
| 367 |
line-height: 38px; |
| 368 |
} |
| 369 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item { |
| 370 |
border: 0; |
| 371 |
margin-top: 5px; |
| 372 |
margin-bottom: 5px; |
| 373 |
text-transform: capitalize; |
| 374 |
} |
| 375 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_percent_raised { |
| 376 |
width: 34%; |
| 377 |
color: white; |
| 378 |
} |
| 379 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_amount_donated { |
| 380 |
width: 43%; |
| 381 |
color: white; |
| 382 |
} |
| 383 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_number_of_donors { |
| 384 |
width: 23%; |
| 385 |
color: white; |
| 386 |
} |
| 387 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-campaign-summary .campaign-summary-item.campaign_hide_time_remaining { |
| 388 |
width: 100%; |
| 389 |
color: white; |
| 390 |
} |
| 391 |
|
| 392 |
/* field: donate amount */ |
| 393 |
|
| 394 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount label, |
| 395 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount input.custom-donation-input[type="text"] { |
| 396 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 397 |
border: 1px solid <?php echo $secondary; // phpcs:ignore ?> !important; |
| 398 |
} |
| 399 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected { |
| 400 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 401 |
} |
| 402 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected span.amount { |
| 403 |
color: <?php echo $tertiary; // phpcs:ignore ?>; |
| 404 |
} |
| 405 |
|
| 406 |
/* field: donate form */ |
| 407 |
|
| 408 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> form.charitable-donation-form .donation-amount.selected { |
| 409 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 410 |
border-color: <?php echo $primary; // phpcs:ignore ?>; |
| 411 |
} |
| 412 |
|
| 413 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> form.charitable-donation-form .charitable-form-field.charitable-radio-list li { |
| 414 |
display: inline-block; |
| 415 |
} |
| 416 |
|
| 417 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> form.charitable-donation-form .charitable-notice { |
| 418 |
padding: 0; |
| 419 |
} |
| 420 |
|
| 421 |
/* tabs: container */ |
| 422 |
|
| 423 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article { |
| 424 |
padding-top: 0px; |
| 425 |
padding-bottom: 0px; |
| 426 |
color: #000; |
| 427 |
} |
| 428 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content > ul li { |
| 429 |
|
| 430 |
} |
| 431 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content > ul > li { |
| 432 |
display: none; |
| 433 |
} |
| 434 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content li { |
| 435 |
display: block; |
| 436 |
} |
| 437 |
|
| 438 |
/* tabs: nav */ |
| 439 |
|
| 440 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav { |
| 441 |
width: auto; |
| 442 |
} |
| 443 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav > ul { |
| 444 |
|
| 445 |
} |
| 446 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav > ul, |
| 447 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content > ul { |
| 448 |
margin-left: 30px !important; |
| 449 |
margin-right: 30px !important; |
| 450 |
} |
| 451 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li { |
| 452 |
border: 1px solid <?php echo $primary; // phpcs:ignore ?>; |
| 453 |
background-color: transparent; |
| 454 |
margin: 0 15px 0 0; |
| 455 |
padding: 0; |
| 456 |
} |
| 457 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li a { |
| 458 |
color: black; |
| 459 |
display: block; |
| 460 |
font-weight: 500 !important; |
| 461 |
font-size: 14px !important; |
| 462 |
line-height: 15px !important; |
| 463 |
text-transform: none; |
| 464 |
} |
| 465 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active { |
| 466 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 467 |
} |
| 468 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active a { |
| 469 |
color: white !important; |
| 470 |
} |
| 471 |
|
| 472 |
/* tabs: style */ |
| 473 |
|
| 474 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li { |
| 475 |
|
| 476 |
} |
| 477 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li a { |
| 478 |
|
| 479 |
} |
| 480 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover { |
| 481 |
|
| 482 |
} |
| 483 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover a { |
| 484 |
|
| 485 |
} |
| 486 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active { |
| 487 |
|
| 488 |
} |
| 489 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active a { |
| 490 |
|
| 491 |
} |
| 492 |
|
| 493 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li { |
| 494 |
|
| 495 |
} |
| 496 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li a { |
| 497 |
|
| 498 |
} |
| 499 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover { |
| 500 |
|
| 501 |
} |
| 502 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover a { |
| 503 |
|
| 504 |
} |
| 505 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active { |
| 506 |
|
| 507 |
} |
| 508 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active a { |
| 509 |
|
| 510 |
} |
| 511 |
|
| 512 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-minimum li { |
| 513 |
|
| 514 |
} |
| 515 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-minimum li a { |
| 516 |
|
| 517 |
} |
| 518 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-minimum li:hover { |
| 519 |
|
| 520 |
} |
| 521 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-minimum li:hover a { |
| 522 |
|
| 523 |
} |
| 524 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-minimum li.active { |
| 525 |
|
| 526 |
} |
| 527 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-minimum li.active a { |
| 528 |
|
| 529 |
} |
| 530 |
|
| 531 |
/* tabs: sized */ |
| 532 |
|
| 533 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li { |
| 534 |
|
| 535 |
} |
| 536 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li a { |
| 537 |
|
| 538 |
} |
| 539 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li { |
| 540 |
|
| 541 |
} |
| 542 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li a { |
| 543 |
|
| 544 |
} |
| 545 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li { |
| 546 |
|
| 547 |
} |
| 548 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li a { |
| 549 |
|
| 550 |
} |
| 551 |
|
| 552 |
/* field: donor wall */ |
| 553 |
|
| 554 |
|
| 555 |
/* field: organizer */ |
| 556 |
|
| 557 |
/* field: donation form */ |
| 558 |
|
| 559 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-donation-form.charitable-template-standard #charitable-gateway-fields #charitable_stripe_card_field { |
| 560 |
padding-top: 15px !important; |
| 561 |
padding-bottom: 15px !important; |
| 562 |
} |
| 563 |
|
| 564 |
|
| 565 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container { |
| 566 |
container-type: inline-size; |
| 567 |
container-name: campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area; |
| 568 |
} |
| 569 |
@container campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area (max-width: 700px) { |
| 570 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .charitable-tabs { |
| 571 |
margin-top: 0px; |
| 572 |
margin-left: 0px !important; |
| 573 |
margin-right: 0px !important; |
| 574 |
} |
| 575 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article .tab-content > ul { |
| 576 |
margin-left: 0px !important; |
| 577 |
margin-right: 0px !important; |
| 578 |
} |
| 579 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) { |
| 580 |
padding-top: 0; |
| 581 |
} |
| 582 |
.charitable-campaign-wrap .charitable-campaign-column, |
| 583 |
.charitable-campaign-wrap .charitable-campaign-column:nth-child(even), |
| 584 |
.charitable-campaign-wrap .charitable-campaign-column:nth-child(odd) { |
| 585 |
flex: 0 0 100% !important; |
| 586 |
padding-top: 0; |
| 587 |
padding-bottom: 0; |
| 588 |
padding-left: 0; |
| 589 |
padding-right: 0; |
| 590 |
} |
| 591 |
} |
| 592 |
|
| 593 |
.charitable-preview.charitable-builder-template-<?php echo $charitable_slug; // phpcs:ignore ?> { |
| 594 |
} |