Jump to content

Module:Location map/sandbox/styles.css

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Alexiscoutinho (talk | contribs) at 05:07, 8 May 2024 (Created page with '.locmap .od { position: absolute; } .locmap .id { position: absolute; line-height: 0; } .locmap .l0 { font-size: 0; position: absolute; } .locmap .pv { line-height: 110%; position: absolute; text-align: center; } .locmap .pl { line-height: 110%; position: absolute; top: -0.75em; text-align: right; } .locmap .pr { line-height: 110%; position: absolute; top: -0.75em; text-align: left; } .locmap .cp { line-height: 100%; } .locmap .pv >...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
.locmap .od {
	position: absolute;
}

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

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

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

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

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

.locmap .cp {
	line-height: 100%;
}

.locmap .pv > div {
	display: inline;
	padding: 1px;
}

.locmap .pl > div {
	display: inline; /* inline does not impact floated elements */
	padding: 1px;
	float: right;
}

.locmap .pr > div {
	display: inline; /* inline does not impact floated elements */
	padding: 1px;
	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 {
    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 > div,
  html.skin-theme-clientpref-os .od .pl > div,
  html.skin-theme-clientpref-os .od .pr > div {
    background: #000;
    color: #fff;
  }
}