Parcourir la source

Geologist: Minor updates (#4724)

* Remove secondary palettes.

* Add additional header pattern.
Kjell Reigstad il y a 3 ans
Parent
commit
78b12b4452

+ 0 - 30
geologist/child-theme.json

@@ -87,36 +87,6 @@
 						"tertiary": "#313131",
 						"background": "#000000"
 					}
-				},
-				{
-					"label": "Maroon",
-					"slug": "maroon",
-					"colors": {
-						"primary": "#fffbdc",
-						"secondary": "#ffffff",
-						"tertiary": "#3f1818",
-						"background": "#2e0909"
-					}
-				},
-				{
-					"label": "Green/Pink",
-					"slug": "green-pink",
-					"colors": {
-						"primary": "#ffd0d0",
-						"secondary": "#ffffff",
-						"tertiary": "#721A18",
-						"background": "#114144"
-					}
-				},
-				{
-					"label": "Beige",
-					"slug": "beige",
-					"colors": {
-						"primary": "#000000",
-						"secondary": "#000000",
-						"tertiary": "#fefaf1",
-						"background": "#f5f0e5"
-					}
 				}
 			],
 			"form": {

+ 1 - 0
geologist/inc/block-patterns.php

@@ -19,6 +19,7 @@ if ( ! function_exists( 'geologist_register_block_patterns' ) ) :
 		if ( function_exists( 'register_block_pattern' ) ) {
 			$block_patterns = array(
 				'authors',
+				'header-with-rounded-site-logo',
 				'image-feature',
 				'introduction',
 				'quote',

+ 19 - 0
geologist/inc/patterns/header-with-rounded-site-logo.php

@@ -0,0 +1,19 @@
+<?php
+/**
+ * Authors
+ *
+ * @package Geologist
+ */
+
+return array(
+	'title'      => __( 'Header with Rounded Site Logo and Title', 'geologist' ),
+	'categories' => array( 'geologist' ),
+	'blockTypes' => array( 'core/template-part/header' ),
+	'content'    => '<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"90px"}}},"className":"site-header","layout":{"type":"flex"}} -->
+<header class="wp-block-group site-header" style="padding-bottom:90px">
+	<!-- wp:site-logo {"className":"is-style-rounded"} /-->
+	<!-- wp:site-title /-->
+	<!-- wp:navigation {"isResponsive":true,"__unstableLocation":"primary"} /-->
+</header>
+<!-- /wp:group -->',
+);

+ 0 - 30
geologist/theme.json

@@ -134,36 +134,6 @@
 						"tertiary": "#313131",
 						"background": "#000000"
 					}
-				},
-				{
-					"label": "Maroon",
-					"slug": "maroon",
-					"colors": {
-						"primary": "#fffbdc",
-						"secondary": "#ffffff",
-						"tertiary": "#3f1818",
-						"background": "#2e0909"
-					}
-				},
-				{
-					"label": "Green/Pink",
-					"slug": "green-pink",
-					"colors": {
-						"primary": "#ffd0d0",
-						"secondary": "#ffffff",
-						"tertiary": "#721A18",
-						"background": "#114144"
-					}
-				},
-				{
-					"label": "Beige",
-					"slug": "beige",
-					"colors": {
-						"primary": "#000000",
-						"secondary": "#000000",
-						"tertiary": "#fefaf1",
-						"background": "#f5f0e5"
-					}
 				}
 			],
 			"fontSizes": {