Jump to content

Template:Organization/styles.css

From OpenStreetMap Wiki
.OrganizationBox {
	border: 1px solid #aaa;
	color: #222;
}

.OrganizationBox-image-bgcol {
	background-color: #fff;
}

.active, .default-class {
	background-color: #dfe;
}

.inactive {
	background-color: #fdf1d1;
}

.discontinued {
	background-color: #fdd;
}

/* Disable floating to the side for narrow (mobile) screens */
@media screen and (max-width: 640px) {
	.OrganizationBox {
		float: none !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

@media screen {
	.scroll-y {
		max-height: 140px;
		overflow-y: auto;
	}
	/* Colours for dark mode GUI */
	html.skin-theme-clientpref-night .OrganizationBox {
		color: #f0f0f0;
	}
	html.skin-theme-clientpref-night .OrganizationBox-image-bgcol {
		background-color: #202122;
	}
	html.skin-theme-clientpref-night .active,
	html.skin-theme-clientpref-night .default-class {
		background-color: #354;
	}
	html.skin-theme-clientpref-night .inactive {
		background-color: #543;
	}
	html.skin-theme-clientpref-night .discontinued {
		background-color: #522;
	}
}

@media screen and ( prefers-color-scheme: dark ) {
	html.skin-theme-clientpref-os .OrganizationBox {
		color: #f0f0f0;
	}
	html.skin-theme-clientpref-os .OrganizationBox-image-bgcol {
		background-color: #202122;
	}
	html.skin-theme-clientpref-os .active,
	html.skin-theme-clientpref-os .default-class {
		background-color: #354;
	}
	html.skin-theme-clientpref-os .inactive {
		background-color: #543;
	}
	html.skin-theme-clientpref-os .discontinued {
		background-color: #522;
	}
}