[Archeo] Update Chivo's 300 weight to 100 weight globally (#5482)
* Update 300 weight to 100 weight. * Remove unused file.
This commit is contained in:
parent
7296688700
commit
5d3ec23d82
9 changed files with 10 additions and 10 deletions
Binary file not shown.
Binary file not shown.
BIN
archeo/assets/fonts/Chivo-Thin.woff2
Normal file
BIN
archeo/assets/fonts/Chivo-Thin.woff2
Normal file
Binary file not shown.
BIN
archeo/assets/fonts/Chivo-ThinItalic.woff2
Normal file
BIN
archeo/assets/fonts/Chivo-ThinItalic.woff2
Normal file
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 -->',
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
},
|
||||
"core/heading": {
|
||||
"typography": {
|
||||
"fontWeight": "300",
|
||||
"fontWeight": "100",
|
||||
"lineHeight": "1.1"
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue