| 1 |
<?php |
| 2 |
/** |
| 3 |
* Renders the custom styles added by Charitable. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/custom-styles.css.php |
| 6 |
* |
| 7 |
* @author Studio 164a |
| 8 |
* @package Charitable/Templates/CSS |
| 9 |
* @since 1.0.0 |
| 10 |
* @version 1.0.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 15 |
|
| 16 |
$highlight_colour = charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) ); |
| 17 |
|
| 18 |
?> |
| 19 |
<style id="charitable-highlight-colour-styles"> |
| 20 |
.campaign-raised .amount, |
| 21 |
.campaign-figures .amount, |
| 22 |
.donors-count, |
| 23 |
.time-left, |
| 24 |
.charitable-form-field a:not(.button), |
| 25 |
.charitable-form-fields .charitable-fieldset a:not(.button), |
| 26 |
.charitable-notice, |
| 27 |
.charitable-notice .errors a { |
| 28 |
color: <?php echo $highlight_colour ?>; |
| 29 |
} |
| 30 |
|
| 31 |
.campaign-progress-bar .bar, |
| 32 |
.donate-button, |
| 33 |
.charitable-donation-form .donation-amount.selected, |
| 34 |
.charitable-donation-amount-form .donation-amount.selected { |
| 35 |
background-color: <?php echo $highlight_colour ?>; |
| 36 |
} |
| 37 |
|
| 38 |
.charitable-donation-form .donation-amount.selected, |
| 39 |
.charitable-donation-amount-form .donation-amount.selected, |
| 40 |
.charitable-notice, |
| 41 |
.charitable-drag-drop-images li:hover a.remove-image, |
| 42 |
.supports-drag-drop .charitable-drag-drop-dropzone.drag-over { |
| 43 |
border-color: <?php echo $highlight_colour ?>; |
| 44 |
} |
| 45 |
|
| 46 |
<?php do_action( 'charitable_custom_styles', $highlight_colour ) ?> |
| 47 |
</style> |