diff options
Diffstat (limited to '')
| -rw-r--r-- | assets/static/css/blog.css | 10 | ||||
| -rw-r--r-- | assets/static/css/style.css | 30 | ||||
| -rw-r--r-- | templates/blog-post.html | 7 | ||||
| -rw-r--r-- | templates/blog.html | 7 |
4 files changed, 23 insertions, 31 deletions
diff --git a/assets/static/css/blog.css b/assets/static/css/blog.css deleted file mode 100644 index 48a716b..0000000 --- a/assets/static/css/blog.css +++ /dev/null @@ -1,10 +0,0 @@ -@charset "UTF-8"; - -article > p:first-of-type:first-letter { - color: var(--blue); - float: left; - font-weight: 700; - font-size: 3.8rem; - line-height: 3.8rem; - margin: 0.2em 0.1em 0 0; -} diff --git a/assets/static/css/style.css b/assets/static/css/style.css index 1275b1a..675c6c0 100644 --- a/assets/static/css/style.css +++ b/assets/static/css/style.css @@ -505,19 +505,27 @@ article { min-width: var(--column-min-width); & > header { - display: flex; - flex-direction: row; - align-items: start; - justify-content: space-between; margin-bottom: 2rem; + &::after { + clear: left; + content: ""; + display: block; + } + & > div { display: flex; flex-direction: column; gap: 0.75rem; - :has(& > nav) { - max-width: calc(2 / 3 * 100%); + &:not(:last-child) { + float: left; + width: calc(2 / 3 * 100% - 1rem); + + @media (max-width: 700px) { + float: none; + width: auto; + } } /* --- Article metadata --- */ @@ -576,7 +584,10 @@ article { font-size: 1rem; line-height: 1.4; padding: 0.75rem; - max-width: calc(1 / 3 * 100%); + box-sizing: border-box; + float: right; + margin-left: 1rem; + width: calc(1 / 3 * 100%); & > p { color: var(--blue); @@ -611,7 +622,11 @@ article { } @media (max-width: 700px) { + float: none; + margin-bottom: 0; + margin-left: 0; margin-top: 2rem; + width: auto; } } } @@ -664,6 +679,7 @@ article { } & > footer { + clear: both; color: var(--dim-foreground); font-style: italic; font-size: 1.2rem; diff --git a/templates/blog-post.html b/templates/blog-post.html index a8eaf37..3bde48d 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -87,11 +87,4 @@ {% endif %} {% endblock %} -{% block styles %} - {{ super() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/blog.css'|asseturl }}"> -{% endblock %} - {% block content %}{{ render_blog_post(this) }}{% endblock %} diff --git a/templates/blog.html b/templates/blog.html index 3e187cb..7df9397 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -24,11 +24,4 @@ {% include "includes/blog-json-ld.html" %} {% endblock json_ld %} -{% block styles %} - {{ super() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/blog.css'|asseturl }}"> -{% endblock %} - {% block content %}{{ render_blog_index(this.pagination) }}{% endblock %} |
