Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Navplate/styles.css

From the Star Citizen Wiki, the fidelity™ encyclopedia
.template-navplate {
	margin-top: var( --space-md );
	clear: both;
	font-size: var( --font-size-small );
	line-height: var( --line-height-sm );
	border: 1px solid var( --border-color-base );
	border-radius: var( --border-radius-medium );
    overflow: hidden;
	user-select: none;
}

.template-navplate__header {
	padding: var( --space-sm ) var( --space-md );
	background-color: transparent;
	display: flex;
	align-items: center;
	gap: var( --space-md );
	cursor: pointer;
}

.template-navplate[ open ] .template-navplate__header {
	background-color: var( --color-surface-2 );
}

.template-navplate .template-navplate__header:hover {
	background-color: var( --background-color-quiet--hover );
}

.template-navplate__subtitle {
	font-size: var( --font-size-x-small );
}

.template-navplate__subtitle,
.template-navplate-item__label {
	color: var( --color-base--subtle );
	letter-spacing: 0.05em;
}

.template-navplate__title,
.template-navplate__groupheader {
	color: var( --color-base--emphasized );
	font-weight: var( --font-weight-semibold );
}

.template-navplate__title {
	font-size: var( --font-size-medium );
}

.template-navplate__content {
	position: relative;
	border-top: 1px solid var( --border-color-base );
	user-select: auto;
}

.template-navplate__groupheader {
	background-color: var( --color-surface-2 );
	padding: var( --space-xs ) var( --space-md );
}

.template-navplate-item {
	display: grid;
}

.template-navplate-item__label {
	display: flex;
	padding: var( --space-sm ) var( --space-md ) 0 var( --space-md );
	gap: var( --space-xs );
}

.template-navplate-item__label img {
	opacity: var( --opacity-icon-base );
    filter: var( --filter-invert );
}

.template-navplate-item__list {
	padding: 10px; /* 10px + 2px = space-sm; 10px + 6px = space-md */
}

.template-navplate-item__list a {
	display: inline-block;
	padding: 2px 6px;
}

.template-navplate__content > div + div {
	border-top: 1px solid var( --border-color-base );
}

.template-navplate__header .mw-ui-icon-wikimedia-collapse {
	--transform-rotate-collapse: rotate3d(1, 0, 0, 180deg);
	width: var( --font-size-small );
	height: var( --font-size-small );
	transition: var( --transition-hover );
	transition-property: transform;
	transform: var( --transform-rotate-collapse );
}

.template-navplate[ open ] .template-navplate__header .mw-ui-icon-wikimedia-collapse {
	transform: none;
}

@media only screen and ( min-width: 640px ) {
	.template-navplate-item {
		grid-template-columns: 180px auto;
	}

	.template-navplate-item__label {
		border-right: 1px solid var( --border-color-base );
		padding-bottom: var( --space-sm );
	}
}