MediaWiki:Common.css
From Global Migrate
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* == Fonts == */
/*
TODO: WICHITG!
Font selber hosten!
Google Fonts hosting verstößt gegen die GDPR!
*/
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/* Headline */
.mw-body h1, .mw-body-content h1, .mw-body-content h2 {
font-family: PT Sans, sans-serif;
font-weight: 700;
}
/* Body */
html, body {
font-family: PT Sans, sans-serif;
font-weight: 400;
}
/* == Banner == */
.gm-banner {
width: 100%;
position: relative;
margin-top: 1rem;
margin-bottom: 1.5rem;
}
.gm-banner img.mw-file-element {
width: 100%;
height: 100%;
}
.gm-banner-text h2 {
color: white;
border-color: #444;
}
.gm-banner > table {
display: none;
}
.gm-banner-text {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 5rem 1rem 1rem;
background: linear-gradient(transparent, black);
}
/* == Structure Grid == */
.gm-structure-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: .5rem;
margin-top: 2rem;
margin-bottom: 3rem;
}
.gm-structure-grid-item {
/* border: #C3D4E7 solid 4px; */
border-radius: .75rem;
background-color: #f8f9fa;
text-align: center;
}
.gm-structure-grid-item img {
width: 30%;
height: auto;
margin: .5rem 0;
}
.gm-structure-grid-item p {
display: flex;
flex-flow: column nowrap;
height: 100%;
margin: 0;
align-items: stretch;
}
.gm-structure-grid-item p a {
padding: .5rem;
display: block;
flex-grow: 1;
color: black;
}
/* Structure for about the project */
.gm-structure-grid-about {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: .5rem;
margin-top: 2rem;
margin-bottom: 3rem;
}
.gm-structure-grid-item-about {
/* border: #C3D4E7 solid 4px; */
border-radius: .75rem;
background-color: #f8f9fa;
text-align: center;
}
.gm-structure-grid-item-about img {
width: 60%;
height: auto;
margin: .5rem 0;
}
.gm-structure-grid-item-about p {
display: flex;
flex-flow: column nowrap;
height: 100%;
margin: 0;
align-items: stretch;
}
.gm-structure-grid-item-about p a {
padding: .5rem;
display: block;
flex-grow: 1;
color: black;
}
.gm-structure-grid-4 {
grid-template-columns: repeat(4, 1fr);
}
.gm-structure-grid-item-span {
grid-column: 1 / -1;
text-align: start;
}
.gm-structure-grid-item-span img {
width: 100%;
}
.gm-structure-grid-item-span p {
flex-flow: row nowrap;
}
.gm-structure-grid-item-span span.mw-default-size {
width: 7rem;
padding-left: 2rem;
}
.gm-structure-grid-item-span p > a {
display: flex;
align-items: center;
}
/* == Hauptseite == */
.gm-mainpage-hero {
display: flex;
gap: 2rem;
align-items: center;
margin-bottom: 2rem;
}
.gm-mainpage-hero p {
width: 40%;
}
.gm-mainpage-hero img {
width: 100%;
height: auto;
}
.gm-mainpage-hero h2 {
border: none;
}