Jump to content

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

From escforumwiki
en>Jdlrobson
No edit summary
Santos (talk | contribs)
m 1 revision imported
 
(4 intermediate revisions by 3 users not shown)
Line 52: Line 52:


/* Dark mode theme: */
/* Dark mode theme: */
html.skin-theme-clientpref-night .od,
 
html.skin-theme-clientpref-night .od .pv > div,
@media screen {
html.skin-theme-clientpref-night .od .pl > div,
html.skin-theme-clientpref-night .od,
html.skin-theme-clientpref-night .od .pr > div {
html.skin-theme-clientpref-night .od .pv > div,
    background: #000;
html.skin-theme-clientpref-night .od .pl > div,
    color: #fff;
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);
}
 
/* Special handling for maps inside infoboxes
* [[Module talk:Location map#Map label background bug in dark mode]]
*/
html.skin-theme-clientpref-night .infobox-full-data .locmap div {
background: transparent !important;
}
}
}


html.skin-theme-clientpref-night .locmap {
@media screen and (prefers-color-scheme: dark) {
    filter: grayscale(0.6);
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;
}


@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .infobox-full-data .locmap div {
  html.skin-theme-clientpref-os .locmap {
background: transparent !important;
    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;
  }
}
}

Latest revision as of 13:46, 8 March 2025

/* {{pp|small=yes}} */
.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 .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: */

@media screen {
	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);
	}

	/* Special handling for maps inside infoboxes
	 * [[Module talk:Location map#Map label background bug in dark mode]]
	 */
	html.skin-theme-clientpref-night .infobox-full-data .locmap div {
		background: transparent !important;
	}
}

@media screen and (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;
	}

	html.skin-theme-clientpref-os .infobox-full-data .locmap div {
		background: transparent !important;
	}
}
MediaWiki spam blocked by CleanTalk.