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