MediaWiki:Common.css: Difference between revisions
From Global Migrate
No edit summary |
No edit summary |
||
| (62 intermediate revisions by 3 users not shown) | |||
| Line 4: | Line 4: | ||
/* | /* | ||
/* PT Sans Regular */ | |||
@font-face { | |||
font-family: 'PT Sans'; | |||
*/ | font-style: normal; | ||
@ | font-weight: 400; | ||
src: url('/fonts/PTSans-Regular.woff') format('woff'); | |||
} | |||
/* PT Sans Italic */ | |||
@font-face { | |||
font-family: 'PT Sans'; | |||
font-style: italic; | |||
font-weight: 400; | |||
src: url('/fonts/PTSans-Italic.woff') format('woff'); | |||
} | |||
/* PT Sans Bold */ | |||
@font-face { | |||
font-family: 'PT Sans'; | |||
font-style: normal; | |||
font-weight: 700; | |||
src: url('/fonts/PTSans-Bold.woff') format('woff'); | |||
} | |||
/* PT Sans Bold Italic */ | |||
@font-face { | |||
font-family: 'PT Sans'; | |||
font-style: italic; | |||
font-weight: 700; | |||
src: url('/fonts/PTSans-BoldItalic.woff') format('woff'); | |||
} | |||
/* Headline */ | /* Headline */ | ||
.mw-body h1, .mw-body-content h1, .mw-body-content h2 { | .mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-page-title-main { | ||
font-family: PT Sans, sans-serif; | font-family: PT Sans, sans-serif; | ||
font-weight: 700; | font-weight: 700; | ||
| Line 92: | Line 118: | ||
/* Structure for about the project */ | /* Structure for about the project */ | ||
.gm-structure-grid-about { | .gm-structure-grid-about { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr; | ||
gap: .5rem; | gap: .5rem; | ||
margin-top: 2rem; | margin-top: 2rem; | ||
| Line 111: | Line 135: | ||
.gm-structure-grid-item-about img { | .gm-structure-grid-item-about img { | ||
width: | width: 4rem; | ||
height: auto; | height: auto; | ||
margin: .5rem | margin: .5rem 1rem; | ||
} | } | ||
.gm-structure-grid-item-about p { | .gm-structure-grid-item-about p { | ||
display: flex; | display: flex; | ||
flex-flow: | flex-flow: row nowrap; | ||
height: 100%; | height: 100%; | ||
margin: 0; | margin: 0; | ||
| Line 126: | Line 150: | ||
.gm-structure-grid-item-about p a { | .gm-structure-grid-item-about p a { | ||
padding: .5rem; | padding: .5rem; | ||
display: | display: flex; | ||
align-items: center; | |||
flex-grow: 1; | flex-grow: 1; | ||
color: black; | color: black; | ||
} | } | ||
@media | @media screen and (min-width: 768px) { | ||
.gm-structure-grid-4 { | .gm-structure-grid-4 { | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
} | } | ||
} | |||
.gm-structure-grid-item-rawspan { | |||
grid-column: 1 / -1; | |||
} | } | ||
| Line 157: | Line 186: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
} | |||
@media screen and (min-width: 500px) { | |||
.gm-structure-grid-about { | |||
grid-template-columns: repeat(3, 1fr); | |||
} | |||
.gm-structure-grid-item-about img { | |||
width: 60%; | |||
margin: .5rem 0; | |||
} | |||
.gm-structure-grid-item-about p { | |||
flex-direction: column; | |||
} | |||
.gm-structure-grid-item-about p a { | |||
display: block; | |||
} | |||
} | } | ||
| Line 178: | Line 223: | ||
.gm-mainpage-hero h2 { | .gm-mainpage-hero h2 { | ||
border: none; | border: none; | ||
} | |||
/* == Header == */ | |||
.vector-feature-zebra-design-disabled .mw-page-container, | |||
.vector-feature-zebra-design-disabled .vector-header-container { | |||
max-width: unset; | |||
min-width: unset; | |||
} | |||
.vector-feature-zebra-design-disabled .vector-header-container { | |||
background: #143c92; | |||
color: white; | |||
} | |||
.vector-feature-zebra-design-disabled .vector-header-container .vector-popup-notification { | |||
color: #202122; | |||
} | |||
#pt-userpage-2 > a, | |||
.vector-header-start > a, | |||
#p-vector-user-menu-overflow a { | |||
color: white !important; | |||
} | |||
main#content { | |||
place-content: center; | |||
} | |||
.vector-header-container .vector-icon:not(.vector-dropdown-content *), | |||
.vector-dropdown-label::after { | |||
filter: invert(1); | |||
} | |||
.cdx-search-input__end-button { | |||
border-top-right-radius: 0.5em; | |||
border-bottom-right-radius: 0.5em; | |||
border-top-left-radius: 0; | |||
border-bottom-left-radius: 0; | |||
} | |||
.cdx-search-input--has-end-button .cdx-search-input__input-wrapper .cdx-text-input__input { | |||
border-top-right-radius: 0; | |||
border-bottom-right-radius: 0; | |||
border-top-left-radius: 0.5em; | |||
border-bottom-left-radius: 0.5em; | |||
} | |||
.vector-feature-zebra-design-disabled .vector-dropdown .vector-dropdown-content { | |||
border-radius: 0.5em; | |||
} | |||
.cdx-search-input--has-end-button { | |||
border-radius: 0.5em; | |||
} | |||
/* == Flags == */ | |||
.flag-ico { | |||
font-size: 3em; | |||
padding: 0.5em 0em 0.2em 0em; | |||
} | |||
/* == Page Layout == */ | |||
@media screen and (min-width: 1000px) { | |||
.vector-feature-zebra-design-disabled .mw-page-container-inner { | |||
grid-template: min-content min-content 1fr min-content / min-content min-content minmax(0,1fr); | |||
grid-template-areas: 'mainMenu toc siteNotice' | |||
'mainMenu toc pageContent' | |||
'mainMenu toc pageContent' | |||
'mainMenu footer footer'; | |||
gap: 0 1rem; | |||
padding-right: 2rem; | |||
} | |||
.vector-feature-zebra-design-disabled .mw-page-container { | |||
padding: 0; | |||
} | |||
.vector-feature-zebra-design-disabled #vector-toc-pinned-container .vector-toc::after { | |||
content: none; | |||
} | |||
.vector-feature-zebra-design-disabled.client-js.vector-sticky-header-enabled #vector-toc-pinned-container .vector-toc, .vector-feature-zebra-design-disabled.client-js.vector-sticky-header-enabled #vector-page-tools-pinned-container .vector-page-tools { | |||
max-height: calc(100vh - 3.125rem); | |||
} | |||
.vector-feature-main-menu-pinned-disabled .mw-page-container-inner { | |||
padding-left: 2rem; | |||
grid-template-areas: 'mainMenu toc siteNotice' | |||
'mainMenu toc pageContent' | |||
'mainMenu toc pageContent' | |||
'footer footer footer'; | |||
} | |||
} | |||
.vector-feature-main-menu-pinned-disabled .vector-main-menu-container { | |||
width: 0; | |||
} | |||
@media screen and (min-width: 1200px) { | |||
.vector-feature-zebra-design-disabled .mw-page-container-inner { | |||
grid-template-columns: min-content min-content minmax(0,1fr); | |||
} | |||
} | |||
.mw-page-container-inner { | |||
min-height: calc(100vh - 3.125rem - 16px); | |||
} | |||
/* == Sidebar == */ | |||
.vector-main-menu-container { | |||
position: relative; | |||
width: 12.25em; | |||
} | |||
@media screen and (min-width: 1200px) { | |||
.vector-main-menu-container { | |||
width: 15.5em; | |||
} | |||
} | |||
.vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu { | |||
background-color: unset; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu { | |||
background: white; | |||
box-shadow: 0 0 1rem #0002; | |||
position: absolute; | |||
height: 100%; | |||
} | |||
.vector-feature-zebra-design-disabled .vector-pinned-container .vector-pinnable-element .vector-pinnable-header, .vector-feature-zebra-design-disabled .vector-pinned-container .vector-pinnable-element .vector-menu-heading, .vector-feature-zebra-design-disabled .vector-pinned-container .vector-pinnable-element .mw-list-item a, .vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu .vector-main-menu-action-opt-out a, .vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu .vector-main-menu-action-lang-alert .vector-main-menu-action-content, .vector-feature-zebra-design-disabled .vector-toc .vector-toc-text { | |||
padding: .75rem 1rem; | |||
color: inherit !important; | |||
} | |||
.vector-feature-zebra-design-disabled .vector-pinnable-element .vector-menu-heading, .vector-feature-zebra-design-disabled .vector-dropdown-content .vector-menu-heading { | |||
font-weight: bold; | |||
} | |||
.vector-feature-zebra-design-disabled #vector-page-tools-pinned-container .vector-page-tools { | |||
margin: 0 1rem; | |||
} | |||
.vector-feature-zebra-design-disabled .vector-toc { | |||
background-color: unset; | |||
} | |||
/* == Rest == */ | |||
.authors { | |||
align-items: center; | |||
display: flex; | |||
margin: 2em 0em; | |||
min-height: 25vh; | |||
flex-direction: column; | |||
} | |||
.authors p { | |||
margin: 2em | |||
} | |||
.fat span.mw-default-size { | |||
width: 12rem; | |||
padding: 0.5rem 0.5rem 0.5rem 2rem; | |||
} | |||
@media screen and (min-width: 1024px) { | |||
.authors { | |||
flex-direction: row; | |||
} | |||
.authors img.mw-file-element { | |||
max-width: 30vw; | |||
} | |||
} | |||
#mw-main-container { | |||
display: flex; | |||
min-height: calc(100vh - 23rem); | |||
} | |||
#mw-main-container > div { | |||
flex: 1; | |||
} | |||
@media screen and (min-width: 768px) { | |||
#mw-main-container { | |||
min-height: calc(100vh - 15rem); | |||
} | |||
} | } | ||
Latest revision as of 11:20, 1 September 2024
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* == Fonts == */
/*
/* PT Sans Regular */
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 400;
src: url('/fonts/PTSans-Regular.woff') format('woff');
}
/* PT Sans Italic */
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-weight: 400;
src: url('/fonts/PTSans-Italic.woff') format('woff');
}
/* PT Sans Bold */
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 700;
src: url('/fonts/PTSans-Bold.woff') format('woff');
}
/* PT Sans Bold Italic */
@font-face {
font-family: 'PT Sans';
font-style: italic;
font-weight: 700;
src: url('/fonts/PTSans-BoldItalic.woff') format('woff');
}
/* Headline */
.mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-page-title-main {
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(rgba(0,0,0,0), rgba(2,6,28,0.6));
}
/* == Structure Grid == */
.gm-structure-grid {
display: grid;
grid-template-columns: repeat(2, 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;
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: 4rem;
height: auto;
margin: .5rem 1rem;
}
.gm-structure-grid-item-about p {
display: flex;
flex-flow: row nowrap;
height: 100%;
margin: 0;
align-items: stretch;
}
.gm-structure-grid-item-about p a {
padding: .5rem;
display: flex;
align-items: center;
flex-grow: 1;
color: black;
}
@media screen and (min-width: 768px) {
.gm-structure-grid-4 {
grid-template-columns: repeat(4, 1fr);
}
}
.gm-structure-grid-item-rawspan {
grid-column: 1 / -1;
}
.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;
}
@media screen and (min-width: 500px) {
.gm-structure-grid-about {
grid-template-columns: repeat(3, 1fr);
}
.gm-structure-grid-item-about img {
width: 60%;
margin: .5rem 0;
}
.gm-structure-grid-item-about p {
flex-direction: column;
}
.gm-structure-grid-item-about p a {
display: block;
}
}
/* == 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;
}
/* == Header == */
.vector-feature-zebra-design-disabled .mw-page-container,
.vector-feature-zebra-design-disabled .vector-header-container {
max-width: unset;
min-width: unset;
}
.vector-feature-zebra-design-disabled .vector-header-container {
background: #143c92;
color: white;
}
.vector-feature-zebra-design-disabled .vector-header-container .vector-popup-notification {
color: #202122;
}
#pt-userpage-2 > a,
.vector-header-start > a,
#p-vector-user-menu-overflow a {
color: white !important;
}
main#content {
place-content: center;
}
.vector-header-container .vector-icon:not(.vector-dropdown-content *),
.vector-dropdown-label::after {
filter: invert(1);
}
.cdx-search-input__end-button {
border-top-right-radius: 0.5em;
border-bottom-right-radius: 0.5em;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.cdx-search-input--has-end-button .cdx-search-input__input-wrapper .cdx-text-input__input {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-top-left-radius: 0.5em;
border-bottom-left-radius: 0.5em;
}
.vector-feature-zebra-design-disabled .vector-dropdown .vector-dropdown-content {
border-radius: 0.5em;
}
.cdx-search-input--has-end-button {
border-radius: 0.5em;
}
/* == Flags == */
.flag-ico {
font-size: 3em;
padding: 0.5em 0em 0.2em 0em;
}
/* == Page Layout == */
@media screen and (min-width: 1000px) {
.vector-feature-zebra-design-disabled .mw-page-container-inner {
grid-template: min-content min-content 1fr min-content / min-content min-content minmax(0,1fr);
grid-template-areas: 'mainMenu toc siteNotice'
'mainMenu toc pageContent'
'mainMenu toc pageContent'
'mainMenu footer footer';
gap: 0 1rem;
padding-right: 2rem;
}
.vector-feature-zebra-design-disabled .mw-page-container {
padding: 0;
}
.vector-feature-zebra-design-disabled #vector-toc-pinned-container .vector-toc::after {
content: none;
}
.vector-feature-zebra-design-disabled.client-js.vector-sticky-header-enabled #vector-toc-pinned-container .vector-toc, .vector-feature-zebra-design-disabled.client-js.vector-sticky-header-enabled #vector-page-tools-pinned-container .vector-page-tools {
max-height: calc(100vh - 3.125rem);
}
.vector-feature-main-menu-pinned-disabled .mw-page-container-inner {
padding-left: 2rem;
grid-template-areas: 'mainMenu toc siteNotice'
'mainMenu toc pageContent'
'mainMenu toc pageContent'
'footer footer footer';
}
}
.vector-feature-main-menu-pinned-disabled .vector-main-menu-container {
width: 0;
}
@media screen and (min-width: 1200px) {
.vector-feature-zebra-design-disabled .mw-page-container-inner {
grid-template-columns: min-content min-content minmax(0,1fr);
}
}
.mw-page-container-inner {
min-height: calc(100vh - 3.125rem - 16px);
}
/* == Sidebar == */
.vector-main-menu-container {
position: relative;
width: 12.25em;
}
@media screen and (min-width: 1200px) {
.vector-main-menu-container {
width: 15.5em;
}
}
.vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu {
background-color: unset;
margin: 0;
padding: 0;
}
.vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu {
background: white;
box-shadow: 0 0 1rem #0002;
position: absolute;
height: 100%;
}
.vector-feature-zebra-design-disabled .vector-pinned-container .vector-pinnable-element .vector-pinnable-header, .vector-feature-zebra-design-disabled .vector-pinned-container .vector-pinnable-element .vector-menu-heading, .vector-feature-zebra-design-disabled .vector-pinned-container .vector-pinnable-element .mw-list-item a, .vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu .vector-main-menu-action-opt-out a, .vector-feature-zebra-design-disabled #vector-main-menu-pinned-container .vector-main-menu .vector-main-menu-action-lang-alert .vector-main-menu-action-content, .vector-feature-zebra-design-disabled .vector-toc .vector-toc-text {
padding: .75rem 1rem;
color: inherit !important;
}
.vector-feature-zebra-design-disabled .vector-pinnable-element .vector-menu-heading, .vector-feature-zebra-design-disabled .vector-dropdown-content .vector-menu-heading {
font-weight: bold;
}
.vector-feature-zebra-design-disabled #vector-page-tools-pinned-container .vector-page-tools {
margin: 0 1rem;
}
.vector-feature-zebra-design-disabled .vector-toc {
background-color: unset;
}
/* == Rest == */
.authors {
align-items: center;
display: flex;
margin: 2em 0em;
min-height: 25vh;
flex-direction: column;
}
.authors p {
margin: 2em
}
.fat span.mw-default-size {
width: 12rem;
padding: 0.5rem 0.5rem 0.5rem 2rem;
}
@media screen and (min-width: 1024px) {
.authors {
flex-direction: row;
}
.authors img.mw-file-element {
max-width: 30vw;
}
}
#mw-main-container {
display: flex;
min-height: calc(100vh - 23rem);
}
#mw-main-container > div {
flex: 1;
}
@media screen and (min-width: 768px) {
#mw-main-container {
min-height: calc(100vh - 15rem);
}
}