Jump to content

Module:Navigation header/styles.css

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Harej (talk | contribs) at 00:36, 29 April 2023 (styles). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
.navigation-header {
	margin: 1em 0;
	box-sizing: border-box;
	clear: both;
	background: #fff;
}
.navigation-header-tabs {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	text-align: center; /* noflex */
}
#leadtab a {
	color: #fff;
}
#emergencytab {
	border-top: 0.5em solid red;
}
.navigation-header-tab {
	flex:1 1 0;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	background-color: inherit;
	padding: 1em;
	font-weight: bold;
	border-top: 0.2em solid #666;
	text-transform: uppercase;
}
.navigation-header-tab.selected {
	background-color: #f8f9fa;
	border-left: 0.5em solid #666;
}
.navigation-header-tab a {
	color:#36c;
}
.navigation-header-content {
	font-size: 1em;
	background-color: #666;
	border-bottom: 2px solid #666;
	padding: 1em;
}
.navigation-header-icon {
	display:inline-block;
	margin:0 0.5em 0 0;
	vertical-align:text-bottom;
}
.navigation-header-break {
	clear:both;
}

@media (min-width:550px) {
	.navigation-header-tabs {
		flex-direction: row;
		padding: 0;
		margin-top: 0 !important; /* cancels out the sibling styling */
	}
	.navigation-header-tabs > .navigation-header-tab {
		display: inline-block; /* noflex */
		vertical-align:bottom; /* noflex */
		white-space: nowrap;
		width: auto;
		margin: .5em .5em 0 0;
		border-top: .5em solid #666;
		font-size: 1em;
	}
	.navigation-header-tab.selected {
		border-left: 0;
	}
}
@media (min-width:1000px) {
	.navigation-header-tabs > .navigation-header-tab {
		flex: 0 1 0;
	}
}