
* Move CSS to theme.json * Move button styles to theme.json * Remove alignment styles * Update URI, tags in style.css * Add more comments to style.css * Fix typo * Add description; update required WP versions * Adjust fluid typography * Update header spacing * Add 100 spacing preset * Update all layout settings to new format * Update spacing values across templates * Remove unnecessary margin resets * Make sidebar translatable * Tweak navigation link colours * Make overlay close button uppercase * Remove unnecessary CSS (its in GB now) * Fix root padding * Tweak fluid types * Make sidebar not hidden * remove font smoothing Co-authored-by: Ben Dwyer <ben@scruffian.com>
64 lines
4.5 KiB
PHP
64 lines
4.5 KiB
PHP
<?php
|
|
/**
|
|
* Title: Latest Posts
|
|
* Slug: rainfall/latest-posts
|
|
* Categories: query
|
|
*/
|
|
?>
|
|
<!-- wp:heading {"level":1,"fontSize":"xx-large"} -->
|
|
<h1 class="has-xx-large-font-size"><?php echo esc_html__( 'Latest Posts', 'rainfall' ); ?></h1>
|
|
<!-- /wp:heading -->
|
|
|
|
<!-- wp:columns {"verticalAlignment":"top","align":"wide"} -->
|
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top"} -->
|
|
<div class="wp-block-column is-vertically-aligned-top"><!-- wp:query {"queryId":35,"query":{"perPage":"1","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"list"}} -->
|
|
<div class="wp-block-query"><!-- wp:post-template -->
|
|
<!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"0px"}}}} /-->
|
|
|
|
<!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase"}}} /-->
|
|
|
|
<!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|90"}}},"fontSize":"4.875rem"} /-->
|
|
|
|
<!-- wp:post-excerpt /-->
|
|
<!-- /wp:post-template --></div>
|
|
<!-- /wp:query --></div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"verticalAlignment":"top"} -->
|
|
<div class="wp-block-column is-vertically-aligned-top"><!-- wp:query {"queryId":35,"query":{"perPage":"1","pages":0,"offset":"1","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"list"}} -->
|
|
<div class="wp-block-query"><!-- wp:post-template -->
|
|
<!-- wp:columns {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"backgroundColor":"black","textColor":"white"} -->
|
|
<div class="wp-block-columns has-white-color has-black-background-color has-text-color has-background" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column {"verticalAlignment":"top","width":"50%","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","right":"var:preset|spacing|70","bottom":"var:preset|spacing|70","left":"var:preset|spacing|70"}}}} -->
|
|
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70);flex-basis:50%"><!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}}} /-->
|
|
|
|
<!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|90"}},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"textColor":"white","fontSize":"x-large"} /-->
|
|
|
|
<!-- wp:post-excerpt /--></div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"50%"} -->
|
|
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:post-featured-image {"isLink":true,"height":"100%","align":"wide"} /--></div>
|
|
<!-- /wp:column --></div>
|
|
<!-- /wp:columns -->
|
|
<!-- /wp:post-template --></div>
|
|
<!-- /wp:query -->
|
|
|
|
<!-- wp:separator {"style":{"spacing":{"margin":{"top":"var:preset|spacing|100","bottom":"var:preset|spacing|100"}}},"className":"is-style-wide"} -->
|
|
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--100);margin-bottom:var(--wp--preset--spacing--100)"/>
|
|
<!-- /wp:separator -->
|
|
|
|
<!-- wp:query {"queryId":25,"query":{"perPage":"2","pages":0,"offset":"2","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":2}} -->
|
|
<div class="wp-block-query"><!-- wp:post-template -->
|
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"layout":{"type":"default"}} -->
|
|
<div class="wp-block-group" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"0px"}}}} /-->
|
|
|
|
<!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase"}}} /-->
|
|
|
|
<!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"var:preset|spacing|10","bottom":"var:preset|spacing|60"}}},"fontSize":"large"} /-->
|
|
|
|
<!-- wp:post-excerpt {"style":{"spacing":{"margin":{"top":"0px"}}}} /--></div>
|
|
<!-- /wp:group -->
|
|
<!-- /wp:post-template --></div>
|
|
<!-- /wp:query --></div>
|
|
<!-- /wp:column --></div>
|
|
<!-- /wp:columns -->
|