MediaWiki:Common.css: Unterschied zwischen den Versionen
MediaWiki-Schnittstellenseite
Weitere Optionen
Eiki (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Eiki (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | /* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | ||
.wikitable{ float: right; margin: 0 0 1em 1.5em!important; } | .wikitable.rechts { float: right; margin: 0 0 1em 1.5em !important; } | ||
/* ===================================================================== | |||
Hauptseite (Klassen cs-…) | |||
Nutzt die Farben des Skins (Citizen), mit Ersatzwerten für Vector. | |||
Funktioniert dadurch automatisch im hellen und im dunklen Modus. | |||
===================================================================== */ | |||
.cs-main { | |||
--cs-gruen: #317d01; /* Cubeside-Grün, dunkel (für weiße Schrift) */ | |||
--cs-gruen-hell: #67c100; /* Cubeside-Grün der Homepage */ | |||
--cs-flaeche: var( --color-surface-1, #ffffff ); | |||
--cs-rand: var( --border-color-base, #dcdfe3 ); | |||
--cs-text: var( --color-base, #202122 ); | |||
--cs-text-leise: var( --color-subtle, #54595d ); | |||
--cs-akzent: var( --color-progressive, #317d01 ); | |||
--cs-radius: 12px; | |||
} | |||
/* ---------- Kopfbereich mit Bild ---------- */ | |||
.cs-hero { | |||
position: relative; | |||
overflow: hidden; | |||
border-radius: var( --cs-radius ); | |||
padding: 72px 44px 56px; | |||
margin-bottom: 20px; | |||
color: #fff; | |||
background: | |||
linear-gradient( 100deg, rgba( 10, 25, 5, 0.88 ) 0%, rgba( 10, 25, 5, 0.65 ) 45%, rgba( 10, 25, 5, 0.15 ) 100% ), | |||
url( /images/thumb/f/f4/Spawn18.png/1600px-Spawn18.png ) right 30% / cover no-repeat; | |||
} | |||
.cs-hero-titel { | |||
font-size: 2.6rem; | |||
font-weight: 700; | |||
line-height: 1.1; | |||
letter-spacing: -0.01em; | |||
margin: 0 0 10px; | |||
color: #fff; | |||
} | |||
.cs-hero-titel .cs-hero-marke { color: var( --cs-gruen-hell ); } | |||
.cs-hero-text { | |||
font-size: 1.1rem; | |||
line-height: 1.55; | |||
max-width: 560px; | |||
margin: 0 0 24px; | |||
color: rgba( 255, 255, 255, 0.9 ); | |||
} | |||
.cs-hero-text a { color: #fff; text-decoration: underline; } | |||
.cs-buttons, | |||
.cs-buttons > p { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; } | |||
.cs-button a, | |||
.cs-button a:visited { | |||
display: inline-block; | |||
padding: 10px 18px; | |||
border-radius: 8px; | |||
font-weight: 600; | |||
text-decoration: none !important; | |||
background: rgba( 255, 255, 255, 0.14 ); | |||
border: 1px solid rgba( 255, 255, 255, 0.35 ); | |||
color: #fff !important; | |||
backdrop-filter: blur( 4px ); | |||
transition: background 0.15s; | |||
} | |||
.cs-button a:hover { background: rgba( 255, 255, 255, 0.26 ); } | |||
.cs-button-primaer a, | |||
.cs-button-primaer a:visited { | |||
background: var( --cs-gruen-hell ); | |||
border-color: var( --cs-gruen-hell ); | |||
color: #10260a !important; | |||
} | |||
.cs-button-primaer a:hover { background: #7bd61a; } | |||
/* Pfeil-Symbol für externe Links im Button ausblenden */ | |||
.cs-button a.external { background-image: none; padding-right: 18px; } | |||
.cs-button a.external::after { display: none; } | |||
/* ---------- Karten ---------- */ | |||
.cs-karte { | |||
background: var( --cs-flaeche ); | |||
border: 1px solid var( --cs-rand ); | |||
border-radius: var( --cs-radius ); | |||
padding: 20px 24px 18px; | |||
color: var( --cs-text ); | |||
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 ); | |||
break-inside: avoid; | |||
margin-bottom: 20px; | |||
} | |||
.cs-karte-titel { | |||
display: flex; | |||
align-items: center; | |||
gap: 10px; | |||
font-size: 1.2rem; | |||
font-weight: 700; | |||
margin: 0 0 12px; | |||
color: var( --cs-text ); | |||
} | |||
.cs-karte-titel::before { | |||
content: ''; | |||
width: 4px; | |||
height: 1.1em; | |||
border-radius: 2px; | |||
background: var( --cs-akzent ); | |||
flex: none; | |||
} | |||
.cs-karte-titel a { color: inherit; } | |||
.cs-karte p { margin: 0 0 0.6em; line-height: 1.6; } | |||
.cs-karte p:last-child { margin-bottom: 0; } | |||
/* Zwischenüberschriften aus den Vorlagen ('''Regeln''' usw.) */ | |||
.cs-themen .cs-karte p > b:only-child { | |||
display: block; | |||
margin-top: 14px; | |||
font-size: 0.78rem; | |||
font-weight: 700; | |||
text-transform: uppercase; | |||
letter-spacing: 0.06em; | |||
color: var( --cs-text-leise ); | |||
} | |||
.cs-themen .cs-karte p:first-child > b:only-child { margin-top: 0; } | |||
/* Linklisten aus den Vorlagen (": [[Link]]") */ | |||
.cs-karte dl { margin: 4px 0 6px; } | |||
.cs-karte dd { | |||
margin: 0; | |||
padding: 4px 0 4px 16px; | |||
position: relative; | |||
line-height: 1.45; | |||
} | |||
.cs-karte dd::before { | |||
content: ''; | |||
position: absolute; | |||
left: 2px; | |||
top: 0.95em; | |||
width: 5px; | |||
height: 5px; | |||
border-radius: 50%; | |||
background: var( --cs-akzent ); | |||
opacity: 0.6; | |||
} | |||
/* Zwei Info-Karten nebeneinander */ | |||
.cs-intro { | |||
display: grid; | |||
grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) ); | |||
gap: 0 20px; | |||
} | |||
.cs-karte-hervor { | |||
box-shadow: inset 4px 0 0 var( --cs-akzent ); | |||
} | |||
/* Themen-Karten: 3 Spalten, die unten bündig abschließen */ | |||
.cs-themen { | |||
display: grid; | |||
grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); | |||
gap: 20px; | |||
align-items: stretch; | |||
} | |||
.cs-spalte { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 20px; | |||
} | |||
.cs-spalte .cs-karte { margin-bottom: 0; } | |||
/* letzte Karte jeder Spalte füllt bis ganz unten auf */ | |||
.cs-spalte .cs-karte:last-child { flex: 1; } | |||
@media ( max-width: 900px ) { | |||
.cs-themen { grid-template-columns: minmax( 0, 1fr ); } | |||
} | |||
/* ---------- Handy ---------- */ | |||
@media ( max-width: 640px ) { | |||
.cs-hero { padding: 36px 22px 28px; } | |||
.cs-hero-titel { font-size: 2rem; } | |||
.cs-hero-text { font-size: 1rem; } | |||
.cs-karte { padding: 18px; } | |||
} | |||
/* Links in den Listen: normale Textfarbe, grün erst beim Drüberfahren */ | |||
.cs-karte dd a:not( .new ), | |||
.cs-karte dd a:not( .new ):visited { | |||
color: var( --cs-text ); | |||
text-decoration: none; | |||
} | |||
.cs-karte dd a:not( .new ):hover { | |||
color: var( --cs-akzent ); | |||
text-decoration: underline; | |||
} | |||
Aktuelle Version vom 12. November 2026, 17:22 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
.wikitable.rechts { float: right; margin: 0 0 1em 1.5em !important; }
/* =====================================================================
Hauptseite (Klassen cs-…)
Nutzt die Farben des Skins (Citizen), mit Ersatzwerten für Vector.
Funktioniert dadurch automatisch im hellen und im dunklen Modus.
===================================================================== */
.cs-main {
--cs-gruen: #317d01; /* Cubeside-Grün, dunkel (für weiße Schrift) */
--cs-gruen-hell: #67c100; /* Cubeside-Grün der Homepage */
--cs-flaeche: var( --color-surface-1, #ffffff );
--cs-rand: var( --border-color-base, #dcdfe3 );
--cs-text: var( --color-base, #202122 );
--cs-text-leise: var( --color-subtle, #54595d );
--cs-akzent: var( --color-progressive, #317d01 );
--cs-radius: 12px;
}
/* ---------- Kopfbereich mit Bild ---------- */
.cs-hero {
position: relative;
overflow: hidden;
border-radius: var( --cs-radius );
padding: 72px 44px 56px;
margin-bottom: 20px;
color: #fff;
background:
linear-gradient( 100deg, rgba( 10, 25, 5, 0.88 ) 0%, rgba( 10, 25, 5, 0.65 ) 45%, rgba( 10, 25, 5, 0.15 ) 100% ),
url( /images/thumb/f/f4/Spawn18.png/1600px-Spawn18.png ) right 30% / cover no-repeat;
}
.cs-hero-titel {
font-size: 2.6rem;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.01em;
margin: 0 0 10px;
color: #fff;
}
.cs-hero-titel .cs-hero-marke { color: var( --cs-gruen-hell ); }
.cs-hero-text {
font-size: 1.1rem;
line-height: 1.55;
max-width: 560px;
margin: 0 0 24px;
color: rgba( 255, 255, 255, 0.9 );
}
.cs-hero-text a { color: #fff; text-decoration: underline; }
.cs-buttons,
.cs-buttons > p { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cs-button a,
.cs-button a:visited {
display: inline-block;
padding: 10px 18px;
border-radius: 8px;
font-weight: 600;
text-decoration: none !important;
background: rgba( 255, 255, 255, 0.14 );
border: 1px solid rgba( 255, 255, 255, 0.35 );
color: #fff !important;
backdrop-filter: blur( 4px );
transition: background 0.15s;
}
.cs-button a:hover { background: rgba( 255, 255, 255, 0.26 ); }
.cs-button-primaer a,
.cs-button-primaer a:visited {
background: var( --cs-gruen-hell );
border-color: var( --cs-gruen-hell );
color: #10260a !important;
}
.cs-button-primaer a:hover { background: #7bd61a; }
/* Pfeil-Symbol für externe Links im Button ausblenden */
.cs-button a.external { background-image: none; padding-right: 18px; }
.cs-button a.external::after { display: none; }
/* ---------- Karten ---------- */
.cs-karte {
background: var( --cs-flaeche );
border: 1px solid var( --cs-rand );
border-radius: var( --cs-radius );
padding: 20px 24px 18px;
color: var( --cs-text );
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
break-inside: avoid;
margin-bottom: 20px;
}
.cs-karte-titel {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.2rem;
font-weight: 700;
margin: 0 0 12px;
color: var( --cs-text );
}
.cs-karte-titel::before {
content: '';
width: 4px;
height: 1.1em;
border-radius: 2px;
background: var( --cs-akzent );
flex: none;
}
.cs-karte-titel a { color: inherit; }
.cs-karte p { margin: 0 0 0.6em; line-height: 1.6; }
.cs-karte p:last-child { margin-bottom: 0; }
/* Zwischenüberschriften aus den Vorlagen ('''Regeln''' usw.) */
.cs-themen .cs-karte p > b:only-child {
display: block;
margin-top: 14px;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var( --cs-text-leise );
}
.cs-themen .cs-karte p:first-child > b:only-child { margin-top: 0; }
/* Linklisten aus den Vorlagen (": [[Link]]") */
.cs-karte dl { margin: 4px 0 6px; }
.cs-karte dd {
margin: 0;
padding: 4px 0 4px 16px;
position: relative;
line-height: 1.45;
}
.cs-karte dd::before {
content: '';
position: absolute;
left: 2px;
top: 0.95em;
width: 5px;
height: 5px;
border-radius: 50%;
background: var( --cs-akzent );
opacity: 0.6;
}
/* Zwei Info-Karten nebeneinander */
.cs-intro {
display: grid;
grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) );
gap: 0 20px;
}
.cs-karte-hervor {
box-shadow: inset 4px 0 0 var( --cs-akzent );
}
/* Themen-Karten: 3 Spalten, die unten bündig abschließen */
.cs-themen {
display: grid;
grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
gap: 20px;
align-items: stretch;
}
.cs-spalte {
display: flex;
flex-direction: column;
gap: 20px;
}
.cs-spalte .cs-karte { margin-bottom: 0; }
/* letzte Karte jeder Spalte füllt bis ganz unten auf */
.cs-spalte .cs-karte:last-child { flex: 1; }
@media ( max-width: 900px ) {
.cs-themen { grid-template-columns: minmax( 0, 1fr ); }
}
/* ---------- Handy ---------- */
@media ( max-width: 640px ) {
.cs-hero { padding: 36px 22px 28px; }
.cs-hero-titel { font-size: 2rem; }
.cs-hero-text { font-size: 1rem; }
.cs-karte { padding: 18px; }
}
/* Links in den Listen: normale Textfarbe, grün erst beim Drüberfahren */
.cs-karte dd a:not( .new ),
.cs-karte dd a:not( .new ):visited {
color: var( --cs-text );
text-decoration: none;
}
.cs-karte dd a:not( .new ):hover {
color: var( --cs-akzent );
text-decoration: underline;
}