PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / includes / compat / styles / inline-styles.php

inline-styles.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at includes/compat/styles/inline-styles.php

43 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 David Bisset
7 * @copyright Copyright (c) 2023, WP Charitable LLC
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 1.6.29
10 * @version 1.6.55
11 */
12
13 // Exit if accessed directly.
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17
18 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- This is a local variable, not a global variable.
19 $highlight_colour = charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) );
20
21 return [
22 'twentytwenty-style' => '.mce-btn button{background: transparent;}'
23 . '.supports-drag-drop .charitable-drag-drop-dropzone,.campaign-summary,.campaign-loop .campaign,.charitable-donation-form .donation-amounts .donation-amount{background-color:#fff;color:#000;}'
24 . '.charitable-form-fields .charitable-fieldset{border:none;padding:0;margin-bottom:2em;}'
25 . '#charitable-donor-fields .charitable-form-header,#charitable-user-fields,#charitable-meta-fields{padding-left:0;padding-right:0;}'
26 . '.campaign-loop.campaign-grid{margin:0 auto 1em;}'
27 . '.charitable-form-field.charitable-form-field-checkbox input[type="checkbox"] {height:1.5rem;width:1.5rem;display:inline-block;}',
28 'hello-elementor' => '.donate-button{color: #fff;}',
29 'divi-style' => '.donate-button.button{color:' . $highlight_colour . ';background:#fff;border-color:' . $highlight_colour . ';}'
30 . '#left-area .donation-amounts{padding: 0;}'
31 . '.charitable-submit-field .button{font-size:20px;}'
32 . '.et_pb_widget .charitable-submit-field .button{font-size:1em;}'
33 . '.et_pb_widget .charitable-submit-field .et_pb_button:after{font-size:1.6em;}',
34 'solopine_style' => '.charitable-button{background-color:#161616;color:#fff;font:700 10px/10px "Montserrat", sans-serif;border:none;text-transform:uppercase;padding:14px 15px 14px 16px;letter-spacing:1.5px;}'
35 . '.charitable-button.donate-button{background-color:' . $highlight_colour . ';}',
36 'twenty-twenty-one-style' => '.charitable-form-field.charitable-form-field-checkbox input[type="checkbox"],.charitable-form-field.charitable-form-field-radio input[type="radio"],.charitable-radio-list input[type=radio] {height:1.5rem;width:1.5rem;display:inline-block;}'
37 . '.supports-drag-drop .charitable-drag-drop-dropzone,.campaign-summary,.campaign-loop .campaign,.charitable-donation-form .donation-amounts .donation-amount{background-color:#fff;color:#000;}'
38 . '.charitable-form-fields .charitable-fieldset{border:none;padding:0;margin-bottom:2em;}'
39 . '#charitable-donor-fields .charitable-form-header,#charitable-user-fields,#charitable-meta-fields{padding-left:0;padding-right:0;}'
40 . '.campaign-loop.campaign-grid{margin:0 auto 1em;}',
41 'tove-styles-front-end' => '.charitable-form-fields .charitable-fieldset{background-color:#fff;}',
42 ];
43