diff --git a/assets/css/custom.css b/assets/css/custom.css index 6f73be7..9171802 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -745,16 +745,21 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } .entry-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; } .entry-links-label { font-size: var(--font-size-small); font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; } -/* Library-Übersicht: Suchfeld + A-Z-Index */ +/* Library-Übersicht: Suchfeld + Kategorie-Pills */ .lib-filter { margin-bottom: var(--spacing-md); display: flex; flex-direction: column; gap: 0.6em; } .lib-search { width: 100%; padding: 0.45em 0.8em; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg-secondary); color: var(--color-text-primary); font-size: var(--font-size-base); font-family: inherit; } .lib-search:focus { outline: none; border-color: var(--section-color, var(--accent)); } -.lib-az { display: flex; flex-wrap: wrap; gap: 0.25em; } -.lib-az button { padding: 0.15em 0.45em; border: 1px solid var(--color-border); border-radius: 4px; - background: transparent; color: var(--color-text-muted); font-size: var(--font-size-small); cursor: pointer; font-family: inherit; line-height: 1.5; } -.lib-az button:hover { border-color: var(--section-color, var(--accent)); color: var(--color-text-primary); } -.lib-az button.active { background: var(--section-color, var(--accent)); border-color: var(--section-color, var(--accent)); color: white; } +.lib-pills { display: flex; flex-wrap: wrap; gap: 0.3em; } +.lib-pill { font-family: var(--font-family-display); font-size: var(--font-size-small); cursor: pointer; + padding: 0.28em 0.85em; border-radius: 999px; + background: none; border: 1px solid var(--color-border); color: var(--color-text-muted); } +.lib-pill:hover { border-color: var(--section-color, var(--accent)); color: var(--color-text-primary); } +.lib-pill.active { background: var(--section-color, var(--accent)); border-color: var(--section-color, var(--accent)); color: white; } + +/* Library-Atlas: zwei Kategorien nebeneinander */ +.atlas--grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); align-items: start; } +@media (max-width: 600px) { .atlas--grid2 { grid-template-columns: 1fr; } } /* ── Software-Landing: Werkzeuge getrennt von Texten ── */ .software-h { font-family: var(--font-family-serif); margin: var(--spacing-md) 0 var(--spacing-sm); } @@ -1149,6 +1154,7 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } .collection { margin-top: var(--spacing-sm); } .collection-title, .collection-inner { max-width: 48.5rem; margin-inline: auto; } +.collection .section-rubric { max-width: 48.5rem; margin-inline: auto; margin-top: var(--spacing-sm); } .collection-title { text-align: left; font-family: var(--font-family-serif); @@ -1163,9 +1169,9 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } } /* Archiv-Umschalter (Kategorie ↔ Jahr) */ -.archiv-toggle { display: inline-flex; gap: 0.3em; margin: 0 0 var(--spacing-md); } +.archiv-toggle { display: inline-flex; gap: 0.3em; margin: 0 0 0.5em; } .archiv-toggle button { - font: inherit; font-size: var(--font-size-small); cursor: pointer; + font-family: var(--font-family-display); font-size: var(--font-size-small); cursor: pointer; padding: 0.3em 0.95em; border-radius: 999px; background: none; border: 1px solid var(--color-border); color: var(--color-text-muted); } @@ -1180,6 +1186,8 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } .time-list ul { list-style: none; margin-left: 0; + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); + gap: 1.25rem; } .list-item { border-top: 1px solid var(--color-border); @@ -1212,6 +1220,9 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); } font-style: italic; line-height: 1.45; } +/* Im Grid: Datum unter dem Titel, keine Trennlinie zwischen Cards */ +.time-list .list-title-row { flex-direction: column; align-items: flex-start; gap: 0.2em; } +.time-list .list-item, .time-list .list-item:last-child { border-top: none; border-bottom: none; } /* ------------------------------------------------------------------------ Software showcase diff --git a/layouts/archiv/list.html b/layouts/archiv/list.html index f9c2963..b258eb7 100644 --- a/layouts/archiv/list.html +++ b/layouts/archiv/list.html @@ -132,30 +132,31 @@ {{ else }} - {{/* Archiv-Unterseite (Rubrik): chronologisch */}} - {{ $section := path.Base .RelPermalink }} -
+ {{/* Archiv-Unterseite (Rubrik): gleiche Optik wie Übersichten */}} +

Archiv

-

{{ .Title }}

- {{ with .Params.description }}

{{ . }}

{{ end }} -
- {{ .Content }} -
- +

{{ .Title }}

+
+ {{ with .Params.description }}

{{ . }}

{{ end }} + {{ .Content }} +
+
    + {{ range .RegularPages.ByDate.Reverse }} +
  • +
    +
    + {{ .LinkTitle }} + {{ with .Params.summary }} +
    {{ . }}
    + {{ end }} +
    +
    {{ partial "date.html" .Date }}
    +
    +
  • + {{ end }} +
+
+
{{ end }} {{ end }} diff --git a/layouts/library/list.html b/layouts/library/list.html index a15ee97..e0b464f 100644 --- a/layouts/library/list.html +++ b/layouts/library/list.html @@ -7,37 +7,30 @@ {{ $pages := where site.RegularPages "Section" "library" }} {{ if $pages }} - {{/* A-Z Buchstaben aus vorhandenen Titeln */}} - {{ $letters := slice }} - {{ range $pages }} - {{ $first := substr (upper .Title) 0 1 }} - {{ $first = replace $first "Ä" "A" }} - {{ $first = replace $first "Ö" "O" }} - {{ $first = replace $first "Ü" "U" }} - {{ if not (in $letters $first) }}{{ $letters = $letters | append $first }}{{ end }} - {{ end }} - {{ $letters = sort $letters }} - -
- -
- - {{ range $letters }}{{ end }} -
-
- - {{/* Gruppen aufbauen */}} + {{/* Gruppen sammeln + sortieren */}} {{ $groups := dict }} {{ range $pages }} {{ $g := .Params.group | default "Allgemein" }} {{ $existing := index $groups $g | default slice }} {{ $groups = merge $groups (dict $g ($existing | append .)) }} {{ end }} + {{ $groupNames := slice }} + {{ range $g, $_ := $groups }}{{ $groupNames = $groupNames | append $g }}{{ end }} + {{ $groupNames = sort $groupNames }} -
- {{ range $g, $ps := $groups }} -
-

{{ $g }}

+
+ +
+ + {{ range $groupNames }}{{ end }} +
+
+ +
+ {{ range $groupNames }} + {{ $ps := index $groups . }} +
+

{{ . }}

    {{ range sort $ps "Title" }} {{ $norm := lower .Title }} @@ -58,31 +51,31 @@