| 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'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['p'] ), 0, 6 ) : '#000000'; |
| 55 |
$secondary = isset( $_GET['s'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['s'] ), 0, 6 ) : '#2B66D1'; |
| 56 |
$tertiary = isset( $_GET['t'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['t'] ), 0, 6 ) : '#F99E36'; |
| 57 |
$button = isset( $_GET['b'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['b'] ), 0, 6 ) : '#5AA152'; |
| 58 |
|
| 59 |
$slug = 'simple-2-col-header'; // 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 |
$wrapper_no_fields = '.charitable-preview.charitable-builder-template-' . $slug . ' #charitable-design-wrap.no-fields-mode .charitable-campaign-preview'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variable used in CSS selectors. |
| 62 |
|
| 63 |
|
| 64 |
?> |
| 65 |
|
| 66 |
.charitable-preview.charitable-builder-template-<?php echo $slug; ?> { /* everything wraps in this */ |
| 67 |
|
| 68 |
font-family: -apple-system, BlinkMacSystemFont, sans-serif; |
| 69 |
|
| 70 |
} |
| 71 |
|
| 72 |
/* this narrows things down a little to the preview area header/tabs */ |
| 73 |
|
| 74 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> { |
| 75 |
/* field items in preview area */ |
| 76 |
font-family: -apple-system, BlinkMacSystemFont, sans-serif; |
| 77 |
} |
| 78 |
|
| 79 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field { |
| 80 |
display: flex; |
| 81 |
} |
| 82 |
|
| 83 |
/* wide spread changes in header vs tabs */ |
| 84 |
|
| 85 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> > header { |
| 86 |
margin-left: 0px; |
| 87 |
margin-right: 0px; |
| 88 |
margin-bottom: 10px; |
| 89 |
font-size: 40px; |
| 90 |
line-height: 70px; |
| 91 |
font-weight: 600; |
| 92 |
} |
| 93 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h1:empty, |
| 94 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h2:empty, |
| 95 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h3:empty, |
| 96 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h4:empty, |
| 97 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h5:empty, |
| 98 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h6:empty { |
| 99 |
display: none; |
| 100 |
} |
| 101 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h1, |
| 102 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h2, |
| 103 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h3, |
| 104 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h4, |
| 105 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h5, |
| 106 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h6 { |
| 107 |
|
| 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 |
|
| 116 |
} |
| 117 |
|
| 118 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content > * { |
| 119 |
color: black; |
| 120 |
} |
| 121 |
|
| 122 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header h5 { |
| 123 |
font-size: 18px; |
| 124 |
line-height: 21px; |
| 125 |
font-weight: 500; |
| 126 |
} |
| 127 |
|
| 128 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .placeholder { |
| 129 |
padding-left: 0; |
| 130 |
padding-right: 0; |
| 131 |
padding-top: 0; |
| 132 |
padding-bottom: 0; |
| 133 |
} |
| 134 |
|
| 135 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> > .charitable-preview-header .charitable-field-wrap.charitable-field-target{ |
| 136 |
min-height: 150px; |
| 137 |
} |
| 138 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> > .charitable-preview-row .charitable-field-wrap.charitable-field-target { |
| 139 |
min-height: 600px; |
| 140 |
} |
| 141 |
|
| 142 |
/* aligns */ |
| 143 |
|
| 144 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left > div { |
| 145 |
margin-left: 0; |
| 146 |
margin-right: auto; |
| 147 |
display: table; |
| 148 |
width: 100%; |
| 149 |
} |
| 150 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center > div { |
| 151 |
margin-left: auto; |
| 152 |
margin-right: auto; |
| 153 |
display: table; |
| 154 |
width: 100%; |
| 155 |
} |
| 156 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right > div { |
| 157 |
margin-left: auto; |
| 158 |
margin-right: 0; |
| 159 |
display: table; |
| 160 |
width: 100%; |
| 161 |
} |
| 162 |
|
| 163 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left div.charitable-field-campaign-title, |
| 164 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center div.charitable-field-campaign-title, |
| 165 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right div.charitable-field-campaign-title { |
| 166 |
width: auto; |
| 167 |
} |
| 168 |
|
| 169 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left .donation-wall h5, |
| 170 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-left .donation-wall ol { |
| 171 |
text-align: left; |
| 172 |
} |
| 173 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center .donation-wall h5, |
| 174 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-center .donation-wall ol { |
| 175 |
text-align: center; |
| 176 |
} |
| 177 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right .donation-wall h5, |
| 178 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-align-right .donation-wall ol { |
| 179 |
text-align: right; |
| 180 |
} |
| 181 |
|
| 182 |
/* column specifics */ |
| 183 |
|
| 184 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .column[data-column-id="0"] { |
| 185 |
flex: 1; |
| 186 |
border: 0; |
| 187 |
padding: 2px; |
| 188 |
} |
| 189 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .column[data-column-id="0"] .charitable-field-photo { |
| 190 |
padding: 0; |
| 191 |
margin: 0; |
| 192 |
border: 0; |
| 193 |
} |
| 194 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .column[data-column-id="1"] { |
| 195 |
flex: 1; |
| 196 |
border: 0; |
| 197 |
padding: 2px; |
| 198 |
} |
| 199 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .column[data-column-id="2"] { |
| 200 |
flex: 1; |
| 201 |
border: 0; |
| 202 |
padding: 2px; |
| 203 |
} |
| 204 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-panel-fields .charitable-field-wrap { |
| 205 |
padding-bottom: 0; |
| 206 |
} |
| 207 |
|
| 208 |
/* headlines in general */ |
| 209 |
|
| 210 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> h5.charitable-field-preview-headline { |
| 211 |
|
| 212 |
} |
| 213 |
|
| 214 |
/* field: campaign title */ |
| 215 |
|
| 216 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-title h1 { |
| 217 |
margin: 15px auto; |
| 218 |
font-size: 72px; |
| 219 |
line-height: 84px; |
| 220 |
font-weight: 600; |
| 221 |
} |
| 222 |
|
| 223 |
/* field: campaign description */ |
| 224 |
|
| 225 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description h5.charitable-field-preview-headline { |
| 226 |
font-size: 27px; |
| 227 |
line-height: 29px; |
| 228 |
font-weight: 500; |
| 229 |
} |
| 230 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-campaign-description .charitable-campaign-builder-placeholder-preview-text { |
| 231 |
padding: 0; |
| 232 |
margin: 0; |
| 233 |
color: #000000; |
| 234 |
} |
| 235 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-campaign-builder-no-description-preview div { |
| 236 |
margin: 0; |
| 237 |
float: none; |
| 238 |
} |
| 239 |
|
| 240 |
|
| 241 |
/* field: text */ |
| 242 |
|
| 243 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-text .charitable-campaign-builder-placeholder-preview-text { |
| 244 |
padding: 0; |
| 245 |
color: #202020; |
| 246 |
} |
| 247 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-text h5.charitable-field-preview-headline { |
| 248 |
font-size: 27px; |
| 249 |
line-height: 29px; |
| 250 |
font-weight: 500; |
| 251 |
margin-top: 5px; |
| 252 |
margin-bottom: 5px; |
| 253 |
} |
| 254 |
|
| 255 |
/* field: html */ |
| 256 |
|
| 257 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-html .placeholder { |
| 258 |
padding: 0; |
| 259 |
margin: 0; |
| 260 |
} |
| 261 |
|
| 262 |
/* field: button */ |
| 263 |
|
| 264 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-donate-button .charitable-field-preview-donate-button span.placeholder { |
| 265 |
padding: 0; |
| 266 |
} |
| 267 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-donate-button .charitable-field-preview-donate-button span.placeholder.button { |
| 268 |
text-transform: none; |
| 269 |
border-radius: 0px; |
| 270 |
margin-top: 0; |
| 271 |
margin-bottom: 0; |
| 272 |
width: 100%; |
| 273 |
font-weight: 400; |
| 274 |
min-height: 50px; |
| 275 |
height: 50px; |
| 276 |
font-size: 16px; |
| 277 |
line-height: 50px; |
| 278 |
} |
| 279 |
|
| 280 |
/* field: photo */ |
| 281 |
|
| 282 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-photo .primary-image { |
| 283 |
border: transparent; |
| 284 |
border-radius: 0px; |
| 285 |
} |
| 286 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-photo .primary-image img { |
| 287 |
max-width: 100%; |
| 288 |
} |
| 289 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content .charitable-field.charitable-field-photo .primary-image img { |
| 290 |
border-radius: 0px; |
| 291 |
} |
| 292 |
|
| 293 |
|
| 294 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-photo .charitable-preview-align-center .primary-image-container { |
| 295 |
text-align: center; |
| 296 |
} |
| 297 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-photo .charitable-preview-align-left .primary-image-container { |
| 298 |
text-align: left; |
| 299 |
} |
| 300 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-photo .charitable-preview-align-right .primary-image-container { |
| 301 |
text-align: right; |
| 302 |
} |
| 303 |
|
| 304 |
/* field: photo */ |
| 305 |
|
| 306 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> header .primary-image-container { |
| 307 |
margin: 0; |
| 308 |
padding: 0; |
| 309 |
} |
| 310 |
|
| 311 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .tab-content .primary-image-container { |
| 312 |
margin: 0; |
| 313 |
padding: 0; |
| 314 |
} |
| 315 |
|
| 316 |
/* field: progress bar */ |
| 317 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar { |
| 318 |
margin-top: 10px; |
| 319 |
margin-bottom: 10px; |
| 320 |
} |
| 321 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar-info-row div.campaign-percent-raised { |
| 322 |
color: <?php echo $primary; ?>; |
| 323 |
font-weight: 400; |
| 324 |
font-size: 18px; |
| 325 |
line-height: 21px; |
| 326 |
} |
| 327 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar-info-row div.campaign-goal { |
| 328 |
font-weight: 400; |
| 329 |
font-size: 18px; |
| 330 |
line-height: 21px; |
| 331 |
} |
| 332 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress { |
| 333 |
border: 0; |
| 334 |
padding: 0; |
| 335 |
background-color: #E0E0E0; |
| 336 |
border-radius: 5px; |
| 337 |
margin-top: 15px; |
| 338 |
margin-left: 0; |
| 339 |
margin-right: 0; |
| 340 |
} |
| 341 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar { |
| 342 |
background-color: <?php echo $secondary; ?>; |
| 343 |
height: 8px !important; |
| 344 |
border-radius: 5px; |
| 345 |
text-align: right; |
| 346 |
opacity: 1.0; |
| 347 |
} |
| 348 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field.charitable-field-progress-bar .progress-bar span { |
| 349 |
display: inline-block; |
| 350 |
border-radius: 25px; |
| 351 |
width: 25px; |
| 352 |
height: 25px; |
| 353 |
margin-right: -15px; |
| 354 |
margin-top: -10px; |
| 355 |
} |
| 356 |
|
| 357 |
/* field: social linking */ |
| 358 |
|
| 359 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking { |
| 360 |
display: table; |
| 361 |
width: auto !important; |
| 362 |
} |
| 363 |
|
| 364 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-field-preview-social-linking-headline-container { |
| 365 |
display: block; |
| 366 |
float: left; |
| 367 |
padding: 0; |
| 368 |
} |
| 369 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-field-row { |
| 370 |
display: block; |
| 371 |
float: left; |
| 372 |
width: auto; |
| 373 |
margin: 0 0 0 0; |
| 374 |
} |
| 375 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking h5.charitable-field-preview-headline { |
| 376 |
font-size: 14px; |
| 377 |
line-height: 26px; |
| 378 |
font-weight: 300; |
| 379 |
margin: 0 20px 0 0; |
| 380 |
padding: 0; |
| 381 |
color: <?php echo $primary; ?>; |
| 382 |
} |
| 383 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-linking .charitable-placeholder { |
| 384 |
padding: 10px; |
| 385 |
} |
| 386 |
|
| 387 |
/* field: social sharing */ |
| 388 |
|
| 389 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing { |
| 390 |
display: table; |
| 391 |
width: auto !important; |
| 392 |
} |
| 393 |
|
| 394 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-field-preview-social-sharing-headline-container { |
| 395 |
display: block; |
| 396 |
float: left; |
| 397 |
padding: 0; |
| 398 |
} |
| 399 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-field-row { |
| 400 |
display: block; |
| 401 |
float: left; |
| 402 |
width: auto; |
| 403 |
margin: 0 0 0 0; |
| 404 |
} |
| 405 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing h5.charitable-field-preview-headline { |
| 406 |
font-size: 14px; |
| 407 |
line-height: 26px; |
| 408 |
font-weight: 300; |
| 409 |
margin: 0 20px 0 0; |
| 410 |
padding: 0; |
| 411 |
color: <?php echo $primary; ?>; |
| 412 |
} |
| 413 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-social-sharing .charitable-placeholder { |
| 414 |
padding: 10px; |
| 415 |
} |
| 416 |
|
| 417 |
/* field: campaign summary */ |
| 418 |
|
| 419 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary { |
| 420 |
padding-left: 0; |
| 421 |
padding-right: 0; |
| 422 |
} |
| 423 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary div { |
| 424 |
color: <?php echo $primary; ?>; |
| 425 |
font-weight: 400; |
| 426 |
font-size: 14px; |
| 427 |
line-height: 16px; |
| 428 |
} |
| 429 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary div span { |
| 430 |
color: <?php echo $secondary; ?>; |
| 431 |
font-weight: 600; |
| 432 |
font-size: 32px; |
| 433 |
line-height: 38px; |
| 434 |
} |
| 435 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-preview-campaign-summary .campaign-summary-item { |
| 436 |
color: <?php echo $primary; ?>; |
| 437 |
border: 0; |
| 438 |
margin-top: 5px; |
| 439 |
margin-bottom: 5px; |
| 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 $primary; ?>; |
| 447 |
border: 1px solid <?php echo $primary; ?> !important; |
| 448 |
} |
| 449 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donate-amount ul li.suggested-donation-amount.selected { |
| 450 |
border: 10px solid <?php echo $tertiary; ?>; |
| 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 $secondary; ?>; |
| 454 |
} |
| 455 |
|
| 456 |
/* field: donate form */ |
| 457 |
|
| 458 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-field-donation-form .charitable-form-placeholder { |
| 459 |
width: 100%; |
| 460 |
margin-left: auto; |
| 461 |
margin-right: auto; |
| 462 |
background-color: #f6f6f6; |
| 463 |
height: auto; |
| 464 |
max-height: auto; |
| 465 |
min-height: 200px; |
| 466 |
padding-top: 0; |
| 467 |
padding-bottom: 0; |
| 468 |
display: inline-block; |
| 469 |
} |
| 470 |
|
| 471 |
/* field: shortcode */ |
| 472 |
|
| 473 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .shortcode-preview { |
| 474 |
padding-left: 10px; |
| 475 |
padding-right: 10px; |
| 476 |
} |
| 477 |
|
| 478 |
/* tabs: container */ |
| 479 |
|
| 480 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container { |
| 481 |
background-color: transparent; |
| 482 |
margin-top: 0px; |
| 483 |
} |
| 484 |
|
| 485 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container .tab-content img { |
| 486 |
max-width: 100%; |
| 487 |
} |
| 488 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container .tab-content > ul { |
| 489 |
margin-left: 0; |
| 490 |
margin-right: 0; |
| 491 |
} |
| 492 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> .charitable-preview-tab-container .tab-content { |
| 493 |
padding: 0 1px; |
| 494 |
} |
| 495 |
|
| 496 |
|
| 497 |
/* tabs: tab nav */ |
| 498 |
|
| 499 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav { |
| 500 |
border: 1px solid transparent; |
| 501 |
background-color: transparent; |
| 502 |
width: auto; |
| 503 |
margin-left: 0; |
| 504 |
margin-right: 0; |
| 505 |
} |
| 506 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li { |
| 507 |
border-top: 0; |
| 508 |
border-right: 0; |
| 509 |
border-bottom: 0; |
| 510 |
border-left: 0; |
| 511 |
background-color: transparent; |
| 512 |
margin: 0 10px 0 0; |
| 513 |
} |
| 514 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li a { |
| 515 |
color: black; |
| 516 |
display: block; |
| 517 |
text-transform: none; |
| 518 |
} |
| 519 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li.active { |
| 520 |
background-color: <?php echo $primary; ?>; |
| 521 |
color: white; |
| 522 |
text-decoration: none; |
| 523 |
} |
| 524 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li:hover { |
| 525 |
background-color: <?php echo $primary; ?>; |
| 526 |
color: white; |
| 527 |
text-decoration: none; |
| 528 |
filter: brightness(90%); |
| 529 |
} |
| 530 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li.active a, |
| 531 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav li:hover a { |
| 532 |
color: white; |
| 533 |
} |
| 534 |
|
| 535 |
/* tabs: style */ |
| 536 |
|
| 537 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-boxed li { |
| 538 |
|
| 539 |
} |
| 540 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-boxed li a { |
| 541 |
|
| 542 |
} |
| 543 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-rounded li { |
| 544 |
|
| 545 |
} |
| 546 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-rounded li a { |
| 547 |
|
| 548 |
} |
| 549 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li { |
| 550 |
background-color: transparent; |
| 551 |
border-top: 0; |
| 552 |
border-right: 0; |
| 553 |
border-left: 0; |
| 554 |
} |
| 555 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li:hover { |
| 556 |
background-color: transparent; |
| 557 |
border-bottom: 1px solid <?php echo $button; ?> !important; |
| 558 |
} |
| 559 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li:hover a { |
| 560 |
color: black; |
| 561 |
} |
| 562 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li.active { |
| 563 |
background-color: transparent; |
| 564 |
} |
| 565 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li a { |
| 566 |
color: <?php echo $primary; ?>; |
| 567 |
border-top: 0; |
| 568 |
border-right: 0; |
| 569 |
border-left: 0; |
| 570 |
} |
| 571 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-style-minimum li.active { |
| 572 |
border-bottom: 1px solid <?php echo $button; ?> !important; |
| 573 |
} |
| 574 |
|
| 575 |
/* tabs: sized */ |
| 576 |
|
| 577 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-small li { |
| 578 |
|
| 579 |
} |
| 580 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-small li a { |
| 581 |
font-weight: 500; |
| 582 |
font-size: inherit; |
| 583 |
line-height: inherit; |
| 584 |
} |
| 585 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-medium li { |
| 586 |
|
| 587 |
} |
| 588 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-medium li a { |
| 589 |
font-weight: 500; |
| 590 |
font-size: inherit; |
| 591 |
line-height: inherit; |
| 592 |
} |
| 593 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-large li { |
| 594 |
|
| 595 |
} |
| 596 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-large li a { |
| 597 |
font-weight: 500; |
| 598 |
font-size: inherit; |
| 599 |
line-height: inherit; |
| 600 |
} |
| 601 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-small li { |
| 602 |
font-size:10px; |
| 603 |
padding:0 |
| 604 |
} |
| 605 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-small li a { |
| 606 |
font-size:16px; |
| 607 |
padding:18px |
| 608 |
} |
| 609 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-medium li { |
| 610 |
font-size:14px; |
| 611 |
padding:0 |
| 612 |
} |
| 613 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-medium li a { |
| 614 |
font-size:21px; |
| 615 |
padding:23px |
| 616 |
} |
| 617 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-large li { |
| 618 |
font-size:21px; |
| 619 |
padding:0 |
| 620 |
} |
| 621 |
<?php echo charitable_esc_attr_php( $wrapper ); ?> article nav.tab-size-large li a { |
| 622 |
font-size:30px; |
| 623 |
padding:32px |
| 624 |
} |
| 625 |
// @codingStandardsIgnoreEnd |