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: url('/wiki/assets/bg.jpeg') center/cover no-repeat;
background-image:
overflow: hidden; /* ensures overlay stays inside */
linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
}
url('/wiki/assets/bg.jpeg');
 
background-size: cover;
.mw-body::before {
background-position: center;
content: "";
background-repeat: no-repeat;
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.4); /* overlay color */
pointer-events: none; /* let clicks pass through */
}
}

Revision as of 22:31, 15 October 2025

.mw-body {
	position: relative;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
		url('/wiki/assets/bg.jpeg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}