Module:Location map/sandbox/styles.css

From Wikipedia, the free encyclopedia
.locmap .od {
	position: absolute;
}

.locmap .id {
	font-size: 0;
	line-height: 0;
	position: absolute;
}

.locmap .l0 {
	font-size: 0;
	position: absolute;
}

.locmap .pv {
	line-height: 110%;
	position: absolute;
	text-align: center;
}

.locmap .pvc {
	line-height: 100%;
	position: absolute;
	text-align: center;
}

.locmap .pl {
	line-height: 110%;
	position: absolute;
	top: -0.75em;
	text-align: right;
}

.locmap .plc {
	line-height: 100%;
	position: absolute;
	top: -0.55em;
	text-align: right;
}

.locmap .pr {
	line-height: 110%;
	position: absolute;
	top: -0.75em;
	text-align: left;
}

.locmap .prc {
	line-height: 100%;
	position: absolute;
	top: -0.55em;
	text-align: left;
}

.locmap .pv > span {
	padding: 1px;
}

.locmap .pl > span {
	padding: 1px;
	float: right;
}

.locmap .plc > span {
	float: right;
}

.locmap .pr > span {
	padding: 1px;
	float: left;
}

.locmap .prc > span {
	float: left;
}

/* Dark mode theme: */
html.skin-theme-clientpref-night .od,
html.skin-theme-clientpref-night .od .pv > span,
html.skin-theme-clientpref-night .od .pvc > span,
html.skin-theme-clientpref-night .od .pl > span,
html.skin-theme-clientpref-night .od .plc > span,
html.skin-theme-clientpref-night .od .pr > span,
html.skin-theme-clientpref-night .od .prc > span {
    background: #000;
    color: #fff;
}

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 > span,
  html.skin-theme-clientpref-os .od .pvc > span,
  html.skin-theme-clientpref-os .od .pl > span,
  html.skin-theme-clientpref-os .od .plc > span,
  html.skin-theme-clientpref-os .od .pr > span,
  html.skin-theme-clientpref-os .od .prc > span {
    background: #000;
    color: #fff;
  }
}