Skip to content

Commit

Permalink
Layover: Fixes link color issue (#8682)
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueiamarino authored Feb 7, 2025
1 parent b619ca2 commit 908e51e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
5 changes: 2 additions & 3 deletions layover/patterns/404.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: 404
Expand All @@ -11,8 +10,8 @@

<!-- wp:group {"tagName":"main","metadata":{"name":"Content"},"style":{"spacing":{"padding":{"bottom":"var:preset|spacing|70","top":"var:preset|spacing|70"}},"dimensions":{"minHeight":"50vh"}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="min-height:50vh;padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)"><!-- wp:group {"metadata":{"name":"404 Wrapper"},"style":{"spacing":{"blockGap":"var:preset|spacing|60"}}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","level":1,"align":"wide"} -->
<h1 class="wp-block-heading alignwide has-text-align-center" id="oops-that-page-can-t-be-found"><?php esc_html_e('Oops! That page can’t be found.', 'layover');?></h1>
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","level":1,"align":"wide","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} -->
<h1 class="wp-block-heading alignwide has-text-align-center has-foreground-color has-text-color has-link-color" id="oops-that-page-can-t-be-found"><?php esc_html_e('Oops! That page can’t be found.', 'layover');?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground","fontSize":"medium"} -->
Expand Down
3 changes: 1 addition & 2 deletions layover/patterns/archive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: archive
Expand All @@ -17,7 +16,7 @@
<!-- wp:group {"metadata":{"name":"Post template wrapper"},"style":{"spacing":{"blockGap":"var:preset|spacing|60","padding":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","width":"40%"} /-->

<!-- wp:post-title {"textAlign":"center","isLink":true} /-->
<!-- wp:post-title {"textAlign":"center","isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"1rem"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:1rem"><!-- wp:post-excerpt {"textAlign":"center","excerptLength":25,"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} /--></div>
Expand Down
3 changes: 1 addition & 2 deletions layover/patterns/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: index
Expand All @@ -15,7 +14,7 @@
<!-- wp:group {"metadata":{"name":"Post template wrapper"},"style":{"spacing":{"blockGap":"var:preset|spacing|60","padding":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","width":"40%"} /-->

<!-- wp:post-title {"textAlign":"center","isLink":true} /-->
<!-- wp:post-title {"textAlign":"center","isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"1rem"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:1rem"><!-- wp:post-excerpt {"textAlign":"center","excerptLength":25,"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} /--></div>
Expand Down
3 changes: 1 addition & 2 deletions layover/patterns/search.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: search
Expand All @@ -21,7 +20,7 @@
<!-- wp:group {"metadata":{"name":"Post template wrapper"},"style":{"spacing":{"blockGap":"var:preset|spacing|60","padding":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","width":"40%"} /-->

<!-- wp:post-title {"textAlign":"center","isLink":true} /-->
<!-- wp:post-title {"textAlign":"center","isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"1rem"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:1rem"><!-- wp:post-excerpt {"textAlign":"center","excerptLength":25,"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} /--></div>
Expand Down
16 changes: 13 additions & 3 deletions layover/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,16 @@
}
},
"core/query-title": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
}
}
},
"spacing": {
"margin": {
"bottom": "4rem"
Expand Down Expand Up @@ -769,7 +779,7 @@
},
"heading": {
"color": {
"text": "var(--wp--preset--color--foreground)"
"text": "var(--wp--preset--color--primary)"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--manrope)",
Expand All @@ -789,7 +799,7 @@
}
},
"color": {
"text": "var(--wp--preset--color--foreground)"
"text": "var(--wp--preset--color--primary)"
}
}
},
Expand Down Expand Up @@ -825,4 +835,4 @@
],
"version": 3,
"$schema": "https://schemas.wp.org/trunk/theme.json"
}
}

0 comments on commit 908e51e

Please sign in to comment.