Jump to content

Template:Navbox/styles.css

From Citadel Wiki
/*
 * Template:Navbox and the boxes Module:Navbox builds: a box of related pages at the foot of a
 * page, in the infobox's style (Template:Infobox/styles.css): one hairline border, no fill of its
 * own, labels and the title in the game's font. A row's label sits in a column of its own, and a
 * row that holds rows nests them inside, as the game's tooltips nest their sections.
 */
.citadel-navbox {
	clear: both;
	margin: 1.5em 0 0.5em;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #d9d9d9;
	font-size: 0.875rem;
	line-height: 1.6;
}

.citadel-navbox + .citadel-navbox {
	margin-top: -1px;
}

.citadel-navbox-title {
	padding: 6px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	font-family: 'VCR OSD Neue', monospace;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.citadel-navbox.mw-collapsed .citadel-navbox-title {
	border-bottom: 0;
}

.citadel-navbox .mw-collapsible-toggle {
	float: right;
	margin: 6px 12px 0 0;
	font-family: 'VCR OSD Neue', monospace;
	font-size: 0.85em;
	text-transform: uppercase;
}

.citadel-navbox-rows {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	background: transparent;
}

.citadel-navbox-rows th {
	width: 1%;
	padding: 4px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(217, 217, 217, 0.6);
	font-family: 'VCR OSD Neue', monospace;
	font-size: 0.85em;
	font-weight: normal;
	letter-spacing: 0.06em;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
}

.citadel-navbox-rows td {
	padding: 4px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	vertical-align: middle;
}

.citadel-navbox-rows tr:first-child > th,
.citadel-navbox-rows tr:first-child > td {
	border-top: 0;
}

/* A row that holds rows: its rows fill the cell, edge to edge. */
.citadel-navbox-rows td.citadel-navbox-inner {
	padding: 0;
}

.citadel-navbox-inner .citadel-navbox-rows th {
	background: rgba(255, 255, 255, 0.015);
}

/* An entry's picture and name stay together when a row wraps. */
.citadel-navbox-entry {
	white-space: nowrap;
}

.citadel-navbox-entry img {
	vertical-align: middle;
}

/* The page the box is on, as MediaWiki draws a link to the page itself. */
.citadel-navbox .mw-selflink {
	color: #ffffff;
	font-weight: bold;
}

/* Template:Item links: the items in one line, which wraps between entries. */
.citadel-item-links {
	margin: 0.5em 0;
	line-height: 1.8;
}

.citadel-item-links .citadel-navbox-entry img {
	vertical-align: middle;
}