Vorlage:Themenportal/styles.css
Aus Hist. Verein Herne / Wanne-Eickel e. V.
/* ===========================================================
TemplateStyles für Themenportale auf Kategorie-Seiten
Speichern unter: Vorlage:Themenportal/styles.css
Aufgerufen aus: Kategorie:Migration, Kategorie:Jüdisches Leben,
Kategorie:DGB-Geschichtswerkstatt usw.
=========================================================== */
.tp {
font-family: sans-serif;
font-size: 16px;
line-height: 1.6;
color: #2c2c2a;
max-width: 100%;
margin: 0 0 1em;
}
/* ---------- Hero-Bild oben ---------- */
.tp__hero {
text-align: center;
padding: 18px 0;
margin: 0 0 18px;
border-bottom: 1px solid #f1efe8;
}
.tp__hero img {
max-width: 100%;
height: auto;
display: inline-block;
}
/* ---------- Einleitungstext ---------- */
.tp__intro {
font-size: 16px;
line-height: 1.7;
color: #2c2c2a;
margin: 0 0 24px;
padding: 0 4px;
}
.tp__intro p {
margin: 0 0 0.8em;
}
.tp__intro p:last-child {
margin-bottom: 0;
}
/* ---------- Sektionen (Themenboxen) ---------- */
.tp__sections {
display: grid;
grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) );
gap: 16px;
margin: 0 0 24px;
}
.tp__section {
background: #faf8f1;
border: 1px solid #f1efe8;
border-radius: 8px;
padding: 14px 16px 12px;
}
/* "wide"-Variante füllt die ganze Zeile (z.B. für Literatur-Listen) */
.tp__section--wide {
grid-column: 1 / -1;
}
.tp__section-title {
font-size: 16px;
font-weight: 500;
color: #3a4a7a; /* Migration-Farbe; via Modifier-Klasse änderbar */
text-transform: uppercase;
letter-spacing: 0.04em;
margin: 0 0 8px;
padding-bottom: 6px;
border-bottom: 1px solid #e8e4d8;
}
/* Listen innerhalb der Sektionen */
.tp__section ul {
list-style: none;
padding: 0;
margin: 0;
}
.tp__section li {
padding: 4px 0;
font-size: 16px;
line-height: 1.45;
border-bottom: 1px solid #f1eee5;
}
.tp__section li:last-child {
border-bottom: none;
}
/* ---------- Trenner vor der automatischen Kategorie-Liste ---------- */
.tp__list-intro {
margin-top: 28px;
padding-top: 12px;
border-top: 2px solid #3a4a7a;
font-size: 13px;
color: #888780;
text-transform: uppercase;
letter-spacing: 0.04em;
font-weight: 500;
}
/* ===========================================================
Modifier-Klassen für andere Portale (Farbe je nach Thema)
Anwendung: <div class="tp tp--juedisch"> usw.
=========================================================== */
.tp--juedisch .tp__section-title,
.tp--juedisch .tp__list-intro {
color: #5e3787; /* z.B. Violett für Jüdisches Leben */
}
.tp--juedisch .tp__list-intro {
border-top-color: #5e3787;
}
.tp--dgb .tp__section-title,
.tp--dgb .tp__list-intro {
color: #8b3a2a; /* z.B. Rot für DGB-Geschichtswerkstatt */
}
.tp--dgb .tp__list-intro {
border-top-color: #8b3a2a;
}
/* ---------- Responsive ---------- */
@media ( max-width: 600px ) {
.tp__sections {
grid-template-columns: 1fr;
}
}
/* ---------- Druckansicht ---------- */
@media print {
.tp__section {
break-inside: avoid;
background: #fff;
border: 1px solid #ccc;
}
}
/* ---------- Dunkler Modus ---------- */
@media ( prefers-color-scheme: dark ) {
.tp { color: #f1efe8; }
.tp__intro { color: #d3d1c7; }
.tp__hero { border-color: #444441; }
.tp__section {
background: #232321;
border-color: #444441;
}
.tp__section-title {
color: #9ab0d8;
border-bottom-color: #444441;
}
.tp__section li { border-bottom-color: #38383640; }
.tp__list-intro {
color: #b4b2a9;
border-top-color: #9ab0d8;
}
.tp--juedisch .tp__section-title,
.tp--juedisch .tp__list-intro { color: #cebfe6; }
.tp--juedisch .tp__list-intro { border-top-color: #cebfe6; }
.tp--dgb .tp__section-title,
.tp--dgb .tp__list-intro { color: #e6b0a0; }
.tp--dgb .tp__list-intro { border-top-color: #e6b0a0; }
}
