From 4b2975d25bb8e63d6651d5a531dea4ff9566111a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 17 Jul 2018 23:22:25 +0100 Subject: [PATCH] blog: Make custom styling clearer and easier Signed-off-by: Michael Tremer --- src/scss/style.scss | 26 +++++++++++++++++++++----- src/templates/blog/modules/post.html | 24 ++++++++++++++---------- 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/src/scss/style.scss b/src/scss/style.scss index c5a91750..8d0a1848 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -220,15 +220,31 @@ footer { } .blog-post { - h5:first-of-type { - a { - color: $body-color; + .blog-header { + h5 { + a { + color: $body-color; + } } } &.lightning-wire-labs { - h5:first-of-type a, a { - color: $lwl; + .blog-header { + h5 { + a { + color: $lwl; + } + } + + a { + color: $lwl; + } + } + + .blog-content { + a { + color: $lwl; + } } } } diff --git a/src/templates/blog/modules/post.html b/src/templates/blog/modules/post.html index 9e2e6ea8..5feb067e 100644 --- a/src/templates/blog/modules/post.html +++ b/src/templates/blog/modules/post.html @@ -1,16 +1,20 @@
-
- - {{ post.title }} - -
+
+
+ + {{ post.title }} + +
-

- {{ _("by") }} {{ post.author.name }}, - {{ locale.format_date(post.published_at, shorter=True, relative=False) }} -

+

+ {{ _("by") }} {{ post.author.name }}, + {{ locale.format_date(post.published_at, shorter=True, relative=False) }} +

+
- {% raw post.html %} +
+ {% raw post.html %} +
{% if "lightning-wire-labs" in post.tags and post.link %}
-- 2.47.3