ソースを参照

Lynx: Misc pattern updates (#6597)

* Lynx: Various style tweaks (typography, spacing, etc.)

* Lynx: Adding 'Gigantic' font size and updating patterns to use it instead of a custom font size.
alaczek 2 年 前
コミット
bbdd157b15

+ 1 - 1
lynx/patterns/link-in-bio-colorful-buttons.php

@@ -11,7 +11,7 @@
 <div class="wp-block-cover alignfull is-light" style="padding-top:4vw;padding-right:4vw;padding-bottom:4vw;padding-left:4vw;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:#fff1b5"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"spacing":{"blockGap":"24px"}}} -->
 <div class="wp-block-group"><!-- wp:site-logo {"align":"center","className":"is-style-rounded"} /-->
 
-<!-- wp:site-title {"textAlign":"center","isLink":false,"fontSize":"xx-large","fontFamily":"ibm-plex-mono"} /-->
+<!-- wp:site-title {"textAlign":"center","isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"700","lineHeight":"1.2"}},"fontSize":"xx-large","fontFamily":"ibm-plex-mono"} /-->
 
 <!-- wp:site-tagline {"textAlign":"center","style":{"typography":{"fontSize":"1.125rem"}}} /--></div>
 <!-- /wp:group -->

+ 1 - 1
lynx/patterns/link-in-bio-large-heading-columns.php

@@ -11,7 +11,7 @@
 <div class="wp-block-cover alignfull is-light has-parallax" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div role="img" class="wp-block-cover__image-background has-parallax" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_template_directory_uri() ) . '/assets/images/topology_bg.jpg'; ?>)"></div><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"inherit":false,"contentSize":"940px","type":"constrained"}} -->
 <div class="wp-block-group"><!-- wp:columns -->
 <div class="wp-block-columns"><!-- wp:column {"width":"100%"} -->
-<div class="wp-block-column" style="flex-basis:100%"><!-- wp:site-title {"isLink":false,"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"typography":{"fontSize":"11rem","fontStyle":"normal","fontWeight":"300","lineHeight":"0.9"}},"textColor":"white"} /--></div>
+<div class="wp-block-column" style="flex-basis:100%"><!-- wp:site-title {"isLink":false,"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"typography":{"fontStyle":"normal","fontWeight":"300","lineHeight":"0.9"}},"textColor":"white","fontSize":"xxx-large"} /--></div>
 <!-- /wp:column --></div>
 <!-- /wp:columns -->
 

+ 6 - 3
lynx/patterns/link-in-bio-large-heading.php

@@ -7,10 +7,13 @@
  */
 ?>
 
-
 <!-- wp:cover {"customOverlayColor":"#502b7f","minHeight":100,"minHeightUnit":"vh","align":"full"} -->
-<div class="wp-block-cover alignfull" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:#502b7f"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"inherit":false,"contentSize":"850px","type":"constrained"},"style":{"spacing":{"blockGap":"0px"}}} -->
-<div class="wp-block-group"><!-- wp:site-title {"isLink":false,"style":{"color":{"text":"#ed6e69"},"typography":{"fontSize":"128px","fontStyle":"normal","fontWeight":"900","lineHeight":"1"}}} /-->
+<div class="wp-block-cover alignfull" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:#502b7f"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"inherit":false,"contentSize":"940px","type":"constrained"},"style":{"spacing":{"blockGap":"0px"}}} -->
+<div class="wp-block-group"><!-- wp:columns -->
+<div class="wp-block-columns"><!-- wp:column {"width":"100%"} -->
+<div class="wp-block-column" style="flex-basis:100%"><!-- wp:site-title {"isLink":false,"style":{"color":{"text":"#ed6e69"},"typography":{"fontStyle":"normal","fontWeight":"900","lineHeight":"1"}},"fontSize":"xxx-large"} /--></div>
+<!-- /wp:column --></div>
+<!-- /wp:columns -->
 
 <!-- wp:columns {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} -->
 <div class="wp-block-columns" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40)"><!-- wp:column {"width":"50%","style":{"spacing":{"blockGap":"10px"}}} -->

+ 2 - 2
lynx/patterns/link-in-bio-left-aligned-columns.php

@@ -12,9 +12,9 @@
 <div class="wp-block-group"><!-- wp:group {"layout":{"type":"constrained"},"style":{"elements":{"link":{"color":{"text":"#00000099"}}}}} -->
 <div class="wp-block-group has-link-color"><!-- wp:site-logo /-->
 
-<!-- wp:site-title {"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"500"},"spacing":{"margin":{"top":"48px"}}},"fontSize":"xx-large","fontFamily":"bodoni-moda"} /-->
+<!-- wp:site-title {"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"500"},"spacing":{"margin":{"top":"3.5vh"}}},"fontSize":"xx-large","fontFamily":"bodoni-moda"} /-->
 
-<!-- wp:site-tagline {"style":{"typography":{"fontSize":"1.125rem"},"spacing":{"margin":{"top":"48px"}}},"fontFamily":"merriweather"} /-->
+<!-- wp:site-tagline {"style":{"typography":{"fontSize":"1.125rem"},"spacing":{"margin":{"top":"3.5vh"}}},"fontFamily":"merriweather"} /-->
 
 <!-- wp:columns {"style":{"spacing":{"margin":{"top":"32px"}}}} -->
 <div class="wp-block-columns" style="margin-top:32px"><!-- wp:column {"style":{"spacing":{"blockGap":"16px"}}} -->

+ 12 - 12
lynx/patterns/link-in-bio-pattern-bg.php

@@ -18,16 +18,16 @@
 
 <!-- wp:group {"layout":{"inherit":true,"type":"constrained"},"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"},"margin":{"top":"20px"}}}} -->
 <div class="wp-block-group" style="margin-top:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:buttons -->
