MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
.mw-body {
position: relative;
min-height: 100vh; /* full viewport height */
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;
}
body.page-Main_Page #firstHeading {
display: none;
}
/* General body styles for the main page content area */
.mw-parser-output {
background-color: #1c1c24; /* Dark background for the content area */
color: #e0e0e0;
}
/* Main container for the entire layout */
.eldrasil-main-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 20px;
max-width: 1200px;
margin: auto;
}
/* Left and right columns */
.eldrasil-left-column, .eldrasil-right-column {
display: flex;
flex-direction: column;
gap: 20px;
}
.eldrasil-left-column {
flex: 3;
min-width: 300px;
}
.eldrasil-right-column {
flex: 1;
min-width: 250px;
}
/* General box styling */
.eldrasil-box {
background-color: #2a2a3e;
border: 1px solid #4a4a6a;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Welcome section */
.eldrasil-welcome-box {
display: flex;
align-items: center;
gap: 20px;
}
.eldrasil-welcome-box img {
width: 200px;
height: 300px;
}
.eldrasil-welcome-text h2 {
margin: 0;
color: #ffffff;
font-size: 1.8em;
}
.eldrasil-welcome-text p {
margin: 5px 0 0;
font-size: 1.1em;
}
/* Stats section */
.eldrasil-stats-box {
display: flex;
justify-content: space-around;
text-align: center;
}
.eldrasil-stat {
font-size: 1.1em;
}
.eldrasil-stat-number {
display: block;
font-size: 1.5em;
font-weight: bold;
color: #ffffff;
}
/* Content grid */
.eldrasil-content-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 15px;
text-align: center;
}
.eldrasil-content-item {
background-color: #3a3a5a;
padding: 15px;
border-radius: 6px;
transition: background-color 0.3s;
cursor: pointer;
}
.eldrasil-content-item:hover {
background-color: #4a4a7a;
}
.eldrasil-content-item img {
width: 50px;
height: 50px;
margin-bottom: 10px;
}
.eldrasil-content-item a {
color: #e0e0e0;
text-decoration: none;
font-weight: bold;
}
/* Sidebar boxes */
.eldrasil-sidebar-box h3 {
margin-top: 0;
color: #ffffff;
border-bottom: 2px solid #4a4a6a;
padding-bottom: 10px;
margin-bottom: 15px;
}
.eldrasil-gametime {
text-align: center;
}
.eldrasil-gametime .time {
font-size: 2.5em;
font-weight: bold;
color: #ffffff;
margin-bottom: 5px;
}
.eldrasil-gametime .date {
font-size: 1.1em;
}
.eldrasil-news ul {
list-style: none;
padding: 0;
}
.eldrasil-news li {
margin-bottom: 15px;
}
.eldrasil-news a {
color: #a0a0ff;
text-decoration: none;
font-weight: bold;
}
.eldrasil-news p {
margin: 5px 0 0 15px;
font-size: 0.95em;
line-height: 1.4;
}