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