From 5020e1f01a6f6f13788c340ba23f7f17c2083835 Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Sat, 27 Mar 2021 11:46:41 +0000 Subject: [PATCH] Issue #1 Improve the Hero post entry-footer layout --- block-template-parts/home-body.html | 11 +++--- functions.php | 4 +- style.css | 59 ++++++++++++++++++++++++++++- 3 files changed, 64 insertions(+), 10 deletions(-) diff --git a/block-template-parts/home-body.html b/block-template-parts/home-body.html index bed6f11..e85939c 100644 --- a/block-template-parts/home-body.html +++ b/block-template-parts/home-body.html @@ -6,12 +6,13 @@ - -
- - - +
+[bw_fields _seen_before] + + +

Published: [bw_field post_date] | Last updated: [bw_field post_modified] [post-edit]

+
diff --git a/functions.php b/functions.php index dbaf61d..daeb911 100644 --- a/functions.php +++ b/functions.php @@ -149,10 +149,8 @@ function sb_post_edit( $attrs, $content, $tag ) { $url = get_edit_post_link(); if ( $url ) { $class = 'bw_edit'; - $text= __( '[Edit]', 'sb' ); + $text= __( '(Edit)', 'sb' ); $link='' . $text . ''; } return $link; } - - diff --git a/style.css b/style.css index 9bef692..ab00cbe 100644 --- a/style.css +++ b/style.css @@ -61,6 +61,10 @@ a { text-decoration: none; } +a:hover { + text-decoration: underline; +} + h1.wp-block-site-title { font-size: 32px; font-weight: 400; @@ -256,11 +260,13 @@ nav nav.wp-block-navigation .wp-block-navigation-link__content { aside { font-size: 14px; margin: 0; - margin-top: 100px; + margin-left: 40px; + margin-top: 60px; } aside h4 { font-size: 18px; + margin-top: 20px; margin-bottom: 20px; font-weight: 400; } @@ -328,8 +334,9 @@ footer.wp-block-template-part a:hover { .wp-block-query-loop.is-flex-container li { margin-right: 0px; - + margin-bottom: 0px; } + ul.sb.thumbnail li { position: relative; padding-bottom: 25%; @@ -344,6 +351,7 @@ ul.sb.thumbnail li p { width: 100%; height: 100%; bottom: 0; + margin-bottom: 0px; } ul.sb.thumbnail li h3 { @@ -365,6 +373,53 @@ display: inline-block; margin-right: 0.5em; } +/** + Taxonomy terms styling - to make them look like luggage tags with a hole in pointy bit to the left. + */ +.wp-block-post-hierarchical-terms { + display: inline-block; +} + +.wp-block-post-hierarchical-terms a { + background-color: #767676; + border-radius: 0 2px 2px 0; + color: #fff; + display: inline-block; + font-size: 11px; + font-weight: 700; + line-height: 1.2727272727; + margin: 2px 4px 2px 10px; + padding: 3px 7px; + position: relative; +} + +.wp-block-post-hierarchical-terms a:before { + border-top: 10px solid transparent; + border-right: 8px solid #767676; + border-bottom: 10px solid transparent; + content: ""; + height: 0; + position: absolute; + top: 0; + left: -8px; + width: 0; +} + +.wp-block-post-hierarchical-terms a:after { + background-color: #fff; + border-radius: 50%; + content: ""; + height: 4px; + position: absolute; + top: 8px; + left: -2px; + width: 4px; +} + +.entry-footer { + font-size: 16px; +} +