Module:Location map/styles.css: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
per tper
 
(5 intermediate revisions by 2 users not shown)
Line 52:
 
/* Dark mode theme: */
html.skin-theme-clientpref-night .od,
html.skin-theme-clientpref-night .od .pv > div,
html.skin-theme-clientpref-night .od .pl > div,
html.skin-theme-clientpref-night .od .pr > div {
background: #000;
color: #fff;
 
@media screen {
html.skin-theme-clientpref-night .locmap {
html.skin-theme-clientpref-night .od,
filter: grayscale(0.6);
html.skin-theme-clientpref-night .od .pv > div,
html.skin-theme-clientpref-night .od .pl > div,
html.skin-theme-clientpref-night .od .pr > div {
/* Use !important to override any infobox rules */
background: #000fff !important;
color: #000 !important;
}
 
html.skin-theme-clientpref-night .locmap img {
filter: grayscale(0.6);
}
 
/* Special handling for maps inside infoboxes
* [[Module talk:Location map#Map label background bug in dark mode]]
*/
html.skin-theme-clientpref-osnight .od,infobox-full-data .locmap div {
background: transparent !important;
}
}
 
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .locmap img {
filter: grayscale(0.6);
}
html.skin-theme-clientpref-os .od,
html.skin-theme-clientpref-os .od .pv > div,
html.skin-theme-clientpref-os .od .plpv > div,
html.skin-theme-clientpref-os .od .prpl > div {,
html.skin-theme-clientpref-os .od .pr > div {
background: #000;
/* Use !important to override any infobox rules */
color: #fff;
background: white !important;
}
color: #000 !important;
}
 
html.skin-theme-clientpref-os .infobox-full-data .locmap div {
background: transparent !important;
}
}