Jump to content

MediaWiki:Common.css: Difference between revisions

From Eldrasil Wiki
No edit summary
No edit summary
Line 1: Line 1:
.mw-body {
.mw-body {
position: relative;
position: relative;
background-image:
background: url('/wiki/assets/bg.jpeg') center/cover no-repeat;
linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
overflow: hidden; /* ensures overlay stays inside */
url('/wiki/assets/bg.jpeg');
}
background-size: cover;
 
background-position: center;
.mw-body::before {
background-repeat: no-repeat;
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.4); /* overlay color */
pointer-events: none; /* let clicks pass through */
}
}

Revision as of 22:30, 15 October 2025

.mw-body {
	position: relative;
	background: url('/wiki/assets/bg.jpeg') center/cover no-repeat;
	overflow: hidden; /* ensures overlay stays inside */
}

.mw-body::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4); /* overlay color */
	pointer-events: none; /* let clicks pass through */
}