Browse Source

Review updates

- removal of ref id from header template
- dark mode editor style added
- unused tertiary color removed from the palette
- screenshot added
Onur Oztaskiran 2 years ago
parent
commit
1f11620fdd

+ 1 - 1
spearhead-blocks/parts/header.html

@@ -10,7 +10,7 @@
 <!-- /wp:group --></div>
 <!-- /wp:group -->
 
-<!-- wp:navigation {"ref":14,"__unstableLocation":"primary","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /--></div>
+<!-- wp:navigation {"__unstableLocation":"primary","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /--></div>
 <!-- /wp:group --></div>
 <!-- /wp:group -->
 

BIN
spearhead-blocks/screenshot.png


+ 4 - 3
spearhead-blocks/style.css

@@ -15,10 +15,11 @@ Text Domain: spearhead-blocks
 Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
 */
 /*
- * Dark Mode
+ * Dark Mode, front-end and editor
  */
 @media (prefers-color-scheme: dark) {
-  body {
+  body.editor-styles-wrapper,
+body {
     --wp--preset--color--primary: var(--wp--preset--color--primary-dark);
     --wp--preset--color--secondary: var(--wp--preset--color--secondary-dark);
     --wp--preset--color--foreground: var(--wp--preset--color--foreground-dark);
@@ -26,7 +27,7 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
   }
 }
 /*
- * Excerpt audio block fixes
+ * Excerpt audio block spacing and width match w the original Spearhead
  */
 .excerpt-audio-block .wp-block-audio {
   margin-left: 0;

+ 0 - 5
spearhead-blocks/theme.json

@@ -49,11 +49,6 @@
 					"name": "Background",
 					"slug": "background"
 				},
-				{
-					"color": "#fafbf6",
-					"name": "Tertiary",
-					"slug": "tertiary"
-				},
 				{
 					"color": "#FF6A81",
 					"name": "Primary (Dark)",