MediaWiki:Common.css: Unterschied zwischen den Versionen
MediaWiki-Schnittstellenseite
Weitere Optionen
Die Seite wurde neu angelegt: „→Das folgende CSS wird für alle Benutzeroberflächen geladen.: @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400&family=Open+Sans:wght@400;600&display=swap'); →Styling für H1, H2 und H3: h1, h2, h3 { font-family: 'Montserrat', sans-serif !important; font-weight: 200 !important; →Sehr schlank: letter-spacing: 1px; text-transform: none; position: relative; border-bottom: none !important;…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | /* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | ||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200 | @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Open+Sans&display=swap'); | ||
h1, h2, h3 { | h1, h2, h3 { | ||
font-family: 'Montserrat', sans-serif !important; | font-family: 'Montserrat', sans-serif !important; | ||
font-weight: 200 !important | font-weight: 200 !important; | ||
position: relative; | position: relative; | ||
border-bottom: none !important; /* Standard- | display: inline-block; /* Wichtig für die Längenberechnung */ | ||
margin-bottom: 25px; | |||
padding-bottom: 8px; | |||
border-bottom: none !important; /* MediaWiki-Standard entfernen */ | |||
color: #333; | |||
} | |||
/* Der Joomla Style 4 Akzent */ | |||
h1::after, h2::after, h3::after { | |||
content: ""; | |||
position: absolute; | |||
left: 0; | |||
bottom: 0; | |||
height: 2px; /* Die Dicke der Linie */ | |||
width: 120%; /* 20% Überhang nach rechts */ | |||
/* Der 60% Blau-Akzent Verlauf */ | |||
background: linear-gradient(to right, | |||
#00adef 0%, | |||
#00adef 60%, | |||
#e5e5e5 60%, | |||
#e5e5e5 100% | |||
); | |||
} | |||
/* Damit der nachfolgende Text nicht neben der Überschrift klebt */ | |||
h1, h2, h3 { | |||
display: table; /* Alternative zu inline-block, um Zeilenumbruch zu erzwingen */ | |||
} | |||
/* Fließtext auf Open Sans */ | |||
p, li, dd { | |||
font-family: 'Open Sans', sans-serif !important; | |||
font-size: 15px; | |||
line-height: 1.6; | |||
} | } | ||
Version vom 31. Mai 2026, 15:47 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400&family=Open+Sans&display=swap');
h1, h2, h3 {
font-family: 'Montserrat', sans-serif !important;
font-weight: 200 !important;
position: relative;
display: inline-block; /* Wichtig für die Längenberechnung */
margin-bottom: 25px;
padding-bottom: 8px;
border-bottom: none !important; /* MediaWiki-Standard entfernen */
color: #333;
}
/* Der Joomla Style 4 Akzent */
h1::after, h2::after, h3::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 2px; /* Die Dicke der Linie */
width: 120%; /* 20% Überhang nach rechts */
/* Der 60% Blau-Akzent Verlauf */
background: linear-gradient(to right,
#00adef 0%,
#00adef 60%,
#e5e5e5 60%,
#e5e5e5 100%
);
}
/* Damit der nachfolgende Text nicht neben der Überschrift klebt */
h1, h2, h3 {
display: table; /* Alternative zu inline-block, um Zeilenumbruch zu erzwingen */
}
/* Fließtext auf Open Sans */
p, li, dd {
font-family: 'Open Sans', sans-serif !important;
font-size: 15px;
line-height: 1.6;
}
/* Die Unterstreichung mit 60% blauem Akzent */
h1::after, h2::after, h3::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 2px;
width: 110%; /* Ragt rechts über die Schrift hinaus */
/* Verlauf: 60% Hellblau, danach Hellgrau für den Rest */
background: linear-gradient(to right, #00adef 60%, #e5e5e5 60%);
}
/* H1 etwas größer für den Titel */
h1 {
font-size: 2.5em !important;
}
/* H3 (deine Wikipedia-Überschrift) etwas dezenter */
h3 {
font-size: 1.5em !important;
}
/* Basisschrift für das gesamte Wiki */
body {
font-family: 'Open Sans', sans-serif !important;
}
/* Wikipedia-Icon vor dem Vorlagen-Link einblenden */
.wp-icon-link a.external {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/7/77/Wikipedia_svg_logo.svg) !important;
padding-left: 20px !important;
background-size: 16px 16px !important;
background-position: center left !important;
background-repeat: no-repeat !important;
}