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

From Ikwipedia
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* {{pp|small=yes}} */
 
.locmap .od {
.locmap .od {
position: absolute;
position: absolute;
Line 97: Line 97:




/* Target the magnify icon within the first image container */
div.tright {
    margin: 0.5em 0 1.3em 1.4em;
    clear: right;
    float: right;
}
div.thumb {
    width: auto;
    background-color: transparent;
}
div.thumbinner {
    border: 1px solid var(--border-color-subtle, #c8ccd1);
    background-color: var(--background-color-interactive-subtle, #f8f9fa);
    font-size: 94%;
    padding: 3px;
    text-align: center;
    overflow: hidden;
}
.thumbcaption {
    border: 0;
    font-size: 94%;
    text-align: start;
    line-height: 1.4em;
    padding: 3px;
}
.noresize {
    max-width: 100%;
    overflow-x: auto;
}


/* Target the magnify icon within the first image container */
.mw-content-ltr .magnify {
.locmap .magnify {
     float: right;
     float: right;
}
.magnify {
    margin-inline-start: 3px;
    margin-inline-end: 0;
     margin-left: 3px;
     margin-left: 3px;
     margin-right: 0;
     margin-right: 0;
     margin-inline-start: 3px;
     user-select: none;
    margin-inline-end: 0;
}
 
.mw-content-ltr .magnify a {
    background: #ccc;
}
}


.locmap .magnify a {
.magnify a {
     display: block;
     display: block;
     text-indent: 15px;
     text-indent: 15px;
Line 114: Line 154:
     width: 15px;
     width: 15px;
     height: 11px;
     height: 11px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/3/3f/Magnify-clip.png");
    background-size: 15px 11px;
    background-repeat: no-repeat;
    -moz-user-select: none;
    user-select: none;
}
}

Latest revision as of 06:47, 20 November 2024

.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;
	}
}




/* Target the magnify icon within the first image container */
div.tright {
    margin: 0.5em 0 1.3em 1.4em;
    clear: right;
    float: right;
}

div.thumb {
    width: auto;
    background-color: transparent;
}

div.thumbinner {
    border: 1px solid var(--border-color-subtle, #c8ccd1);
    background-color: var(--background-color-interactive-subtle, #f8f9fa);
    font-size: 94%;
    padding: 3px;
    text-align: center;
    overflow: hidden;
}

.thumbcaption {
    border: 0;
    font-size: 94%;
    text-align: start;
    line-height: 1.4em;
    padding: 3px;
}

.noresize {
    max-width: 100%;
    overflow-x: auto;
}

.mw-content-ltr .magnify {
    float: right;
}

.magnify {
    margin-inline-start: 3px;
    margin-inline-end: 0;
    margin-left: 3px;
    margin-right: 0;
    user-select: none;
}

.mw-content-ltr .magnify a {
    background: #ccc;
}

.magnify a {
    display: block;
    text-indent: 15px;
    white-space: nowrap;
    overflow: hidden;
    width: 15px;
    height: 11px;
}