style: readability improvements

This commit is contained in:
Ayo 2023-07-02 21:22:48 +02:00
parent 4cbd95d911
commit 70a2fb856f

View file

@ -13,6 +13,10 @@ article ??= error;
const datePublished = const datePublished =
article?.published && new Date(article.published).toDateString(); article?.published && new Date(article.published).toDateString();
--- ---
<!--
Changing anything inside the #post div can cause a difference in the cached version of the post in users' devices. For this reason, we should avoid changing the HTML and instead do it with CSS when possible.
-->
<div id="post"> <div id="post">
{ {
article && article.url !== '/' && article && article.url !== '/' &&
@ -42,19 +46,20 @@ const datePublished =
font-size: xx-large; font-size: xx-large;
} }
span.source { h1, h2, h3, h4, h5, h6 {
font-weight: bolder; line-height: 1.2;
color: #555;
} }
ul.publish-info { .source, .publish-info {
margin: 0.3em -0.7em 1em; font-size: smaller;
color: #555;
}
.source {
font-weight: bold;
}
.publish-info {
margin: 0.3em -1em 1em;
list-style: publish-icons; list-style: publish-icons;
li {
color: #555;
font-size: small;
}
} }
content { content {