MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
.mw-body { | .mw-body { | ||
position: relative; | position: relative; | ||
background | background: url('/wiki/assets/bg.jpeg') center/cover no-repeat; | ||
overflow: hidden; /* ensures overlay stays inside */ | |||
} | |||
.mw-body::before { | |||
background- | 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 */
}