From a818bb8c61a695f8c01b737c54f3be42de7a0e5e Mon Sep 17 00:00:00 2001 From: eclipse Date: Sat, 8 Mar 2025 13:29:33 +0100 Subject: [PATCH] small improvements --- theme/static/css/custom.css | 28 ++++++++++++++-------------- theme/templates/termine.html | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/theme/static/css/custom.css b/theme/static/css/custom.css index 4c0166a..40d91be 100644 --- a/theme/static/css/custom.css +++ b/theme/static/css/custom.css @@ -102,14 +102,13 @@ h1, h2, h3, h4, h5, h6 { opacity: 1; } } - /* end override hamburger settings */ -/* Two cards side by side on small screens */ @media (min-width: 576px) { :root { --pico-font-size: 118.75%; } + /* Two cards side by side on small screens */ .card { max-width: calc(50% - var(--pico-block-spacing-horizontal) / 2); } @@ -121,11 +120,11 @@ h1, h2, h3, h4, h5, h6 { } } -/* Three cards side by side on large screens */ @media (min-width: 1024px) { :root { --pico-font-size: 131.25%; } + /* Three cards side by side on large screens */ .card { max-width: calc(33% - var(--pico-block-spacing-horizontal) * 2 / 3); } @@ -135,30 +134,24 @@ h1, h2, h3, h4, h5, h6 { :root { --pico-font-size: 137.5%; } + .container { + max-width: 1170px; + } } -/* Four cards side by side on xs-large screens */ @media screen and (min-width: 1536px) { :root { --pico-font-size: 143.75%; } - + /* Four cards side by side on xs-large screens */ .card { max-width: calc(25% - var(--pico-block-spacing-horizontal) * 3 / 4); } - .container { max-width: 1280px; } } -/* Smaller container width on x-large screens */ -@media (min-width: 1280px) { - .container { - max-width: 1170px; - } -} - /* * Light/Dark mode settings (adapted from Yohn's Pico fork) @@ -290,6 +283,7 @@ h1, h2, h3, h4, h5, h6 { box-shadow: var(--pico-card-box-shadow); padding: calc(var(--pico-block-spacing-horizontal) * 0.5) calc(var(--pico-block-spacing-vertical) * 0.5); text-align: center; + background-color: var(--pico-card-background-color); } .featured-image { @@ -303,6 +297,9 @@ figcaption { a { font-size: 0.85m;} } +#no-bottom-margin { + margin-bottom: 0; +} /* Index page */ @@ -336,6 +333,10 @@ figcaption { } +.events .tr-muted { + color: var(--pico-muted-color); +} + /* event list */ .event-info { vertical-align: top; @@ -577,7 +578,6 @@ img.impr { a { color: var(--pico-text-color); - font-style: italic; } } diff --git a/theme/templates/termine.html b/theme/templates/termine.html index 3efe100..01e53e0 100644 --- a/theme/templates/termine.html +++ b/theme/templates/termine.html @@ -7,7 +7,7 @@ {% if page.featured_image is defined %} {% from 'includes/macros.html' import fi %} {% set i = page.featured_image[0] %} - {{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }} +
{{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }}
{% endif %}
@@ -28,6 +28,7 @@ {% endfor %} +
Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y, %H:%M Uhr") }}
@@ -35,7 +36,6 @@ {% if page.written_at is defined %} {% block content_footer %} -

Letzte Aktualisierung: {{ page.written_at | strftime("%d.%m.%Y, %H:%M Uhr") }}

{% endblock content_footer %} {% endif %} {% endif %}