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

Jump to navigation Jump to search
Add for os theme
m (1 revision imported)
Module:Location map>Jdlrobson
(Add for os theme)
Line 49: Line 49:
padding: 1px;
padding: 1px;
float: left;
float: left;
}
/* 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 {
    /* Use !important to override any infobox rules */
    background: #fff !important;
    color: #000 !important;
}
html.skin-theme-clientpref-night .locmap {
    filter: grayscale(0.6);
}
@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .locmap {
    filter: grayscale(0.6);
  }
  html.skin-theme-clientpref-os .od,
  html.skin-theme-clientpref-os .od .pv > div,
  html.skin-theme-clientpref-os .od .pl > div,
  html.skin-theme-clientpref-os .od .pr > div {
    /* Use !important to override any infobox rules */
    background: white !important;
    color: #000 !important;
  }
}
/* Special handling for maps inside infoboxes https://en.wikipedia.org/w/index.php?title=Module_talk:Location_map&oldid=1226437753#c-JScherer-WMF-20240530165500-JScherer-WMF-20240529211800 */
html.skin-theme-clientpref-night .infobox-full-data .locmap div {
    background: transparent !important;
}
@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .infobox-full-data .locmap div {
    background: transparent !important;
  }
}
}

Navigation menu