Template:MetroStationInfobox/styles.css

From Tyne and Wear Metro wiki
Revision as of 08:05, 27 August 2025 by Hopperelec (talk | contribs) (Created page with ".infobox { float: right; width: min-content; background-color: #f8f9fa; border-collapse: collapse; text-align: center; font-size: .8em; } .infobox > caption { font-weight: bold; font-size: 1.3em; } .infobox > tbody > tr > th, .infobox > tbody > tr > td { border: 1px solid #c8ccd1; padding: 0; } .pills { list-style-type: none; padding: 0; margin: .2em 0; display: flex; width: 100%; flex-wrap: wrap; justify-content: center; } .pills li { padding: .1em...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.infobox {
	float: right;
	width: min-content;
	background-color: #f8f9fa;
	border-collapse: collapse;
	text-align: center;
	font-size: .8em;
}

.infobox > caption {
	font-weight: bold;
	font-size: 1.3em;
}

.infobox > tbody > tr > th,
.infobox > tbody > tr > td {
	border: 1px solid #c8ccd1;
	padding: 0;
}

.pills {
	list-style-type: none;
	padding: 0;
	margin: .2em 0;
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	justify-content: center;
}

.pills li {
	padding: .1em .2em;
	border: 1px solid #c8ccd1;
	border-radius: .5em;
	margin: .2em;
	min-width: 1.2em;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: help;
}

.pills a {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

.pills img {
	display: block;
	width: 1em;
	height: 1em;
	margin: 0 .1em;
    object-fit: contain;
}

.zone {
	border: 1px solid;
}

.alternative-code {
	background-color: #ddd;
}

.thumb {
	display: block;
}

.coordinates a {
	text-decoration: none;
}

.key-dates,
.platforms-visualizer {
	list-style-type: none;
	margin: 0;
	padding: .2em;
	text-align: center;
}

.platforms-visualizer > li + li {
	/* Gap between references */
	margin-top: 2px;
}

.platforms-visualizer li,
.platforms-visualizer a {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	margin-left: auto;
}

.reference-train {
	display: block;
	position: relative;
}

.reference-train a {
	text-decoration: none;
	color: inherit;
}

.reference-train::before {
	/* For adding inset borders */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
}

.reference-555 {
	color: #000;
	background-color: #fc0;
	border-radius: 1em 1em 0 0;
}

.reference-555::before {
	border-bottom: 3px solid #999;
}

.reference-metrocar {
	background-color: #000;
	color: #fff;
}

.reference-metrocar::before {
	border: 2px solid #fc0;
	border-top: 1px solid #f90;
	border-bottom: transparent;
}

.reference-platform {
	background-color: #ccc;
}

.reference-platform:nth-child(2n) {
	background-color: #bbb;
}