- Timestamp:
- 10/08/2019 07:05:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php
r46357 r46445 61 61 $accent_default = '#cd2653'; 62 62 /** 63 * Filters the CSS selectors target ting button component on frontend to apply common css63 * Filters the CSS selectors targeting button component on frontend to apply common css 64 64 * 65 65 * @since 1.0.0 66 66 * 67 * @param string $string The comma separated string of all CSS selectors target ting button component67 * @param string $string The comma separated string of all CSS selectors targeting button component 68 68 */ 69 69 $buttons_targets = apply_filters( 'twentytwenty_buttons_targets_front_end', 'button, .button, .faux-button, .wp-block-button__link, .wp-block-file__button, input[type=\'button\'], input[type=\'reset\'], input[type=\'submit\']' ); … … 103 103 /* 104 104 * If we don't have an elements array or it is empty 105 * then skip this it teration early;105 * then skip this iteration early; 106 106 */ 107 107 if ( ! is_array( $elements ) || empty( $elements ) ) { … … 119 119 twentytwenty_generate_css( '.overlay-header .header-inner', 'color', $cover ); 120 120 twentytwenty_generate_css( '.cover-header .entry-header *', 'color', $cover ); 121 }122 123 // Helper Classes.124 if ( $accent && $accent !== $accent_default ) {125 twentytwenty_generate_css( '.color-accent, .color-accent-hover:hover, .has-accent-color', 'color', $accent );126 twentytwenty_generate_css( '.bg-accent, .bg-accent-hover:hover, .has-accent-background-color', 'background-color', $accent );127 twentytwenty_generate_css( '.border-color-accent, .border-color-accent-hover:hover', 'border-color', $accent );128 twentytwenty_generate_css( '.fill-children-accent, .fill-children-accent *', 'fill', $accent );129 121 } 130 122
Note: See TracChangeset
for help on using the changeset viewer.