Browse Source

[Archeo] Update Chivo's 300 weight to 100 weight globally (#5482)

* Update 300 weight to 100 weight.

* Remove unused file.
Kjell Reigstad 3 years ago
parent
commit
5d3ec23d82

BIN
archeo/assets/fonts/Chivo-Light.woff2


BIN
archeo/assets/fonts/Chivo-LightItalic.woff2


BIN
archeo/assets/fonts/Chivo-Thin.woff2


BIN
archeo/assets/fonts/Chivo-ThinItalic.woff2


BIN
archeo/assets/fonts/Chivo.woff2


+ 6 - 6
archeo/functions.php

@@ -99,11 +99,11 @@ if ( ! function_exists( 'archeo_get_font_face_styles' ) ) :
 		return "
 		@font-face{
 			font-family: 'Chivo';
-			font-weight: 300;
+			font-weight: 100;
 			font-style: normal;
 			font-stretch: normal;
 			font-display: swap;
-			src: url('" . get_theme_file_uri( 'assets/fonts/Chivo-Light.woff2' ) . "') format('woff2');
+			src: url('" . get_theme_file_uri( 'assets/fonts/Chivo-Thin.woff2' ) . "') format('woff2');
 		}
 		@font-face{
 			font-family: 'Chivo';
@@ -123,11 +123,11 @@ if ( ! function_exists( 'archeo_get_font_face_styles' ) ) :
 		}
 		@font-face{
 			font-family: 'Chivo';
-			font-weight: 300;
+			font-weight: 100;
 			font-style: italic;
 			font-stretch: normal;
 			font-display: swap;
-			src: url('" . get_theme_file_uri( 'assets/fonts/Chivo-LightItalic.woff2' ) . "') format('woff2');
+			src: url('" . get_theme_file_uri( 'assets/fonts/Chivo-ThinItalic.woff2' ) . "') format('woff2');
 		}
 		@font-face{
 			font-family: 'Chivo';
@@ -156,7 +156,7 @@ if ( ! function_exists( 'archeo_preload_webfonts' ) ) :
 	/**
 	 * Preloads the main web font to improve performance.
 	 *
-	 * Only the main web font (font-weight: 300,400, font-style: normal) is preloaded here since that font is always relevant. 
+	 * Only the main web font (font-weight: 100,400, font-style: normal) is preloaded here since that font is always relevant. 
 	 * The other fonts are only needed if the user changed style or weight of the fonts,
 	 * and therefore preloading it would in most cases regress performance when that font would otherwise not be loaded
 	 * at all.
@@ -167,7 +167,7 @@ if ( ! function_exists( 'archeo_preload_webfonts' ) ) :
 	 */
 	function archeo_preload_webfonts() {
 		?>
-		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/Chivo-Light.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
+		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/Chivo-Thin.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
 		<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/Chivo-Regular.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
 		<?php
 	}

+ 2 - 2
archeo/inc/patterns/image-with-headline-on-dark-background.php

@@ -9,8 +9,8 @@ return array(
 	<div class="wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile has-background-color has-foreground-background-color has-text-color has-background"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/figure-gigantesque.jpg" alt="' . esc_attr__( 'Photo of gigantic figure at Izamal', 'archeo' ) . '" /></figure><div class="wp-block-media-text__content">
 	<!-- wp:group {"style":{"spacing":{"padding":{"top":"clamp(30px, 4vw, 80px)","right":"clamp(30px, 4vw, 80px)","bottom":"clamp(30px, 4vw, 80px)","left":"clamp(30px, 4vw, 80px)"}}}} -->
 	<div class="wp-block-group" style="padding-top:clamp(30px, 4vw, 80px);padding-right:clamp(30px, 4vw, 80px);padding-bottom:clamp(30px, 4vw, 80px);padding-left:clamp(30px, 4vw, 80px)">
-	<!-- wp:paragraph {"placeholder":"Content…","style":{"typography":{"fontStyle":"italic","fontWeight":"300","lineHeight":"1.4"}},"fontSize":"large"} -->
-	<p class="has-large-font-size" style="font-style:italic;font-weight:300;line-height:1.4">' . wp_kses_post( __( 'Figure gigantesque, <br>à Izamal; au bas de la seconde pyramide', 'archeo' ) ) . '</p>
+	<!-- wp:paragraph {"placeholder":"Content…","style":{"typography":{"fontStyle":"italic","fontWeight":"100","lineHeight":"1.4"}},"fontSize":"large"} -->
+	<p class="has-large-font-size" style="font-style:italic;font-weight:100;line-height:1.4">' . wp_kses_post( __( 'Figure gigantesque, <br>à Izamal; au bas de la seconde pyramide', 'archeo' ) ) . '</p>
 	<!-- /wp:paragraph --></div>
 	<!-- /wp:group --></div></div>
 	<!-- /wp:media-text -->',

+ 1 - 1
archeo/style.css

@@ -168,6 +168,6 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
  */
 .wp-block-navigation__responsive-container.is-menu-open ul {
 	font-size: var(--wp--preset--font-size--large) !important;
-	font-weight: 300;
+	font-weight: 100;
 	gap: var(--wp--style--block-gap);
 }

+ 1 - 1
archeo/theme.json

@@ -113,7 +113,7 @@
 			},
 			"core/heading": {
 				"typography": {
-					"fontWeight": "300",
+					"fontWeight": "100",
 					"lineHeight": "1.1"
 				}
 			},