| 1 |
<?php |
| 2 |
/** |
| 3 |
* Returns an array with all compat styles, ordered by the stylesheet they should be added to. |
| 4 |
* |
| 5 |
* @package Charitable/Compat |
| 6 |
* @author Eric Daams |
| 7 |
* @copyright Copyright (c) 2020, Studio 164a |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 1.6.29 |
| 10 |
* @version 1.6.29 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
$highlight_colour = charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) ); |
| 19 |
|
| 20 |
return [ |
| 21 |
'twentytwenty-style' => '.mce-btn button{background: transparent;}' |
| 22 |
. '.supports-drag-drop .charitable-drag-drop-dropzone,.campaign-summary,.campaign-loop .campaign,.charitable-donation-form .donation-amounts .donation-amount{background-color:#fff;color:#000;}' |
| 23 |
. '.charitable-form-fields .charitable-fieldset{border:none;padding:0;margin-bottom:2em;}' |
| 24 |
. '#charitable-donor-fields .charitable-form-header,#charitable-user-fields,#charitable-meta-fields{padding-left:0;padding-right:0;}' |
| 25 |
. '.campaign-loop.campaign-grid{margin:0 auto 1em;}', |
| 26 |
'hello-elementor' => '.donate-button{color: #fff;}', |
| 27 |
'divi-style' => '.donate-button.button{color:' . $highlight_colour . ';background:#fff;border-color:' . $highlight_colour . ';}' |
| 28 |
. '#left-area .donation-amounts{padding: 0;}' |
| 29 |
. '.charitable-submit-field .button{font-size:20px;}' |
| 30 |
. '.et_pb_widget .charitable-submit-field .button{font-size:1em;}' |
| 31 |
. '.et_pb_widget .charitable-submit-field .et_pb_button:after{font-size:1.6em;}', |
| 32 |
]; |
| 33 |
|