windhamdavid 8 months ago
parent
commit
9887b957fe
4 changed files with 59 additions and 28 deletions
  1. 25 0
      functions.php
  2. 7 12
      parts/header.html
  3. 5 1
      style.css
  4. 22 15
      theme.json

+ 25 - 0
functions.php

@@ -0,0 +1,25 @@
+<?php
+
+function uhp24_styles() {
+	wp_enqueue_style(
+		'uhp-style',
+		get_stylesheet_uri(),
+		[],
+		wp_get_theme()->get( 'Version' )
+	);
+}
+add_action( 'wp_enqueue_scripts', 'uhp24_styles' );
+
+/***********************************************************
+######################## Editor ############################
+************************************************************/
+
+add_action( 'enqueue_block_assets', 'uhp24_block_styles', 5 );
+function uhp24_block_styles(){
+	wp_enqueue_style('uhp24-css', get_stylesheet_directory_uri() . '/style.css');
+}
+
+add_filter( 'should_load_remote_block_patterns', 'uhp24_disable_remote_patterns' );
+function uhp24_disable_remote_patterns() {
+	return false;
+}

+ 7 - 12
parts/header.html

@@ -1,20 +1,15 @@
-<!-- wp:group {"style":{"spacing":{"padding":{"top":"15px","bottom":"15px"}}},"className":"has-base-color has-secondary-background-color has-background","layout":{"type":"constrained"}} -->
-<div class="wp-block-group has-base-color has-secondary-background-color has-background" style="padding-top:15px;padding-bottom:15px">
-	<!-- wp:group {"className":"alignwide container","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
-	<div class="wp-block-group alignwide container">
+<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","bottom":"30px"}}},"className":"has-secondary-color has-contrast-light-background-color has-background","layout":{"type":"constrained"}} -->
+<div class="wp-block-group has-secondary-color has-contrast-light-background-color has-background" style="padding-top:30px;padding-bottom:30px">
+	<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
+	<div class="wp-block-group alignwide">
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
+    <div class="wp-block-group">
+			<!-- wp:site-logo {"width":180} /-->
 
 
-    <div class="wp-block-group"><!-- wp:site-logo {"width":50} /-->
-		<!-- wp:group {"style":{"spacing":{"blockGap":"30"}}} -->
-			<div class="wp-block-group">
-				<!-- wp:site-title {"level":0} /-->
-			</div>
-		<!-- /wp:group -->
 		</div>
 		</div>
 	<!-- /wp:group -->
 	<!-- /wp:group -->
-	<!-- wp:navigation {"ref":5,"layout":{"type":"flex","justifyContent":"left","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|40"},"layout":{"selfStretch":"fit","flexSize":null}}} /-->
+	<!-- wp:navigation {"ref":5,"layout":{"type":"flex","justifyContent":"left","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|60"},"layout":{"selfStretch":"fit","flexSize":null}}} /-->
 
 
-</div>
 	<!-- /wp:group -->
 	<!-- /wp:group -->
 </div>
 </div>
 <!-- /wp:group -->
 <!-- /wp:group -->

+ 5 - 1
style.css

@@ -14,4 +14,8 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Thanks:
 Thanks:
 Twenty Twenty Four  * GNU GPL v2 or later - https://github.com/WordPress/twentytwentyfour
 Twenty Twenty Four  * GNU GPL v2 or later - https://github.com/WordPress/twentytwentyfour
 
 
-*/
+*/
+
+.negative-bottom-margin {
+  margin-bottom: -2em !important;
+}

+ 22 - 15
theme.json

@@ -30,16 +30,36 @@
 					"color": "#808285",
 					"color": "#808285",
 					"name": "Contrast"
 					"name": "Contrast"
 				},
 				},
+				{
+					"slug": "contrast-light",
+					"color": "#F0F0F0",
+					"name": "Contrast Light"
+				},
 				{
 				{
 					"slug": "primary",
 					"slug": "primary",
 					"color": "#009C9F",
 					"color": "#009C9F",
 					"name": "Primary"
 					"name": "Primary"
 				},
 				},
+				{
+					"slug": "primary-light",
+					"color": "#e5f6f7",
+					"name": "Primary Light"
+				},
 				{
 				{
 					"slug": "secondary",
 					"slug": "secondary",
 					"color": "#19458C",
 					"color": "#19458C",
 					"name": "Secondary"
 					"name": "Secondary"
 				},
 				},
+				{
+					"slug": "secondary-dark",
+					"color": "#0F1B44",
+					"name": "Secondary Dark"
+				},
+				{
+					"slug": "highlight",
+					"color": "#faa819",
+					"name": "Highlight"
+				},
 				{
 				{
 					"slug": "transparent",
 					"slug": "transparent",
 					"color": "transparent",
 					"color": "transparent",
@@ -102,20 +122,6 @@
 							"fontDisplay": "swap"
 							"fontDisplay": "swap"
 						}
 						}
 					]
 					]
-				},
-				{
-					"name": "Playfair Display",
-					"slug": "playfair",
-					"fontFamily": "playfiar",
-					"fontFace": [
-						{
-							"src": "file:./css/fonts/playfair-display-v36-latin-900.woff2",
-							"fontFamily": "\"Playfair\"",
-							"fontWeight": "900",
-							"fontStyle": "normal",
-							"fontDisplay": "swap"
-						}
-					]
 				}
 				}
 			],
 			],
 			"fontSizes": [
 			"fontSizes": [
@@ -176,7 +182,8 @@
 							"text": "var(--wp--preset--color--contrast)"
 							"text": "var(--wp--preset--color--contrast)"
 						},
 						},
 						"typography": {
 						"typography": {
-							"textDecoration": "none"
+							"textDecoration": "none",
+							"fontWeight": "500"
 						},
 						},
 						":hover": {
 						":hover": {
 							"color": {
 							"color": {