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