summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2021-06-16 16:39:05 +0200
committerWolfgang Müller2021-06-16 17:04:24 +0200
commit89adeed2396b1180273479af089eaca416081e4f (patch)
treed5a9b9e1c15f5aed6efc2917bf000dcde0d1154c
parent41afb87e4237a7602eb127cf6676f84e6afb1990 (diff)
downloadzunzuncito-89adeed2396b1180273479af089eaca416081e4f.tar.gz
Use "title" class for the header in the banner
This improves the readability and consistency of the CSS.
-rw-r--r--sass/style.sass24
-rw-r--r--templates/macros.html2
2 files changed, 13 insertions, 13 deletions
diff --git a/sass/style.sass b/sass/style.sass
index e5eedb0..c05ed26 100644
--- a/sass/style.sass
+++ b/sass/style.sass
@@ -59,6 +59,17 @@ a.bold-hover:hover
h2.mentions
margin-bottom: .2rem
+h2.title
+ display: inline-block
+ margin: 0
+
+ font-size: inherit
+ font-style: italic
+ font-weight: inherit
+
+ &::before
+ @include spacer
+
pre
margin-left: 1rem
@@ -140,17 +151,6 @@ article > section.post
border-radius: 8px
max-width: 100%
-div.banner h2
- display: inline-block
- margin: 0
-
- font-size: inherit
- font-style: italic
- font-weight: inherit
-
- &::before
- @include spacer
-
div.banner > div.info
display: inline-flex
@@ -203,5 +203,5 @@ nav.links
div.info > time
display: none
- div.info > h2::before
+ div.info > h2.title::before
display: none
diff --git a/templates/macros.html b/templates/macros.html
index 6071769..a331606 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -6,7 +6,7 @@
<div class="info">
<a class="bold-hover" title="permalink to this post" href="{{ post.permalink }}">{% if mention %}№ {{ post.slug }} {% else %}§{% endif %}</a>
<time class="mute" datetime="{{ post.date }}" title="{{ post.date }}">{{ post.date | date(format="%F %R") }}</time>
- {%- if class != "single" %}<h2 class="mute">{{ post.title }}</h2>{% endif %}
+ {%- if class != "single" %}<h2 class="mute title">{{ post.title }}</h2>{% endif %}
</div>
{%- if "tags" in post.taxonomies %}
<nav class="tags">