Jump to content

Module:Navbox timeline/styles.css

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Jonesey95 (talk | contribs) at 15:54, 27 March 2025 (provide text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
.timeline-wrapper { 
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.timeline-wrapper-cell {
	padding: 0;
	overflow: auto;
}

.timeline-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
}

.timeline-row > * {
	border-style: solid;
	border-color: #FDFDFD;
	border-width: 2px 2px 0 0;
}

.timeline-row:first-child > * {
	border-top-width: 0;
}

.timeline-row > :last-child {
	border-right-width: 0;
}

.timeline-decade,
.timeline-year {
	background-color: #F0F0F0;
	color:inherit;
    font-weight: normal;
}

.timeline-label {
	text-align: center;
	font-weight: normal;
	padding: 0 1em;
}

.timeline-blank {
	background-color: #E0E0E0;
    color:inherit;
}

.timeline-item {
	background-color: #C0C0C0;
    color:inherit;
}

.timeline-decade,
.timeline-year,
.timeline-item {
	padding: 0 0.25em;
}