| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Display custom CSS for Save the Museum 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'] ) : '#2B2B2B'; // phpcs:ignore |
| 22 |
$secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#F5F5F5'; // phpcs:ignore |
| 23 |
$tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#FFFFFF'; // phpcs:ignore |
| 24 |
$button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#2B2B2B'; // phpcs:ignore |
| 25 |
$mobile_width = isset( $_GET['mw'] ) ? intval( $_GET['mw'] ) : 800; // phpcs:ignore |
| 26 |
|
| 27 |
$charitable_slug = 'save-the-museum'; |
| 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 '../../admin/campaign-builder/templates/functions-campaign-templates.php'; |
| 32 |
?> |
| 33 |
|
| 34 |
:root { |
| 35 |
--charitable_campaign_theme_primary: <?php echo $primary; // phpcs:ignore ?>; |
| 36 |
--charitable_campaign_theme_secondary: <?php echo $secondary; // phpcs:ignore ?>; |
| 37 |
--charitable_campaign_theme_tertiary: <?php echo $tertiary; // phpcs:ignore ?>; |
| 38 |
--charitable_campaign_theme_button: <?php echo $button; // phpcs:ignore ?>; |
| 39 |
} |
| 40 |
|
| 41 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> { |
| 42 |
font-family: -apple-system, BlinkMacSystemFont, sans-serif; |
| 43 |
} |
| 44 |
|
| 45 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row { |
| 46 |
background-color: white; |
| 47 |
color: #5B5B5B; |
| 48 |
padding: 0 35px; |
| 49 |
} |
| 50 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article { |
| 51 |
background-color: white; |
| 52 |
color: #5B5B5B; |
| 53 |
} |
| 54 |
|
| 55 |
/* column specifics */ |
| 56 |
|
| 57 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) { |
| 58 |
border: 0; |
| 59 |
flex: 1; |
| 60 |
padding: 50px 0 0 0; |
| 61 |
} |
| 62 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(odd) { |
| 63 |
flex: 1.5; |
| 64 |
border: 0; |
| 65 |
} |
| 66 |
|
| 67 |
/* headlines */ |
| 68 |
|
| 69 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> h5.charitable-campaign-field-headline { |
| 70 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 71 |
font-weight: 500; |
| 72 |
text-transform: uppercase; |
| 73 |
font-size: 21px; |
| 74 |
line-height: 23px; |
| 75 |
} |
| 76 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .tab-content h5.charitable-field-template-headline { |
| 77 |
color: black; |
| 78 |
font-weight: 500; |
| 79 |
text-transform: inherit; |
| 80 |
font-size: 32px; |
| 81 |
line-height: 38px; |
| 82 |
margin-bottom: 10px; |
| 83 |
} |
| 84 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-row h5 { |
| 85 |
font-size: 42px; |
| 86 |
line-height: 50px; |
| 87 |
font-weight: 500; |
| 88 |
letter-spacing: inherit; |
| 89 |
} |
| 90 |
|
| 91 |
/* field: campaign title */ |
| 92 |
|
| 93 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-title h1.charitable-campaign-title { |
| 94 |
margin: 5px 0 5px 0; |
| 95 |
color: <?php echo $secondary; // phpcs:ignore ?> !important; |
| 96 |
font-size: 68px !important; |
| 97 |
line-height: 72px !important; |
| 98 |
font-weight: 500 !important; |
| 99 |
font-family: -apple-system, BlinkMacSystemFont, sans-serif; |
| 100 |
} |
| 101 |
|
| 102 |
/* field: campaign description */ |
| 103 |
|
| 104 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-description .charitable-campaign-builder-placeholder-template-text, |
| 105 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-description .charitable-campaign-builder-placeholder-template-text p { |
| 106 |
font-size: 18px; |
| 107 |
line-height: 27px; |
| 108 |
font-weight: 300; |
| 109 |
color: #5B5B5B; |
| 110 |
} |
| 111 |
|
| 112 |
/* field: button */ |
| 113 |
|
| 114 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button button.button, |
| 115 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button a.donate-button { |
| 116 |
border-radius: 0px; |
| 117 |
background-color: transparent !important; |
| 118 |
border: 1px solid black !important; |
| 119 |
color: <?php echo charitable_get_constracting_text_color($button); // phpcs:ignore ?> !important; |
| 120 |
display: flex; /* Changed from block to flex */ |
| 121 |
align-items: center; /* Vertically centers the text */ |
| 122 |
justify-content: center; /* Optionally centers the text horizontally too */ |
| 123 |
text-align: center !important; |
| 124 |
text-decoration: none !important; |
| 125 |
transition: filter 0.3s; /* Smooth transition */ |
| 126 |
width: 100%; |
| 127 |
font-weight: 400; |
| 128 |
min-height: 50px; |
| 129 |
font-size: 16px; |
| 130 |
line-height: 15px; |
| 131 |
} |
| 132 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button button.button:hover, |
| 133 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-button a.donate-button:hover { |
| 134 |
background-color: <?php echo $button; // phpcs:ignore ?> !important; |
| 135 |
} |
| 136 |
|
| 137 |
/* field: progress bar */ |
| 138 |
|
| 139 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-percent-raised { |
| 140 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 141 |
font-size: 21px; |
| 142 |
line-height: 21px; |
| 143 |
font-weight: 100; |
| 144 |
padding-left: 0; |
| 145 |
} |
| 146 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar-info-row div.campaign-goal { |
| 147 |
color: <?php echo $primary; // phpcs:ignore ?>; |
| 148 |
font-weight: 100; |
| 149 |
font-size: 21px; |
| 150 |
line-height: 21px; |
| 151 |
} |
| 152 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress { |
| 153 |
border: 0; |
| 154 |
padding: 0; |
| 155 |
background-color: #E0E0E0; |
| 156 |
border-radius: 0px; |
| 157 |
margin-top: 15px; |
| 158 |
} |
| 159 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar { |
| 160 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 161 |
height: 13px !important; |
| 162 |
border-radius: 0px; |
| 163 |
text-align: right; |
| 164 |
opacity: 1.0; |
| 165 |
} |
| 166 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-progress-bar .progress-bar span { |
| 167 |
display: none; |
| 168 |
} |
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
/* field: social linking */ |
| 173 |
|
| 174 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-links { |
| 175 |
margin-top: 10px; |
| 176 |
margin-bottom: 10px; |
| 177 |
} |
| 178 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking { |
| 179 |
display: flex; |
| 180 |
flex-wrap: wrap; |
| 181 |
flex-direction: row; |
| 182 |
justify-content: start; |
| 183 |
} |
| 184 |
|
| 185 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field.charitable-campaign-field-social-links .charitable-field-template-social-linking .charitable-field-row.charitable-field-row-social-linking { |
| 186 |
width: auto !important; |
| 187 |
} |
| 188 |
|
| 189 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-template-social-linking-headline-container { |
| 190 |
float: left; |
| 191 |
display: table-cell; |
| 192 |
vertical-align: middle; |
| 193 |
padding: 0; |
| 194 |
} |
| 195 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking-headline-container h5 { |
| 196 |
margin-right: 10px; |
| 197 |
} |
| 198 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row { |
| 199 |
display: flex; |
| 200 |
flex-wrap: wrap; |
| 201 |
flex-direction: row; |
| 202 |
align-items: center; |
| 203 |
justify-content: start; |
| 204 |
gap: 10px; |
| 205 |
} |
| 206 |
|
| 207 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row p { |
| 208 |
display: none; |
| 209 |
} |
| 210 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking h5.charitable-field-template-headline { |
| 211 |
font-size: 14px; |
| 212 |
line-height: 16px; |
| 213 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 214 |
font-weight: 300; |
| 215 |
margin: 0 15px 0 0; |
| 216 |
padding: 5px 5px 5px 0; |
| 217 |
} |
| 218 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-placeholder { |
| 219 |
padding: 0px; |
| 220 |
display: flex; |
| 221 |
align-items: center; |
| 222 |
} |
| 223 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-placeholder .charitable-field-template-headline { |
| 224 |
margin-top: 6px; |
| 225 |
} |
| 226 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-social-field-column { |
| 227 |
float: none !important; |
| 228 |
margin: 0 !important; |
| 229 |
} |
| 230 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-field-column .charitable-campaign-social-link { |
| 231 |
min-height: 10px !important; |
| 232 |
} |
| 233 |
|
| 234 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-linking .charitable-field-row .charitable-campaign-social-link a:hover { |
| 235 |
opacity: 0.65; |
| 236 |
} |
| 237 |
|
| 238 |
|
| 239 |
/* field: social sharing */ |
| 240 |
|
| 241 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-social-sharing { |
| 242 |
margin-top: 10px; |
| 243 |
margin-bottom: 10px; |
| 244 |
} |
| 245 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing { |
| 246 |
display: flex; |
| 247 |
flex-wrap: wrap; |
| 248 |
flex-direction: row; |
| 249 |
justify-content: start; |
| 250 |
} |
| 251 |
|
| 252 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-template-social-sharing-headline-container { |
| 253 |
float: left; |
| 254 |
display: table-cell; |
| 255 |
vertical-align: middle; |
| 256 |
padding: 0; |
| 257 |
} |
| 258 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing-headline-container h5 { |
| 259 |
margin-right: 10px; |
| 260 |
} |
| 261 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row { |
| 262 |
display: flex; |
| 263 |
flex-wrap: wrap; |
| 264 |
flex-direction: row; |
| 265 |
align-items: center; |
| 266 |
justify-content: start; |
| 267 |
gap: 10px; |
| 268 |
} |
| 269 |
|
| 270 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row p { |
| 271 |
display: none; |
| 272 |
} |
| 273 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing h5.charitable-field-template-headline { |
| 274 |
font-size: 14px; |
| 275 |
line-height: 16px; |
| 276 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 277 |
font-weight: 300; |
| 278 |
margin: 0 15px 0 0; |
| 279 |
padding: 5px 5px 5px 0; |
| 280 |
} |
| 281 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-placeholder { |
| 282 |
padding: 0px; |
| 283 |
display: flex; |
| 284 |
align-items: center; |
| 285 |
} |
| 286 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-placeholder .charitable-field-template-headline { |
| 287 |
margin-top: 6px; |
| 288 |
} |
| 289 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-social-field-column { |
| 290 |
float: none !important; |
| 291 |
margin: 0 !important; |
| 292 |
} |
| 293 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-field-template-social-sharing .charitable-field-row .charitable-field-column .charitable-campaign-social-link { |
| 294 |
min-height: 10px !important; |
| 295 |
} |
| 296 |
|
| 297 |
|
| 298 |
/* field: campaign summary */ |
| 299 |
|
| 300 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary { |
| 301 |
padding-left: 0; |
| 302 |
padding-right: 0; |
| 303 |
} |
| 304 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary div { |
| 305 |
font-weight: 400; |
| 306 |
font-size: 14px; |
| 307 |
line-height: 16px; |
| 308 |
} |
| 309 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary div.campaign-summary-item span { |
| 310 |
color: <?php echo $primary; // phpcs:ignore ?>; |
| 311 |
font-weight: 500; |
| 312 |
font-size: 32px; |
| 313 |
line-height: 38px; |
| 314 |
} |
| 315 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary .campaign-summary-item { |
| 316 |
border: 0; |
| 317 |
margin-top: 5px; |
| 318 |
margin-bottom: 5px; |
| 319 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 320 |
text-align: left; |
| 321 |
} |
| 322 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary .campaign-summary-item.campaign_hide_percent_raised { |
| 323 |
width: 34%; |
| 324 |
} |
| 325 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary .campaign-summary-item.campaign_hide_amount_donated { |
| 326 |
width: 43%; |
| 327 |
} |
| 328 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary .campaign-summary-item.campaign_hide_number_of_donors { |
| 329 |
width: 23%; |
| 330 |
} |
| 331 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-campaign-summary .campaign-summary-item.campaign_hide_time_remaining { |
| 332 |
width: 100%; |
| 333 |
} |
| 334 |
|
| 335 |
/* field: donate amount */ |
| 336 |
|
| 337 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount label, |
| 338 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount input.custom-donation-input[type="text"] { |
| 339 |
color: <?php echo $secondary; // phpcs:ignore ?>; |
| 340 |
border: 1px solid <?php echo $secondary; // phpcs:ignore ?> !important; |
| 341 |
} |
| 342 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount ul li.suggested-donation-amount.selected { |
| 343 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 344 |
} |
| 345 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-field-donate-amount ul li.suggested-donation-amount.selected span.amount { |
| 346 |
color: <?php echo $tertiary; // phpcs:ignore ?>; |
| 347 |
} |
| 348 |
|
| 349 |
/* tabs: container */ |
| 350 |
|
| 351 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-tab-container { |
| 352 |
background-color: <?php echo $tertiary; // phpcs:ignore ?>; |
| 353 |
} |
| 354 |
|
| 355 |
/* tabs: tab nav */ |
| 356 |
|
| 357 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article { |
| 358 |
padding: 30px; |
| 359 |
} |
| 360 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav { |
| 361 |
border: 1px solid <?php echo $primary; // phpcs:ignore ?>; |
| 362 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 363 |
width: auto; |
| 364 |
} |
| 365 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li { |
| 366 |
border-top: 0; |
| 367 |
border-right: 1px solid <?php echo $primary; // phpcs:ignore ?>; |
| 368 |
border-bottom: 0; |
| 369 |
border-left: 0; |
| 370 |
background-color: transparent; |
| 371 |
margin: 0; |
| 372 |
padding: 0; |
| 373 |
} |
| 374 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li a { |
| 375 |
color: white; |
| 376 |
display: block; |
| 377 |
font-weight: 500 !important; |
| 378 |
font-size: 14px !important; |
| 379 |
line-height: 15px !important; |
| 380 |
text-transform: none !important; |
| 381 |
} |
| 382 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active, |
| 383 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li:hover { |
| 384 |
background-color: <?php echo $primary; // phpcs:ignore ?>; |
| 385 |
text-decoration: none; |
| 386 |
filter: brightness(90%); |
| 387 |
border: 0; |
| 388 |
} |
| 389 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-campaign-nav li.active a { |
| 390 |
color: white; |
| 391 |
} |
| 392 |
|
| 393 |
|
| 394 |
/* tabs: style */ |
| 395 |
|
| 396 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li { |
| 397 |
|
| 398 |
} |
| 399 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li a { |
| 400 |
|
| 401 |
} |
| 402 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover { |
| 403 |
|
| 404 |
} |
| 405 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li:hover a { |
| 406 |
|
| 407 |
} |
| 408 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active { |
| 409 |
|
| 410 |
} |
| 411 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-boxed li.active a { |
| 412 |
|
| 413 |
} |
| 414 |
|
| 415 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li { |
| 416 |
|
| 417 |
} |
| 418 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li a { |
| 419 |
|
| 420 |
} |
| 421 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover { |
| 422 |
|
| 423 |
} |
| 424 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li:hover a { |
| 425 |
|
| 426 |
} |
| 427 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active { |
| 428 |
|
| 429 |
} |
| 430 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-style-rounded li.active a { |
| 431 |
|
| 432 |
} |
| 433 |
|
| 434 |
/* tabs: sized */ |
| 435 |
|
| 436 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li { |
| 437 |
|
| 438 |
} |
| 439 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-small li a { |
| 440 |
|
| 441 |
} |
| 442 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li { |
| 443 |
|
| 444 |
} |
| 445 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-medium li a { |
| 446 |
|
| 447 |
} |
| 448 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li { |
| 449 |
|
| 450 |
} |
| 451 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav.charitable-tab-size-large li a { |
| 452 |
|
| 453 |
} |
| 454 |
|
| 455 |
/* field: donor wall */ |
| 456 |
|
| 457 |
|
| 458 |
/* field: organizer */ |
| 459 |
|
| 460 |
|
| 461 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container { |
| 462 |
container-type: inline-size; |
| 463 |
container-name: campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area; |
| 464 |
} |
| 465 |
@container campaign-<?php echo $charitable_slug; // phpcs:ignore ?>-area (max-width: 700px) { |
| 466 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> #charitable-template-row-0 { |
| 467 |
display: flex |
| 468 |
; flex-direction: column; |
| 469 |
flex-flow: column-reverse; |
| 470 |
} |
| 471 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-column:nth-child(even) { |
| 472 |
padding: 0 0 0 0; |
| 473 |
} |
| 474 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article { |
| 475 |
padding-bottom: 0; |
| 476 |
} |
| 477 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .section[data-section-type="tabs"] article nav { |
| 478 |
margin-top: 0px; |
| 479 |
margin-bottom: 0px; |
| 480 |
} |
| 481 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .section[data-section-type="tabs"] article .tab-content > ul li { |
| 482 |
|
| 483 |
} |
| 484 |
<?php echo $charitable_wrapper; // phpcs:ignore ?> .charitable-campaign-container .charitable-tabs { |
| 485 |
margin-top: 0px; |
| 486 |
} |
| 487 |
.charitable-campaign-wrap .charitable-campaign-column, |
| 488 |
.charitable-campaign-wrap .charitable-campaign-column:nth-child(even), |
| 489 |
.charitable-campaign-wrap .charitable-campaign-column:nth-child(odd) { |
| 490 |
flex: 0 0 100% !important; |
| 491 |
padding-top: 0; |
| 492 |
padding-bottom: 0; |
| 493 |
padding-left: 0; |
| 494 |
padding-right: 0; |
| 495 |
} |
| 496 |
} |
| 497 |
|
| 498 |
.charitable-preview.charitable-builder-template-<?php echo $charitable_slug; // phpcs:ignore ?> { |