a:focus, #editor .editor-styles-wrapper .wp-block-navigation:not(.has-text-color) .wp-block-navigation-link > a:hover, #editor .editor-styles-wrapper a:focus, #editor .editor-styles-wrapper a:hover', 'color' ), // Background-color array( '#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button, #editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link, #editor .editor-styles-wrapper .wp-block-file .wp-block-file__button, #editor .editor-styles-wrapper .wp-block-search .wp-block-search__button', 'background-color' ), // border-bottom-color array( '#editor .editor-styles-wrapper .wp-block-file .wp-block-file__textlink, #editor .editor-styles-wrapper a', 'border-bottom-color' ), // border-left-color array( '#editor .editor-styles-wrapper .wp-block-quote, #editor .editor-styles-wrapper .wp-block-quote.is-large, #editor .editor-styles-wrapper .wp-block-quote.is-style-large', 'border-left-color' ), // border-right-color array( '#editor .editor-styles-wrapper .wp-block-quote.has-text-align-right, #editor .editor-styles-wrapper .wp-block-quote.is-large.has-text-align-right, #editor .editor-styles-wrapper .wp-block-quote.is-style-large.has-text-align-right', 'border-right-color' ), /** * Utility Classes */ // Background-color array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ), // Text-color array( '#editor .editor-styles-wrapper .has-secondary-color[class], #editor .editor-styles-wrapper .has-white-background-color[class]', 'color' ), ), __( 'Secondary Color' ) ); // Tertiary Color // --global--color-tertiary add_color_rule( 'fg2', '#FAFBF6', array( // Background-color array( '#editor .editor-styles-wrapper .has-tertiary-background-color[class]', 'background-color' ), // Text-color array( '#editor .editor-styles-wrapper .has-tertiary-color[class], #editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .block-editor-block-list__block, #editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text, #editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text, #editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container, #editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .block-editor-block-list__block, #editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text, #editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-text, #editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container', 'color' ), ), __( 'Tertiary Color' ) ); /** * Custom CSS * The plugin takes the body of this function and applies it in a style tag in the document head. */ function seedlet_custom_colors_extra_css() { $colors_array = get_theme_mod( 'colors_manager' ); $color_bg = $colors_array['colors']['bg']; $color_fg1 = $colors_array['colors']['fg1']; $color_fg2 = $colors_array['colors']['fg2']; ?> /* * Custom gradients. */ #editor .editor-styles-wrapper .has-hard-diagonal-gradient-background { background: linear-gradient(to bottom right, 49.9%, 50%); } #editor .editor-styles-wrapper .has-hard-diagonal-inverted-gradient-background { background: linear-gradient(to top left, 49.9%, 50%); } #editor .editor-styles-wrapper .has-diagonal-gradient-background { background: linear-gradient(to bottom right, , ); } #editor .editor-styles-wrapper .has-diagonal-inverted-gradient-background { background: linear-gradient(to top left, , ); } #editor .editor-styles-wrapper .has-hard-horizontal-gradient-background { background: linear-gradient(to bottom, 50%, 50%); } #editor .editor-styles-wrapper .has-hard-horizontal-inverted-gradient-background { background: linear-gradient(to top, 50%, 50%); } #editor .editor-styles-wrapper .has-horizontal-gradient-background { background: linear-gradient(to bottom, , ); } #editor .editor-styles-wrapper .has-horizontal-inverted-gradient-background { background: linear-gradient(to top, , ); } #editor .editor-styles-wrapper .has-stripe-gradient-background { background: linear-gradient(to bottom, transparent 20%, 20%, 80%, transparent 80%); }