Browse Source

7.1 fixes

David Windham 3 weeks ago
parent
commit
7a19fb49ff
2 changed files with 4 additions and 3 deletions
  1. 1 1
      functions.php
  2. 3 2
      style-editor.css

+ 1 - 1
functions.php

@@ -95,7 +95,7 @@ function gwp24_block_styles(){
 
 
 add_action( 'admin_enqueue_scripts', 'gwp24_admin_styles' );
 add_action( 'admin_enqueue_scripts', 'gwp24_admin_styles' );
 function gwp24_admin_styles() {
 function gwp24_admin_styles() {
-  wp_enqueue_style( 'style-editor', get_template_directory_uri().'/style-editor.css' );
+  wp_enqueue_style( 'style-editor', get_template_directory_uri().'/style-editor.css', array( 'colors' ), '1.1' );
 }
 }
 
 
 remove_theme_support( 'core-block-patterns' );
 remove_theme_support( 'core-block-patterns' );

+ 3 - 2
style-editor.css

@@ -7,9 +7,10 @@
   margin-top: 16px;
   margin-top: 16px;
 }
 }
 
 
-:root {
+:root,
+body.wp-admin {
   --wp-components-color-accent: #5dbd73;
   --wp-components-color-accent: #5dbd73;
-  --wp-admin-theme-color: #E9E4DC;
+  --wp-admin-theme-color: #E9E4DC !important;
 }
 }
 ::selection { 
 ::selection { 
   background-color: var(--wp--preset--color--tirtiary); 
   background-color: var(--wp--preset--color--tirtiary);