MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
Applied many fixes for mobile users |
Applied mobile skin fixes |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Citizen skin */ | /* All CSS here will be loaded for users of the Citizen skin */ | ||
/* Disable image hover transformation */ | |||
:root { | :root { | ||
--transform-image-hover: none; | --transform-image-hover: none; | ||
} | } | ||
/* Adjust --color-destructive */ | |||
:root.skin-theme-clientpref-night { | :root.skin-theme-clientpref-night { | ||
--color- | --color-destructive__h: 360; | ||
--color-destructive__l: 67%; | |||
--color- | |||
} | } | ||
: | @media screen and (prefers-color-scheme: dark) { | ||
.skin-theme-clientpref-os { | |||
--color-destructive__h: 360; | |||
--color-destructive__l: 67%; | |||
} | |||
} | } | ||
/* Disable | /* Disable extra midnight theme */ | ||
#skin-client-prefs-citizen-feature-pure-black { | #skin-client-prefs-citizen-feature-pure-black { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Background image handling */ | /* Background image handling */ | ||
/* Adapted from: https://tolkiengateway.net/ */ | |||
:root { | :root { | ||
--background-image: none; | --background-image: none; | ||
} | } | ||
@media screen { | |||
.skin-theme-clientpref-night .citizen-page-container:before { | .skin-theme-clientpref-night .citizen-page-container:before { | ||
background-image: url(https://petitplanet.wiki/images/b/b4/Background_Dark.jpg); | background-image: url(https://petitplanet.wiki/images/b/b4/Background_Dark.jpg); | ||
| Line 45: | Line 40: | ||
} | } | ||
@media screen and (prefers-color-scheme: dark) { | |||
.skin-theme-clientpref-os .citizen-page-container:before { | |||
background-image: url(https://petitplanet.wiki/images/b/b4/Background_Dark.jpg); | |||
background-position: 70% center; | |||
} | |||
} | |||
.citizen-page-container, | .citizen-page-container, | ||
.citizen-body-container { | .citizen-body-container { | ||
| Line 69: | Line 69: | ||
.citizen-page-container::before { | .citizen-page-container::before { | ||
height: | height: 240px; | ||
background-size: cover; | background-size: cover; | ||
mask-image: linear-gradient( | mask-image: linear-gradient( | ||
| Line 81: | Line 81: | ||
transparent 100% | transparent 100% | ||
); | ); | ||
} | |||
/* Transparent body container for main page */ | |||
.rootpage-Main_Page .citizen-body { | |||
background: transparent; | |||
} | } | ||
/* Adjust wordmark height */ | /* Adjust wordmark height */ | ||
img.mw-logo-wordmark { | |||
height: 2rem; | |||
} | } | ||
h2, h3 { | h2, h3 { | ||
font-weight: var(--font-weight-normal); | font-weight: var(--font-weight-normal); | ||
} | } | ||
| Line 148: | Line 121: | ||
} | } | ||
/* | /* Reduce border from mbox */ | ||
.mbox { | .mbox { | ||
border-width: | border-width: 1px; | ||
} | } | ||