MediaWiki:Common.less/templates.less: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 20: Line 20:
.navbox-title {
.navbox-title {
color: @white;
color: @white;
}
.navbox-list {
&:not:(last-child) {
border-bottom: none;
}
}
}
}
}

Revision as of 01:03, 1 April 2024

/* ==================
       TEMPLATES
   ==================*/
   
:root {
	--keypress-background: @gallery;
	--keypress-border: @silver;
	--keypress-color: @mineshaft;
}

// TOC
.toc {
	.toctitle > * {
		color: @white;
	}
}

// NAVBOX
.navbox {
	.navbox-title {
		color: @white;
	}
	
	.navbox-list {
		&:not:(last-child) {
			border-bottom: none;
		}
	}
}

// Template:Archive list
.archivelist {
	background-color: @infobox-background;
	border: solid 1px @infobox-border-color;
	box-shadow: @box-shadow;
	float: right;
	margin: 5px;
	padding: 5px;
	text-align: center;
	width: 120px;
}

// Template:Shortcut
.shortcut {
	border: 1px solid @infobox-border-color;
	background: @infobox-background;
	float: right;
	font-size: .8em;
	margin: 0.5em 0em 0.5em 1em;
	padding: 0.5em;
	text-align: center;
}

// Hatnotes: [[Module:Hatnote]]
.hatnote,
.seealso {
	font-style: italic;

	i {
		font-style: normal;
	}
}

// two classes - hatnote gets much customisation in minerva but seealso doesnt
div.hatnote,
div.seealso {
	// 0.5em is <p>'s top and bottom margin
	// 1.6em to match <dd>/<ul> indent
	margin: .5em 1.6em;

	& + & {
		margin-top: -0.5em;
	}
}

// Template:Key press
.keypress {
	background: var(--keypress-background);
	color: var(--keypress-color);
	font-family: inherit;
	border: 1px solid var(--keypress-border);
	border-radius: @border-radius;
	font-size: 0.9em;
	margin: 0 0.1em;
	padding: 0.1em 0.4em;
	white-space: nowrap;
}