ui(wiki): vollbreiter Header wie Library (gleiche max-width), Spalten darunter
Wiki-Header (section-header) spannt jetzt die volle Spalte (grid-column 1/-1) und die .wiki-Box hat dieselbe max-width/Zentrierung wie der normale Inhalt — so fluchten Library- und Wiki-Header. Seitenleiste + Inhalt darunter. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+13
-6
@@ -719,9 +719,19 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); }
|
|||||||
.dialog-hint { font-size: var(--font-size-small); color: var(--color-text-muted); align-self: center; opacity: 0.7; }
|
.dialog-hint { font-size: var(--font-size-small); color: var(--color-text-muted); align-self: center; opacity: 0.7; }
|
||||||
.dialog-spacer { flex: 1; }
|
.dialog-spacer { flex: 1; }
|
||||||
|
|
||||||
/* ── Wiki: zweispaltig (Seitenleiste + Inhalt), schlicht ── */
|
/* ── Wiki: vollbreiter Section-Header (wie Library) + zwei Spalten darunter.
|
||||||
.wiki { display: grid; grid-template-columns: 220px 1fr; gap: 2.6em; align-items: start; width: 100%; }
|
Gleiche max-width/Zentrierung wie der normale Inhalt → Wiki- und Library-
|
||||||
@media (max-width: 760px) { .wiki { grid-template-columns: 1fr; gap: 1.4em; } .wiki-side { position: static; } }
|
Header fluchten exakt. ── */
|
||||||
|
.wiki {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 200px 1fr;
|
||||||
|
column-gap: 2.6em; row-gap: var(--spacing-sm);
|
||||||
|
align-items: start;
|
||||||
|
max-width: calc(var(--container-width) + 3.5rem);
|
||||||
|
margin-inline: auto;
|
||||||
|
}
|
||||||
|
.wiki > .section-header { grid-column: 1 / -1; margin-top: 0; }
|
||||||
|
@media (max-width: 760px) { .wiki { grid-template-columns: 1fr; column-gap: 0; } .wiki-side { position: static; } }
|
||||||
.wiki-side { position: sticky; top: 1em; align-self: start; }
|
.wiki-side { position: sticky; top: 1em; align-self: start; }
|
||||||
.wiki-nav { display: flex; flex-direction: column; gap: 0.35em; font-size: var(--font-size-small); }
|
.wiki-nav { display: flex; flex-direction: column; gap: 0.35em; font-size: var(--font-size-small); }
|
||||||
.wiki-nav-home { text-decoration: none; color: var(--color-text-primary); font-weight: 600; }
|
.wiki-nav-home { text-decoration: none; color: var(--color-text-primary); font-weight: 600; }
|
||||||
@@ -738,9 +748,6 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); }
|
|||||||
.wiki-nav li a.is-current { color: var(--color-text-primary); font-weight: 600; border-left-color: var(--accent); }
|
.wiki-nav li a.is-current { color: var(--color-text-primary); font-weight: 600; border-left-color: var(--accent); }
|
||||||
|
|
||||||
.wiki-page { min-width: 0; }
|
.wiki-page { min-width: 0; }
|
||||||
/* Header sitzt in der Inhaltsspalte → fluchtet mit dem Text; Oberkante mit der
|
|
||||||
Seitenleiste gleichziehen (section-header bringt sonst margin-top mit). */
|
|
||||||
.wiki-page .section-header { margin-top: 0; }
|
|
||||||
.wiki-index { margin-top: var(--spacing-md); }
|
.wiki-index { margin-top: var(--spacing-md); }
|
||||||
.wiki-group { margin-bottom: var(--spacing-md); }
|
.wiki-group { margin-bottom: var(--spacing-md); }
|
||||||
.wiki-group h2 { font-family: var(--font-family-serif); font-size: 1.1rem; margin: 0 0 0.4em; }
|
.wiki-group h2 { font-family: var(--font-family-serif); font-size: 1.1rem; margin: 0 0 0.4em; }
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="wiki">
|
<div class="wiki">
|
||||||
|
<header class="section-header">
|
||||||
|
<h1 class="section-title">{{ .Title }}</h1>
|
||||||
|
</header>
|
||||||
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
|
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
|
||||||
|
|
||||||
<div class="wiki-page">
|
<div class="wiki-page">
|
||||||
<header class="section-header">
|
|
||||||
<h1 class="section-title">{{ .Title }}</h1>
|
|
||||||
</header>
|
|
||||||
<div class="single-content">{{ .Content }}</div>
|
<div class="single-content">{{ .Content }}</div>
|
||||||
|
|
||||||
{{ $pages := where site.RegularPages "Section" "wiki" }}
|
{{ $pages := where site.RegularPages "Section" "wiki" }}
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="wiki">
|
<div class="wiki">
|
||||||
|
<header class="section-header">
|
||||||
|
<p class="section-rubric">{{ with .Params.group }}{{ . }}{{ else }}Wiki{{ end }}</p>
|
||||||
|
<h1 class="section-title">{{ .Title }}</h1>
|
||||||
|
{{ with .Params.summary }}<p class="section-description">{{ . }}</p>{{ end }}
|
||||||
|
</header>
|
||||||
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
|
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
|
||||||
|
|
||||||
<div class="wiki-page">
|
<div class="wiki-page">
|
||||||
<header class="section-header">
|
|
||||||
<p class="section-rubric">{{ with .Params.group }}{{ . }}{{ else }}Wiki{{ end }}</p>
|
|
||||||
<h1 class="section-title">{{ .Title }}</h1>
|
|
||||||
{{ with .Params.summary }}<p class="section-description">{{ . }}</p>{{ end }}
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{ $hasToC := .Params.toc | default false }}
|
{{ $hasToC := .Params.toc | default false }}
|
||||||
{{ $headers := findRE "<h[2-6]" .Content }}
|
{{ $headers := findRE "<h[2-6]" .Content }}
|
||||||
{{ if and $hasToC (ge (len $headers) 2) }}
|
{{ if and $hasToC (ge (len $headers) 2) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user