From b926912294f37e1d5a3f84c412d55f8637c71583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Sun, 12 Oct 2025 17:42:54 +0200 Subject: [PATCH] Styles and templates, again --- assets/styles/03-components/picture-event.css | 2 +- templates/event/_kind20_picture.html.twig | 129 +---------------- templates/event/index.html.twig | 99 +------------ templates/pages/author-about.html.twig | 2 +- templates/pages/author-media.html.twig | 2 +- templates/pages/author.html.twig | 3 +- templates/partial/_gallery.html.twig | 131 ++++++++++++++++++ 7 files changed, 137 insertions(+), 231 deletions(-) create mode 100644 templates/partial/_gallery.html.twig diff --git a/assets/styles/03-components/picture-event.css b/assets/styles/03-components/picture-event.css index c351a37..d86a67a 100644 --- a/assets/styles/03-components/picture-event.css +++ b/assets/styles/03-components/picture-event.css @@ -1,6 +1,6 @@ figure.media { margin: 0; - padding: var(--spacing-3) var(--spacing-3) 0 var(--spacing-3); + padding: var(--spacing-3); border: none; box-shadow: none; background-color: var(--color-bg-light); diff --git a/templates/event/_kind20_picture.html.twig b/templates/event/_kind20_picture.html.twig index 18f3a9c..884d426 100644 --- a/templates/event/_kind20_picture.html.twig +++ b/templates/event/_kind20_picture.html.twig @@ -13,135 +13,8 @@ {% set isEmbed = true %} {% endif %} - {# Content warning #} - {% set contentWarning = null %} - {% for tag in event.tags %} - {% if tag[0] == 'content-warning' %} - {% set contentWarning = tag[1] %} - {% endif %} - {% endfor %} - - {% if contentWarning %} -
- ⚠️ Content Warning: {{ contentWarning }} - -
-