From 0cc90ac29576e8ee7457cf215fc3a0136d44f1fb Mon Sep 17 00:00:00 2001 From: karim Date: Tue, 2 Jun 2026 01:52:45 +0200 Subject: [PATCH] ui: Dialog als Pill in die Provenance-Reihe, sticht durch Symbol+Akzent hervor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dialog-Link in .provenance verschoben: → Dialog · Version · Verlauf · Zitieren in einer Reihe, gleiche Pill-Form. Dialog (prov-dialog) hebt sich durch Pfeil + Akzentfarbe (Rahmen/Text, fett) ab, Hover füllt Akzent. Zähler-Script mit ins Partial gezogen; alte .dialog-link-Klasse/-CSS entfernt. Co-Authored-By: Claude Opus 4.8 --- assets/css/custom.css | 16 +++++++++------- layouts/_default/single.html | 16 +--------------- layouts/_partials/provenance.html | 12 ++++++++++++ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 01c8e47..49a09e6 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -554,19 +554,21 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } /* ── Dialog ───────────────────────────────────────────────────────────────── */ /* Link am Ende des Beitrags (der Beitrag selbst bleibt sauber) */ -.dialog-link { +/* Dialog-Pill in der Provenance-Reihe: gleiche Form wie die anderen, sticht + aber durch Pfeil-Symbol + Akzentfarbe (Rahmen/Text) hervor. */ +.prov-dialog { display: inline-block; - margin-top: var(--spacing-md); - font-family: var(--font-family-display); - font-weight: 500; - font-size: 0.82rem; + font-family: var(--font-family-mono); + font-size: var(--font-size-small); + font-weight: 600; color: var(--accent); text-decoration: none; + background: none; border: 1px solid var(--accent); border-radius: 999px; - padding: 0.28em 0.85em; + padding: 0.12em 0.7em; } -.dialog-link:hover { background: var(--accent); color: #fff; } +.prov-dialog:hover { background: var(--accent); color: #fff; } /* Eigene Dialog-Seite (/dialog/?thread=…) */ /* Füllt die normale Inhaltsspalte (kein eigenes max-width/Seiten-Padding → gleiche Breite wie andere Seiten) */ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 65b3ad2..34518ac 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -76,25 +76,11 @@ {{- end }} - {{/* Herkunft/Zitieren — nur bei Library-Beiträgen (lebendes Dokument). */}} + {{/* Herkunft/Zitieren/Dialog — nur bei Library-Beiträgen (lebendes Dokument). */}} {{ if eq .Section "library" }} {{ partial "provenance.html" . }} {{ end }} - - {{/* Dialog nur bei Artikeln (Library), nicht auf Seiten wie Spenden/Manifest. */}} - {{ if eq .Section "library" }} - → Dialog - - {{ end }} {{ end }} diff --git a/layouts/_partials/provenance.html b/layouts/_partials/provenance.html index e6da4fe..48c45d3 100644 --- a/layouts/_partials/provenance.html +++ b/layouts/_partials/provenance.html @@ -4,6 +4,8 @@ {{ $repo := site.Params.repoURL }} {{ $author := .Params.author | default site.Params.author.name }}
+ {{/* Dialog: gleiche Pill-Reihe, sticht durch Pfeil + Akzentfarbe hervor. */}} + → Dialog {{ with .GitInfo }} {{ with $repo }} Version {{ $.GitInfo.AbbreviatedHash }} @@ -74,3 +76,13 @@ }); })(); +