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 7: Line 7:
--keypress-border: @silver;
--keypress-border: @silver;
--keypress-color: @mineshaft;
--keypress-color: @mineshaft;
}


// 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;
}
}
}



Revision as of 20:15, 22 March 2024

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


// 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;
}