fix(wiki): Header in die Inhaltsspalte → Titel fluchtet mit dem Text
Header war volle (schmalere, zentrierte) Inhaltsbreite, die zweispaltige Fläche darunter aber breiter → Titel versetzt. Header jetzt in .wiki-page, Oberkante mit der Seitenleiste gleichgezogen (margin-top:0). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -738,6 +738,9 @@ 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,12 +1,11 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<header class="section-header">
|
|
||||||
<h1 class="section-title">{{ .Title }}</h1>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="wiki">
|
<div class="wiki">
|
||||||
<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,14 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<div class="wiki">
|
||||||
|
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
|
||||||
|
|
||||||
|
<div class="wiki-page">
|
||||||
<header class="section-header">
|
<header class="section-header">
|
||||||
<p class="section-rubric">{{ with .Params.group }}{{ . }}{{ else }}Wiki{{ end }}</p>
|
<p class="section-rubric">{{ with .Params.group }}{{ . }}{{ else }}Wiki{{ end }}</p>
|
||||||
<h1 class="section-title">{{ .Title }}</h1>
|
<h1 class="section-title">{{ .Title }}</h1>
|
||||||
{{ with .Params.summary }}<p class="section-description">{{ . }}</p>{{ end }}
|
{{ with .Params.summary }}<p class="section-description">{{ . }}</p>{{ end }}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="wiki">
|
|
||||||
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
|
|
||||||
|
|
||||||
<div class="wiki-page">
|
|
||||||
{{ $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