MediaWiki:Common.less/templates.less
Jump to navigation
Jump to search
/* ==================
TEMPLATES
==================*/
:root {
--keypress-background: @gallery;
--keypress-border: @silver;
--keypress-color: @mineshaft;
}
// 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;
}