Ticket #57544: 57544.1.patch
File 57544.1.patch, 3.8 KB (added by , 19 months ago) |
---|
-
src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css
162 162 163 163 /* CUSTOM COLORS */ 164 164 165 :root .has-accent-color { 165 :root .has-accent-color, 166 :root .wp-block-separator.has-accent-color { 166 167 color: #cd2653; 167 168 } 168 169 … … 171 172 color: #fff; 172 173 } 173 174 174 :root .has-primary-color { 175 :root .has-primary-color, 176 :root .wp-block-separator.has-primary-color { 175 177 color: #000; 176 178 } 177 179 … … 180 182 color: #f5efe0; 181 183 } 182 184 183 :root .has-secondary-color { 185 :root .has-secondary-color, 186 :root .wp-block-separator.has-secondary-color { 184 187 color: #6d6d6d; 185 188 } 186 189 … … 189 192 color: #fff; 190 193 } 191 194 192 :root .has-subtle-background-color { 195 :root .has-subtle-background-color, 196 :root .wp-block-separator.has-subtle-background-color { 193 197 color: #dcd7ca; 194 198 } 195 199 … … 198 202 color: #000; 199 203 } 200 204 201 :root .has-background-color { 205 :root .has-background-color, 206 :root .wp-block-separator.has-background-color { 202 207 color: #f5efe0; 203 208 } 204 209 -
src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css
162 162 163 163 /* CUSTOM COLORS */ 164 164 165 :root .has-accent-color { 165 :root .has-accent-color, 166 :root .wp-block-separator.has-accent-color { 166 167 color: #cd2653; 167 168 } 168 169 … … 171 172 color: #fff; 172 173 } 173 174 174 :root .has-primary-color { 175 :root .has-primary-color, 176 :root .wp-block-separator.has-primary-color { 175 177 color: #000; 176 178 } 177 179 … … 180 182 color: #f5efe0; 181 183 } 182 184 183 :root .has-secondary-color { 185 :root .has-secondary-color, 186 :root .wp-block-separator.has-secondary-color { 184 187 color: #6d6d6d; 185 188 } 186 189 … … 189 192 color: #fff; 190 193 } 191 194 192 :root .has-subtle-background-color { 195 :root .has-subtle-background-color, 196 :root .wp-block-separator.has-subtle-background-color { 193 197 color: #dcd7ca; 194 198 } 195 199 … … 198 202 color: #000; 199 203 } 200 204 201 :root .has-background-color { 205 :root .has-background-color, 206 :root .wp-block-separator.has-background-color { 202 207 color: #f5efe0; 203 208 } 204 209 -
src/wp-content/themes/twentytwenty/inc/custom-css.php
126 126 // Colors. 127 127 // Accent color. 128 128 if ( $accent && $accent !== $accent_default ) { 129 twentytwenty_generate_css( ':root .has-accent-color, .editor-styles-wrapper a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent );129 twentytwenty_generate_css( ':root .has-accent-color, :root .wp-block-separator.has-accent-color, .editor-styles-wrapper a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent ); 130 130 twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-quote', 'border-color', $accent, '' ); 131 131 twentytwenty_generate_css( '.has-accent-background-color, .editor-styles-wrapper .wp-block-button__link, .editor-styles-wrapper .wp-block-file__button', 'background-color', $accent ); 132 132 }