MediaWiki:Minerva.less/elements.less

From Old School RuneScape Wiki
Jump to navigation Jump to search
/* ===================
      HTML elements
   =================== */

// Background colour
// image is not here as it wont affect the top
// bar in search overlays and others
body {
	background: var(--body-background-color);
	color: var(--text-color);
}

// Page headers
.pre-content h1 {
	text-align: center;
}

// all are .content specific
.content { 
	// all headers border color
	.mw-parser-output > h2,
	.section-heading {
		border-color: var(--sidebar);
	}

	// same specifity as default border style
	.mw-parser-output > h2,
	// all headers have this class
	.section-heading {
		border-color: var(--sidebar);
	}

	// same as desktop <hr>
	hr {
		border-color: var(--sidebar);
		border-style: solid;
		border-width: 1px 0 0 0;
		height: initial;
	}

	code,
	pre {
		background-color: var(--mw-code-background-color);
		border: 1px solid var(--body-border);
	}

	// no border pls
	kbd,
	samp {
		border: none
	}
}