| 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'] ) : '#7A8347'; |
| 55 |
$secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#000000'; |
| 56 |
$tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#5F5F5F'; |
| 57 |
$button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#7A8347'; |
| 58 |
|
| 59 |
$slug = 'school-trip'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable used in CSS selectors. |
| 60 |
$wrapper = '.charitable-preview.charitable-builder-template-' . $slug . ' #charitable-design-wrap .charitable-campaign-preview'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable used in CSS selectors. |
| 61 |
|
| 62 |
require_once '../../admin/campaign-builder/templates/functions-campaign-templates.php'; |
| 63 |
?> |
| 64 |
|
| 65 |
.charitable-preview.charitable-builder-template-<?php echo $slug; ?> { /* everything wraps in this */ |
| 66 |
|
| 67 |
font-family: SF Pro Display, -apple-system, BlinkMacSystemFont, sans-serif; |
| 68 |
|
| 69 |
} |
| 70 |
|
| 71 |
/* this narrows things down a little to the preview area div.charitable-preview-row/tabs */ |
| 72 |
|
| 73 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> { |
| 74 |
/* field items in preview area */ |
| 75 |
} |
| 76 |
|
| 77 |
/* wide spread changes in div.charitable-preview-row vs tabs */ |
| 78 |
|
| 79 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field { |
| 80 |
display: flex; |
| 81 |
} |
| 82 |
|
| 83 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row { |
| 84 |
background-color: transparent; |
| 85 |
padding: 50px; |
| 86 |
color: white; |
| 87 |
} |
| 88 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row.no-padding, |
| 89 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row.no-padding div.column { |
| 90 |
padding: 0 !important; |
| 91 |
} |
| 92 |
|
| 93 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h1, |
| 94 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h2, |
| 95 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h3, |
| 96 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h4, |
| 97 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h5, |
| 98 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h6 { |
| 99 |
color: <?php echo $primary; ?>; |
| 100 |
} |
| 101 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h1:empty, |
| 102 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h2:empty, |
| 103 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h3:empty, |
| 104 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h4:empty, |
| 105 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h5:empty, |
| 106 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h6:empty { |
| 107 |
display: none; |
| 108 |
} |
| 109 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h1, |
| 110 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h2, |
| 111 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h3, |
| 112 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h4, |
| 113 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h5, |
| 114 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h6 { |
| 115 |
color: black; |
| 116 |
font-size: 32px; |
| 117 |
line-height: 38px; |
| 118 |
} |
| 119 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content { |
| 120 |
color: <?php echo $tertiary; ?>; |
| 121 |
} |
| 122 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content > * { |
| 123 |
color: #92908F; |
| 124 |
} |
| 125 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row > * { |
| 126 |
color: <?php echo $tertiary; ?>; |
| 127 |
} |
| 128 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h5 { |
| 129 |
font-size: 24px; |
| 130 |
line-height: 28px; |
| 131 |
} |
| 132 |
|
| 133 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .placeholder { |
| 134 |
padding: 0; |
| 135 |
} |
| 136 |
|
| 137 |
/* aligns */ |
| 138 |
|
| 139 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left > div { |
| 140 |
margin-left: 0; |
| 141 |
margin-right: auto; |
| 142 |
} |
| 143 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center > div, |
| 144 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center .charitable-header { |
| 145 |
margin-left: auto; |
| 146 |
margin-right: auto; |
| 147 |
} |
| 148 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right > div { |
| 149 |
margin-left: auto; |
| 150 |
margin-right: 0; |
| 151 |
} |
| 152 |
|
| 153 |
|
| 154 |
/* column specifics */ |
| 155 |
|
| 156 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-column:nth-child(even) { |
| 157 |
flex: 2; |
| 158 |
border: 0; |
| 159 |
padding-top: 0px; |
| 160 |
} |
| 161 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-column:nth-child(odd) { |
| 162 |
border: 0; |
| 163 |
flex: 1 1 26%; |
| 164 |
padding-top: 0px; |
| 165 |
padding-bottom: 0px; |
| 166 |
} |
| 167 |
|
| 168 |
/* section specifics */ |
| 169 |
|
| 170 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-column:nth-child(even) .charitable-field-section { |
| 171 |
background-color: <?php echo $primary; ?>; |
| 172 |
padding: 20px; |
| 173 |
} |
| 174 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-column:nth-child(odd) .charitable-field-section { |
| 175 |
background-color: transparent; |
| 176 |
|
| 177 |
} |
| 178 |
|
| 179 |
/* header specifics */ |
| 180 |
|
| 181 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-header .charitable-preview-align-center { |
| 182 |
text-align: center; |
| 183 |
} |
| 184 |
|
| 185 |
/* headlines in general */ |
| 186 |
|
| 187 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row h5.charitable-field-preview-headline { |
| 188 |
font-weight: 400; |
| 189 |
font-size: 32px; |
| 190 |
line-height: 34px; |
| 191 |
} |
| 192 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row .charitable-field-column:nth-child(even) h5.charitable-field-preview-headline { |
| 193 |
color: white; |
| 194 |
} |
| 195 |
|
| 196 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content h5.charitable-field-preview-headline { |
| 197 |
color: black !important; |
| 198 |
font-weight: 500 !important; |
| 199 |
text-transform: inherit; |
| 200 |
font-size: 32px !important; |
| 201 |
line-height: 38px !important; |
| 202 |
margin-top: 20px; |
| 203 |
margin-bottom: 20px; |
| 204 |
} |
| 205 |
|
| 206 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-header h5.charitable-field-preview-headline { |
| 207 |
color: <?php echo $primary; ?> !important; |
| 208 |
font-weight: 500 !important; |
| 209 |
text-transform: inherit; |
| 210 |
font-size: 42px !important; |
| 211 |
line-height: 48px !important; |
| 212 |
margin-top: 20px; |
| 213 |
margin-bottom: 20px; |
| 214 |
} |
| 215 |
|
| 216 |
/* field: campaign title */ |
| 217 |
|
| 218 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-title h1 { |
| 219 |
margin: 5px 0 5px 0; |
| 220 |
color: <?php echo $secondary; ?>; |
| 221 |
font-size: 55px; |
| 222 |
line-height: 58px; |
| 223 |
font-weight: 100; |
| 224 |
} |
| 225 |
|
| 226 |
/* field: campaign description */ |
| 227 |
|
| 228 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text { |
| 229 |
padding: 0; |
| 230 |
color: <?php echo $tertiary; ?>; |
| 231 |
} |
| 232 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text, |
| 233 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text p { |
| 234 |
font-size: 15px; |
| 235 |
line-height: 28px; |
| 236 |
font-weight: 400; |
| 237 |
} |
| 238 |
|
| 239 |
|
| 240 |
/* field: text */ |
| 241 |
|
| 242 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-text .charitable-campaign-builder-placeholder-preview-text { |
| 243 |
padding: 0; |
| 244 |
|
| 245 |
} |
| 246 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-column:nth-child(even) .charitable-field-text .charitable-campaign-builder-placeholder-preview-text { |
| 247 |
color: white; |
| 248 |
} |
| 249 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-text h5.charitable-field-preview-headline { |
| 250 |
|
| 251 |
} |
| 252 |
|
| 253 |
|
| 254 |
/* field: button */ |
| 255 |
|
| 256 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-donate-button .charitable-field-preview-donate-button span.placeholder.button { |
| 257 |
background-color: <?php echo $button; ?> !important; |
| 258 |
border-color: <?php echo $button; ?> !important; |
| 259 |
color: <?php echo charitable_get_constracting_text_color( $button ); ?>; |
| 260 |
text-transform: uppercase; |
| 261 |
border-radius: 0px; |
| 262 |
margin-top: 0; |
| 263 |
margin-bottom: 0; |
| 264 |
width: 100%; |
| 265 |
font-weight: 400; |
| 266 |
min-height: 50px; |
| 267 |
height: 50px; |
| 268 |
font-size: 16px; |
| 269 |
line-height: 50px; |
| 270 |
} |
| 271 |
|
| 272 |
/* field: photo */ |
| 273 |
|
| 274 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-photo .primary-image { |
| 275 |
border: transparent; |
| 276 |
} |
| 277 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-photo img { |
| 278 |
width: 100%; |
| 279 |
border: 0; |
| 280 |
border-radius: 15px; |
| 281 |
} |
| 282 |
|
| 283 |
/* field: photo */ |
| 284 |
|
| 285 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> div.charitable-preview-row .primary-image-container { |
| 286 |
margin: 0; |
| 287 |
padding: 0; |
| 288 |
} |
| 289 |
|
| 290 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content .primary-image-container { |
| 291 |
margin: 0; |
| 292 |
padding: 0; |
| 293 |
} |
| 294 |
|
| 295 |
/* field: progress bar */ |
| 296 |
|
| 297 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar-info-row div.campaign-percent-raised { |
| 298 |
color: #FFFFFF; |
| 299 |
font-size: 21px; |
| 300 |
line-height: 21px; |
| 301 |
font-weight: 100; |
| 302 |
padding-left: 0; |
| 303 |
} |
| 304 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar-info-row div.campaign-goal { |
| 305 |
color: white; |
| 306 |
font-weight: 100; |
| 307 |
font-size: 21px; |
| 308 |
line-height: 21px; |
| 309 |
} |
| 310 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress { |
| 311 |
border: 0; |
| 312 |
padding: 0; |
| 313 |
background-color: #E0E0E0; |
| 314 |
border-radius: 20px; |
| 315 |
margin-top: 15px; |
| 316 |
} |
| 317 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar { |
| 318 |
background-color: white; |
| 319 |
height: 13px !important; |
| 320 |
border-radius: 20px; |
| 321 |
text-align: right; |
| 322 |
opacity: 1.0; |
| 323 |
} |
| 324 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar span { |
| 325 |
display: none; |
| 326 |
} |
| 327 |
|
| 328 |
/* field: social linking */ |
| 329 |
|
| 330 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking { |
| 331 |
display: table; |
| 332 |
} |
| 333 |
|
| 334 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-field-preview-social-linking-headline-container { |
| 335 |
display: block; |
| 336 |
float: left; |
| 337 |
padding: 0; |
| 338 |
} |
| 339 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-field-row { |
| 340 |
display: block; |
| 341 |
float: left; |
| 342 |
width: auto; |
| 343 |
margin: 0 0 0 0; |
| 344 |
} |
| 345 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking h5.charitable-field-preview-headline { |
| 346 |
font-size: 14px !important; |
| 347 |
line-height: 16px !important; |
| 348 |
color: <?php echo $secondary; ?>; |
| 349 |
font-weight: 300 !important; |
| 350 |
margin: 0 15px 0 0; |
| 351 |
padding: 5px 5px 5px 0; |
| 352 |
} |
| 353 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-placeholder { |
| 354 |
padding: 2px 0 0 0px; |
| 355 |
} |
| 356 |
|
| 357 |
/* field: social sharing */ |
| 358 |
|
| 359 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing { |
| 360 |
display: table; |
| 361 |
} |
| 362 |
|
| 363 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-field-preview-social-sharing-headline-container { |
| 364 |
display: block; |
| 365 |
float: left; |
| 366 |
padding: 0; |
| 367 |
} |
| 368 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-field-row { |
| 369 |
display: block; |
| 370 |
float: left; |
| 371 |
width: auto; |
| 372 |
margin: 0 0 0 0; |
| 373 |
} |
| 374 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing h5.charitable-field-preview-headline { |
| 375 |
font-size: 14px !important; |
| 376 |
line-height: 16px !important; |
| 377 |
color: <?php echo $secondary; ?>; |
| 378 |
font-weight: 300 !important; |
| 379 |
margin: 0 15px 0 0; |
| 380 |
padding: 5px 5px 5px 0; |
| 381 |
} |
| 382 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-placeholder { |
| 383 |
padding: 10px; |
| 384 |
} |
| 385 |
|
| 386 |
/* field: social links and sharing */ |
| 387 |
|
| 388 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-social-links .charitable-field-row .charitable-placeholder, |
| 389 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-social-sharing .charitable-field-row .charitable-placeholder { |
| 390 |
padding: 10px; |
| 391 |
} |
| 392 |
<?php |
| 393 |
// Include shared social icons CSS with white icon style. |
| 394 |
$icon_style = 'white'; |
| 395 |
include dirname( __FILE__ ) . '/partials/social-icons.php'; |
| 396 |
?> |
| 397 |
|
| 398 |
|
| 399 |
/* field: campaign summary */ |
| 400 |
|
| 401 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary { |
| 402 |
padding-left: 0; |
| 403 |
padding-right: 0; |
| 404 |
} |
| 405 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary div { |
| 406 |
|
| 407 |
font-weight: 400; |
| 408 |
font-size: 14px; |
| 409 |
line-height: 16px; |
| 410 |
} |
| 411 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary div span { |
| 412 |
color: white; |
| 413 |
font-weight: 100; |
| 414 |
font-size: 32px; |
| 415 |
line-height: 38px; |
| 416 |
} |
| 417 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item { |
| 418 |
border: 0; |
| 419 |
margin-top: 5px; |
| 420 |
margin-bottom: 5px; |
| 421 |
text-transform: capitalize; |
| 422 |
color: black; |
| 423 |
} |
| 424 |
|
| 425 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-column:nth-child(even) .charitable-field-section .charitable-field-preview-campaign-summary .campaign-summary-item { |
| 426 |
color: white; |
| 427 |
} |
| 428 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item.campaign_hide_percent_raised { |
| 429 |
width: 34%; |
| 430 |
} |
| 431 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item.campaign_hide_amount_donated { |
| 432 |
width: 43%; |
| 433 |
} |
| 434 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item.campaign_hide_number_of_donors { |
| 435 |
width: 23%; |
| 436 |
} |
| 437 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item.campaign_hide_time_remaining { |
| 438 |
width: 100%; |
| 439 |
} |
| 440 |
|
| 441 |
|
| 442 |
/* field: donate amount */ |
| 443 |
|
| 444 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount label, |
| 445 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount input.custom-donation-input[type="text"] { |
| 446 |
color: <?php echo $secondary; ?>; |
| 447 |
border: 1px solid <?php echo $secondary; ?> !important; |
| 448 |
} |
| 449 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected { |
| 450 |
background-color: <?php echo $primary; ?>; |
| 451 |
} |
| 452 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected span.amount { |
| 453 |
color: <?php echo $tertiary; ?>; |
| 454 |
} |
| 455 |
|
| 456 |
/* tabs: container */ |
| 457 |
|
| 458 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container { |
| 459 |
background-color: white; |
| 460 |
} |
| 461 |
|
| 462 |
/* tabs: tab nav */ |
| 463 |
|
| 464 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav { |
| 465 |
width: auto; |
| 466 |
} |
| 467 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li { |
| 468 |
border: 1px solid <?php echo $primary; ?>; |
| 469 |
background-color: transparent; |
| 470 |
margin: 0 15px 0 0; |
| 471 |
} |
| 472 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li a { |
| 473 |
color: black; |
| 474 |
display: block; |
| 475 |
font-weight: 500; |
| 476 |
font-size: 14px; |
| 477 |
line-height: 15px; |
| 478 |
text-transform: none; |
| 479 |
} |
| 480 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li.active { |
| 481 |
background-color: <?php echo $primary; ?>; |
| 482 |
} |
| 483 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li.active a { |
| 484 |
color: white; |
| 485 |
} |
| 486 |
|
| 487 |
/* missing addons? */ |
| 488 |
|
| 489 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-charitable-videos { |
| 490 |
margin-top: 20px; |
| 491 |
margin-bottom: 20px; |
| 492 |
min-height: 500px; |
| 493 |
background-color: rgba(0,0,0,.7); |
| 494 |
display: table; |
| 495 |
} |
| 496 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-charitable-videos .charitable-missing-addon-content { |
| 497 |
background-color: transparent; |
| 498 |
vertical-align: middle; |
| 499 |
display: table-cell; |
| 500 |
height: 100; |
| 501 |
} |
| 502 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-charitable-videos .charitable-missing-addon-content h2 { |
| 503 |
color: white; |
| 504 |
} |
| 505 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-charitable-videos .charitable-missing-addon-bg { |
| 506 |
background-size: cover; |
| 507 |
} |
| 508 |
|
| 509 |
// @codingStandardsIgnoreEnd |