Vorlage:Buchbox: Unterschied zwischen den Versionen
Aus WikiToYes
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
| Zeile 9: | Zeile 9: | ||
<div class="col-md-4"> | <div class="col-md-4"> | ||
<div class="p-0 m-0"> | <div class="p-0 m-0"> | ||
[[Datei:Home-fachbuch.png|frameless|500px|link= | [[Datei:Home-fachbuch.png|frameless|500px|link=Buch:{{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch|link=none}}]] | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- Rechte Spalte: Navigation --> | <!-- Rechte Spalte: Navigation + TOC --> | ||
<div class="col-md-8"> | <div class="col-md-8"> | ||
<div class="ps-3"> | <div class="ps-3"> | ||
<!-- | <!-- Buchnavigation --> | ||
<div style="background:#f8f9fa | <div style="background:#f8f9fa; border-radius:8px; padding:12px; margin-bottom:15px"> | ||
< | <div style="display:flex; gap:15px; flex-wrap:wrap"> | ||
<!-- Buchhierarchie --> | |||
<div style="flex:1; min-width:200px"> | |||
<h4 style="margin-top:0">Buchposition</h4> | |||
<div style="font-size:0.95em"> | |||
<div>Buch: [[{{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}]]</div> | |||
{{#if:{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite|link=none}}| | |||
<div>Kapitel: [[{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}]]</div> | |||
}} | |||
<div style="margin-top:5px"><strong>{{PAGENAME}}</strong></div> | |||
</div> | |||
</div> | </div> | ||
<div style="flex:1; | |||
<!-- Unterkapitel --> | |||
{{# | <div style="flex:1; min-width:200px"> | ||
<h4 style="margin-top:0">Unterkapitel</h4> | |||
{{#ask:[[Übergeordnete_Seite::{{FULLPAGENAME}}]] | |||
|sort=Title | |||
|order=asc | |||
|format=ul | |||
|link=all | |||
|default=<small style="color:#666">Keine Unterkapitel</small> | |||
}} | }} | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- | <!-- Inhaltsverzeichnis --> | ||
<div style=" | <div id="fade-toc" class="toc-fade" style="max-height: 400px; overflow-y: auto;"> | ||
__TOC__ | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
| Zeile 68: | Zeile 61: | ||
<hr style="margin: 0;"> | <hr style="margin: 0;"> | ||
<!-- | <!-- CSS für responsive Anpassungen --> | ||
{{ | <style> | ||
@media (max-width: 768px) { | |||
.col-md-4, .col-md-8 { | |||
width: 100%; | |||
padding-right: 0; | |||
{ | } | ||
.toc-fade { | |||
max-height: 200px !important; | |||
} | |||
} | |||
</style> | |||
</includeonly> | </includeonly> | ||