-<div class="wp-block-buttons"><!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"fontFamily":"ibm-plex-mono"} -->
-<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3">👀 <?php echo  esc_html__( 'Rewatch: ABC Interview', 'lynx' ); ?></a></div>
+<div class="wp-block-buttons"><!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"className":"is-style-outline","fontFamily":"ibm-plex-mono"} -->
+<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 is-style-outline has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3">👀 <?php echo  esc_html__( 'Rewatch: ABC Interview', 'lynx' ); ?></a></div>
 <!-- /wp:button -->
 
-<!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"fontFamily":"ibm-plex-mono"} -->
-<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3">📚 <?php echo  esc_html__( 'All the things you need to know', 'lynx' ); ?></a></div>
+<!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"className":"is-style-outline","fontFamily":"ibm-plex-mono"} -->
+<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 is-style-outline has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3">📚 <?php echo  esc_html__( 'All the things you need to know', 'lynx' ); ?></a></div>
 <!-- /wp:button -->
 
-<!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"fontFamily":"ibm-plex-mono"} -->
-<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3">🍅 <?php echo  esc_html__( 'Get Started: KETO Diet', 'lynx' ); ?></a></div>
+<!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"className":"is-style-outline","fontFamily":"ibm-plex-mono"} -->
+<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 is-style-outline has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3">🍅 <?php echo  esc_html__( 'Get Started: KETO Diet', 'lynx' ); ?></a></div>
 <!-- /wp:button --></div>
 <!-- /wp:buttons -->
 
@@ -36,16 +36,16 @@
 <!-- /wp:paragraph -->
 
 <!-- wp:buttons -->
-<div class="wp-block-buttons"><!-- wp:button {"textColor":"black","width":50,"align":"center","style":{"color":{"background":"#fff3d3"},"border":{"radius":"100px"}},"fontFamily":"ibm-plex-mono"} -->
-<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-50 has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3"><?php echo  esc_html__( 'Book an appointment', 'lynx' ); ?></a></div>
+<div class="wp-block-buttons"><!-- wp:button {"textColor":"black","width":25,"align":"center","style":{"border":{"radius":"100px"},"color":{"background":"#fff3d3"}},"className":"is-style-outline","fontFamily":"ibm-plex-mono"} -->
+<div class="wp-block-button aligncenter has-custom-width wp-block-button__width-25 is-style-outline has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3"><?php echo  esc_html__( 'Book an appointment', 'lynx' ); ?></a></div>
 <!-- /wp:button -->
 
-<!-- wp:button {"textColor":"black","width":50,"align":"left","style":{"color":{"background":"#fff3d3"},"border":{"radius":"100px"}},"fontFamily":"ibm-plex-mono"} -->
-<div class="wp-block-button alignleft has-custom-width wp-block-button__width-50 has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3"><?php echo  esc_html__( 'WhatsApp', 'lynx' ); ?></a></div>
+<!-- wp:button {"textColor":"black","width":50,"align":"left","style":{"color":{"background":"#fff3d3"},"className":"is-style-outline","border":{"radius":"100px"}},"fontFamily":"ibm-plex-mono"} -->
+<div class="wp-block-button alignleft has-custom-width wp-block-button__width-50 is-style-outline has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3"><?php echo  esc_html__( 'WhatsApp', 'lynx' ); ?></a></div>
 <!-- /wp:button -->
 
-<!-- wp:button {"textColor":"black","width":50,"align":"left","style":{"color":{"background":"#fff3d3"},"border":{"radius":"100px"}},"fontFamily":"ibm-plex-mono"} -->
-<div class="wp-block-button alignleft has-custom-width wp-block-button__width-50 has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3"><?php echo  esc_html__( 'Email', 'lynx' ); ?></a></div>
+<!-- wp:button {"textColor":"black","width":50,"align":"left","style":{"color":{"background":"#fff3d3"},"className":"is-style-outline","border":{"radius":"100px"}},"fontFamily":"ibm-plex-mono"} -->
+<div class="wp-block-button alignleft has-custom-width wp-block-button__width-50 is-style-outline has-ibm-plex-mono-font-family"><a class="wp-block-button__link has-black-color has-text-color has-background wp-element-button" style="border-radius:100px;background-color:#fff3d3"><?php echo  esc_html__( 'Email', 'lynx' ); ?></a></div>
 <!-- /wp:button --></div>
 <!-- /wp:buttons --></div>
 <!-- /wp:group --></div></div>

+ 9 - 0
lynx/theme.json

@@ -121,6 +121,15 @@
 					"name": "Huge",
 					"size": "3rem",
 					"slug": "xx-large"
+				},
+				{
+					"fluid": {
+						"max": "10rem",
+						"min": "6rem"
+					},
+					"name": "Gigantic",
+					"size": "8rem",
+					"slug": "xxx-large"
 				}
 			]
 		},