MediaWiki:Common.css
MediaWiki-Schnittstellenseite
Weitere Optionen
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* =========================================================
2-Bit Wiki - "Nerdy Terminal"
========================================================= */
/* ---------- Grundlayout ---------- */
.tw-landing {
--tw-bg: #f7fafc;
--tw-bg-soft: #eef4fb;
--tw-bg-panel: #ffffff;
--tw-border: #d7e3f0;
--tw-border-bright: #9fc2ea;
--tw-text: #1e293b;
--tw-text-soft: #475569;
--tw-heading: #0f172a;
--tw-link: #0f5cc0;
--tw-link-hover: #0a84c6;
--tw-green: #16a34a;
--tw-cyan: #0891b2;
--tw-blue: #2563eb;
--tw-purple: #7c3aed;
--tw-amber: #d97706;
--tw-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
color: var(--tw-text);
font-size: 15px;
line-height: 1.7;
}
.tw-landing a {
color: var(--tw-link);
text-decoration: none;
transition: color 0.2s ease, text-shadow 0.2s ease;
}
.tw-landing a:hover,
.tw-landing a:focus {
color: var(--tw-link-hover);
text-decoration: none;
}
/* ---------- Hero / Header ---------- */
.tw-hero {
position: relative;
overflow: hidden;
margin: 0 0 28px 0;
padding: 28px 28px 24px 28px;
border: 1px solid var(--tw-border-bright);
border-radius: 16px;
background:
radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 26%),
radial-gradient(circle at left center, rgba(6, 182, 212, 0.08), transparent 30%),
linear-gradient(180deg, #fdfefe 0%, #eef5fb 100%);
box-shadow: var(--tw-shadow);
}
.tw-hero::before {
content: "";
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
background-size: 24px 24px;
pointer-events: none;
opacity: 0.5;
}
.tw-hero > * {
position: relative;
z-index: 1;
}
.tw-hero-kicker {
margin-bottom: 8px;
color: #0f5cc0;
font-family: "Consolas", "Courier New", monospace;
font-size: 0.84em;
font-weight: 700;
letter-spacing: 1.4px;
text-transform: uppercase;
}
.tw-hero-title {
margin: 0 0 14px 0;
color: var(--tw-heading);
font-size: 2.15em;
line-height: 1.2;
font-weight: 700;
}
.tw-terminal-line {
display: inline-block;
margin: 0 0 16px 0;
padding: 10px 14px;
border: 1px solid rgba(22, 163, 74, 0.22);
border-radius: 10px;
background: #f4fbf6;
color: #14532d;
font-family: "Consolas", "Courier New", monospace;
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.tw-prompt {
color: var(--tw-green);
font-weight: 700;
}
.tw-hero-text {
max-width: 920px;
margin: 0;
color: var(--tw-text);
font-size: 1.04em;
}
.tw-tag-row {
margin-top: 18px;
}
.tw-tag {
display: inline-block;
margin: 4px 8px 4px 0;
padding: 5px 10px;
border: 1px solid rgba(8, 145, 178, 0.18);
border-radius: 999px;
background: #f0f9ff;
color: #0f4f67;
font-size: 0.88em;
font-family: "Consolas", "Courier New", monospace;
}
/* ---------- Überschriften innerhalb der Seite ---------- */
.tw-landing h2 {
margin-top: 30px;
margin-bottom: 14px;
padding-bottom: 8px;
border-bottom: 1px solid var(--tw-border);
color: var(--tw-heading);
font-weight: 700;
}
/* ---------- Karten ---------- */
.tw-card-grid {
display: flex;
flex-wrap: wrap;
gap: 18px;
margin-bottom: 28px;
}
.tw-card {
flex: 1 1 280px;
min-width: 260px;
position: relative;
overflow: hidden;
padding: 18px;
border: 1px solid var(--tw-border);
border-radius: 14px;
background:
linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.96)),
var(--tw-bg-panel);
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
transition:
transform 0.18s ease,
border-color 0.18s ease,
box-shadow 0.18s ease;
}
.tw-card:hover {
transform: translateY(-3px);
border-color: #93c5fd;
box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}
.tw-card::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 4px;
background: var(--card-accent, var(--tw-blue));
}
.tw-card-blue { --card-accent: var(--tw-blue); }
.tw-card-cyan { --card-accent: var(--tw-cyan); }
.tw-card-green { --card-accent: var(--tw-green); }
.tw-card-purple { --card-accent: var(--tw-purple); }
.tw-card-amber { --card-accent: var(--tw-amber); }
.tw-card-title {
margin-bottom: 8px;
color: var(--tw-heading);
font-size: 1.08em;
font-weight: 700;
}
.tw-card-text {
color: var(--tw-text-soft);
}
/* ---------- Info-Box ---------- */
.tw-info-box {
margin-bottom: 22px;
padding: 18px 18px 18px 20px;
border: 1px solid #cfe0f3;
border-left: 4px solid var(--tw-green);
border-radius: 12px;
background:
linear-gradient(90deg, rgba(34, 197, 94, 0.06), transparent 35%),
#f8fcf9;
}
.tw-info-title {
margin-bottom: 6px;
color: #166534;
font-family: "Consolas", "Courier New", monospace;
font-size: 0.93em;
font-weight: 700;
letter-spacing: 0.6px;
}
.tw-info-text {
color: var(--tw-text);
}
/* ---------- Button ---------- */
.tw-center {
text-align: center;
}
.tw-button-wrap {
display: inline-block;
margin: 4px 0 24px 0;
padding: 12px 20px;
border: 1px solid rgba(8, 145, 178, 0.22);
border-radius: 999px;
background: linear-gradient(180deg, #f8fcff 0%, #eaf4fb 100%);
box-shadow:
0 8px 18px rgba(15, 23, 42, 0.08),
inset 0 0 0 1px rgba(255,255,255,0.8);
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tw-button-wrap:hover {
transform: translateY(-2px);
border-color: rgba(14, 165, 233, 0.45);
box-shadow:
0 12px 24px rgba(15, 23, 42, 0.10),
0 0 0 3px rgba(125, 211, 252, 0.16);
}
.tw-button-wrap a,
.tw-button-wrap a:visited {
color: #0f172a !important;
font-weight: 700;
text-decoration: none !important;
}
/* ---------- Panels / Zweispalter ---------- */
.tw-two-col {
display: flex;
flex-wrap: wrap;
gap: 18px;
margin-bottom: 28px;
}
.tw-panel {
flex: 1 1 320px;
min-width: 280px;
padding: 18px;
border: 1px solid var(--tw-border);
border-radius: 14px;
background:
linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.95)),
#ffffff;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.tw-panel-title {
margin-bottom: 10px;
color: var(--tw-heading);
font-size: 1.05em;
font-weight: 700;
}
.tw-panel-text {
color: var(--tw-text-soft);
}
/* ---------- Footer ---------- */
.tw-footer-note {
margin-top: 30px;
padding-top: 18px;
border-top: 1px solid var(--tw-border);
color: var(--tw-text-soft);
text-align: center;
}
.tw-footer-main {
margin-bottom: 10px;
color: #334155;
font-style: italic;
}
/* ---------- Mobile ---------- */
@media (max-width: 768px) {
.tw-hero {
padding: 20px 18px 18px 18px;
}
.tw-hero-title {
font-size: 1.7em;
}
.tw-terminal-line {
display: block;
width: 100%;
box-sizing: border-box;
}
.tw-card,
.tw-panel {
min-width: 100%;
}
}
/* =========================
Kochbuch Hauptseite
========================= */
#catlinks,
.catlinks {
display: none !important;
}
/* Gesamter Bereich */
.kochbuch-home {
max-width: 1250px;
margin: 0 auto;
padding: 1rem 0 2rem 0;
color: #4a3425;
}
/* Hero */
.kochbuch-hero {
display: grid;
grid-template-columns: 1.4fr 0.9fr;
gap: 1.5rem;
align-items: stretch;
margin-bottom: 2rem;
}
.kochbuch-hero-text,
.kochbuch-neues-rezept-box {
background: linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
border: 1px solid #eadfce;
border-radius: 22px;
box-shadow: 0 10px 24px rgba(0,0,0,0.06);
padding: 1.6rem 1.8rem;
}
.kochbuch-eyebrow {
display: inline-block;
background: #f7efe4;
color: #6b4d35;
border: 1px solid #eadfce;
border-radius: 999px;
padding: 0.35rem 0.8rem;
font-size: 0.88rem;
font-weight: 600;
letter-spacing: 0.02em;
margin-bottom: 0.9rem;
}
.kochbuch-title {
margin: 0 0 0.75rem 0;
font-size: 2.4rem;
line-height: 1.15;
color: #4b2f1c;
}
.kochbuch-subtitle {
margin: 0;
font-size: 1.08rem;
line-height: 1.65;
color: #6a5242;
max-width: 46rem;
}
/* CTA Box */
.kochbuch-neues-rezept-title {
font-size: 1.25rem;
font-weight: 700;
color: #5b3b24;
margin-bottom: 0.4rem;
}
.kochbuch-neues-rezept-text {
font-size: 0.97rem;
line-height: 1.55;
color: #6b5547;
margin-bottom: 1rem;
}
/* PageForms Eingabe schöner machen */
.kochbuch-neues-rezept-box input[type="text"],
.kochbuch-neues-rezept-box input[type="search"] {
width: 100%;
box-sizing: border-box;
border: 1px solid #ddcfbb;
background: #fff;
border-radius: 12px;
padding: 0.75rem 0.95rem;
font-size: 1rem;
margin-bottom: 0.75rem;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.kochbuch-neues-rezept-box input[type="text"]:focus,
.kochbuch-neues-rezept-box input[type="search"]:focus {
outline: none;
border-color: #c79d69;
box-shadow: 0 0 0 3px rgba(199, 157, 105, 0.16);
}
/* Button */
.kochbuch-neues-rezept-box input[type="submit"],
.kochbuch-neues-rezept-box button,
.kochbuch-neues-rezept-box .mw-htmlform-submit {
display: inline-block;
background: linear-gradient(180deg, #c98142 0%, #b96d2d 100%);
color: #fff !important;
border: none;
border-radius: 12px;
padding: 0.78rem 1.05rem;
font-size: 0.98rem;
font-weight: 700;
cursor: pointer;
box-shadow: 0 8px 18px rgba(185, 109, 45, 0.24);
transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.kochbuch-neues-rezept-box input[type="submit"]:hover,
.kochbuch-neues-rezept-box button:hover,
.kochbuch-neues-rezept-box .mw-htmlform-submit:hover {
transform: translateY(-1px);
filter: brightness(1.03);
box-shadow: 0 10px 22px rgba(185, 109, 45, 0.28);
}
/* Bereichsblöcke */
.kochbuch-bereich {
margin: 2rem 0 2.2rem 0;
}
.kochbuch-bereich-title {
margin: 0 0 1rem 0;
font-size: 1.7rem;
color: #5a3b25;
padding-bottom: 0.35rem;
border-bottom: 2px solid #f1e5d8;
}
/* Grid für Kategorien */
.kochbuch-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.kochbuch-grid-4 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Kategorie-Karten */
.kochbuch-kategorie-card {
background: #fffdf9;
border: 1px solid #eadfce;
border-radius: 18px;
padding: 1rem 1.1rem 1.1rem 1.1rem;
box-shadow: 0 6px 16px rgba(0,0,0,0.05);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kochbuch-kategorie-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 22px rgba(0,0,0,0.07);
}
.kochbuch-kategorie-card h3 {
margin: 0 0 0.8rem 0;
font-size: 1.1rem;
color: #6a4b34;
border-bottom: 1px solid #f1e5d8;
padding-bottom: 0.45rem;
}
/* Listen in den Karten */
.kochbuch-kategorie-card ul {
margin: 0.3rem 0 0 1.15rem;
padding: 0;
}
.kochbuch-kategorie-card li {
margin: 0.35rem 0;
line-height: 1.45;
}
.kochbuch-kategorie-card a {
color: #6a3f1d;
text-decoration: none;
font-weight: 500;
}
.kochbuch-kategorie-card a:hover {
color: #b96d2d;
text-decoration: underline;
}
/* Footer-Link */
.kochbuch-footer-tools {
text-align: right;
font-size: 0.85rem;
color: #7b6a5d;
margin-top: 1.5rem;
}
.kochbuch-footer-tools a {
color: #7b6a5d;
text-decoration: none;
}
.kochbuch-footer-tools a:hover {
text-decoration: underline;
}
/* Responsive */
@media (max-width: 980px) {
.kochbuch-hero {
grid-template-columns: 1fr;
}
}
@media (max-width: 700px) {
.kochbuch-grid,
.kochbuch-grid-4 {
grid-template-columns: 1fr;
}
.kochbuch-title {
font-size: 1.95rem;
}
.kochbuch-hero-text,
.kochbuch-neues-rezept-box,
.kochbuch-kategorie-card {
padding: 1rem;
}
}
/* =========================
Rezept-Design
========================= */
#catlinks,
.catlinks {
display: none !important;
}
.rezept-card {
background: #fffdf8;
border: 1px solid #eadfce;
border-radius: 18px;
padding: 1.5rem;
margin: 1rem 0 2rem 0;
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.rezept-hero {
margin-bottom: 1.25rem;
}
.rezept-bild img {
width: 100%;
max-width: 100%;
border-radius: 14px;
display: block;
box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.rezept-kopf {
margin-bottom: 1rem;
}
.rezept-chips {
display: flex;
flex-wrap: wrap;
gap: .55rem;
margin-bottom: .5rem;
}
.rezept-chip {
display: inline-block;
background: #f7efe4;
color: #5b4636;
border: 1px solid #eadfce;
border-radius: 999px;
padding: .35rem .8rem;
font-size: .92rem;
line-height: 1.2;
}
.rezept-chip-schwierigkeit {
background: #ffe8c8;
border-color: #f4d19a;
font-weight: 600;
}
.rezept-grid {
display: grid;
grid-template-columns: 1fr 1.4fr;
gap: 1.5rem;
margin-top: 1.25rem;
}
.rezept-box {
background: #ffffff;
border: 1px solid #eee2d4;
border-radius: 14px;
padding: 1rem 1.1rem;
}
.rezept-zutaten ul,
.rezept-zubereitung ol,
.rezept-hinweise ul {
margin-top: .5rem;
}
.rezept-zubereitung ol li,
.rezept-zutaten ul li {
margin-bottom: .45rem;
}
.rezept-hinweise {
margin-top: 1.5rem;
}
.rezept-card h2 {
margin-top: 0;
margin-bottom: .6rem;
font-size: 1.25rem;
color: #6a4b34;
border-bottom: 2px solid #f1e5d8;
padding-bottom: .3rem;
}
/* Formularhilfe */
.rezept-form-hilfe {
background: #fff8e8;
border: 1px solid #f1d89d;
border-radius: 12px;
padding: 1rem 1.1rem;
margin-bottom: 1.25rem;
}
.rezept-formtable {
width: 100%;
border-collapse: collapse;
}
.rezept-formtable th {
text-align: left;
vertical-align: top;
width: 220px;
padding: .45rem .7rem .45rem 0;
color: #5d4b3d;
}
.rezept-formtable td {
padding: .35rem 0;
}
.rezept-titel {
font-size: 2.4rem;
margin: 0 0 1rem 0;
color: #4b2f1c;
text-align: center;
font-weight: 700;
}
.rezept-approved {
margin: 12px 0;
padding: 10px 14px;
border-radius: 12px;
font-weight: 600;
font-size: 1.1em;
display: inline-block;
}
.rezept-approved-container {
width: 100%;
display: flex;
justify-content: flex-end;
margin-top: 0.3em;
margin-bottom: 0.6em;
}
.rezept-approved-einzel {
background: #f1f8ff;
border: 2px solid #90caf9;
color: #0d47a1;
}
.rezept-approved-beide {
background: #e8f5e9;
border: 2px solid #66bb6a;
color: #1b5e20;
}
.rezept-chip-approved {
background: #e3f2fd;
border: 2px solid #64b5f6;
color: #0d47a1;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.35em;
}
.rezept-chip-approved.gemeinsam {
background: #e8f5e9;
border-color: #66bb6a;
color: #1b5e20;
}
@media (max-width: 900px) {
.rezept-grid {
grid-template-columns: 1fr;
}
}