Jump to content

MediaWiki:Common.css: Difference between revisions

From Eldrasil Wiki
No edit summary
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
.mw-body {
body {
position: relative;
position: relative;
min-height: 100vh; /* full viewport height */
min-height: 100vh;
background-image:
background-image:
linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
Line 8: Line 8:
background-position: center;
background-position: center;
background-repeat: no-repeat;
background-repeat: no-repeat;
background-attachment: fixed;
}
}
body.page-Main_Page #firstHeading {
body.page-Main_Page #firstHeading {
     display: none;
     display: none;
}
}


/* General body styles for the main page content area */
/* ===== MAIN PAGE ONLY STYLES ===== */
 
.mainpage-header {
.mw-parser-output {
    background: linear-gradient(to bottom, rgba(39, 42, 53, 0.95), rgba(39, 42, 53, 0.7));
 
     border-bottom: 3px solid rgba(91, 155, 213, 0.3);
     background-color: #1c1c24; /* Dark background for the content area */
    padding: 2rem 1rem;
 
     margin: 0 0 2rem 0;
     color: #e0e0e0;
    text-align: center;
 
}
}


 
.mainpage-header .thumb {
 
     display: inline-block;
/* Main container for the entire layout */
     margin: 0 0.5rem;
 
.eldrasil-main-container {
 
     display: flex;
 
    flex-wrap: wrap;
 
    gap: 20px;
 
    padding: 20px;
 
    max-width: 1200px;
 
     margin: auto;
 
}
}


 
.mainpage-welcome-text {
 
    background: rgba(39, 42, 53, 0.4);
/* Left and right columns */
    border-left: 4px solid rgba(91, 155, 213, 0.6);
 
    padding: 1.5rem;
.eldrasil-left-column, .eldrasil-right-column {
    margin: 0 0 2rem 0;
     display: flex;
     color: #b8bdc4;
     flex-direction: column;
     font-size: clamp(0.9rem, 2vw, 1rem);
     gap: 20px;
     line-height: 1.7;
}
}


 
.mainpage-grid {
 
     display: grid;
.eldrasil-left-column {
     grid-template-columns: repeat(3, 1fr);
     flex: 3;
     gap: 1rem;
     min-width: 300px;
     margin: 2rem 0;
}
 
.eldrasil-right-column {
     flex: 1;
     min-width: 250px;
}
}


 
.mainpage-card {
 
     background: rgba(39, 42, 53, 0.6);
/* General box styling */
     border: 1px solid rgba(91, 155, 213, 0.2);
.eldrasil-box {
     background-color: #2a2a3e;
     border: 1px solid #4a4a6a;
     border-radius: 8px;
     border-radius: 8px;
     padding: 20px;
     padding: 1.5rem;
    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: 200px;
}
 
 
 
.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;
     text-align: center;
 
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 40px;
}
}


 
.mainpage-card:hover {
 
    background: rgba(45, 60, 85, 0.8);
.eldrasil-stat {
     border-color: rgba(91, 155, 213, 0.6);
 
    box-shadow: 0 0 25px rgba(91, 155, 213, 0.3);
     font-size: 1.1em;
    transform: translateY(-3px);
 
}
}


 
.mainpage-card a {
 
    text-decoration: none;
.eldrasil-stat-number {
    color: inherit;
 
     display: block;
     display: block;
 
     width: 100%;
    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;
 
}
}


 
.mainpage-card h3 {
 
    margin: 0 !important;
.eldrasil-content-item a {
     color: #5b9bd5 !important;
 
    font-size: 1.4rem !important;
     color: #e0e0e0;
     border: none !important;
 
    padding: 0 !important;
     text-decoration: none;
     display: block !important;
 
    white-space: normal !important;
     font-weight: bold;
    word-wrap: break-word !important;
 
}
}


 
.mainpage-card p {
 
     color: #b8bdc4 !important;
/* Sidebar boxes */
     font-size: 0.9rem !important;
 
     margin: 0 !important;
.eldrasil-sidebar-box h3 {
     line-height: 1.5 !important;
 
     display: block !important;
     margin-top: 0;
 
     color: #ffffff;
 
     border-bottom: 2px solid #4a4a6a;
 
     padding-bottom: 10px;
 
     margin-bottom: 15px;
 
}
}


 
.mainpage-footer {
 
    background: rgba(39, 42, 53, 0.4);
.eldrasil-gametime {
    border-top: 1px solid rgba(91, 155, 213, 0.15);
 
    padding: 1rem;
    margin: 3rem 0 1rem 0;
     text-align: center;
     text-align: center;
 
     color: #888;
}
     font-size: 0.85rem;
 
 
 
.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;
 
}
}




 
/* Medium screens (tablets, small laptops) */
.eldrasil-news li {
@media (max-width: 1024px) {
 
    .mainpage-grid {
    margin-bottom: 15px;
        grid-template-columns: repeat(2, 1fr);
 
    }
}
}


 
/* Small screens (phones) */
 
@media (max-width: 640px) {
.eldrasil-news a {
    .mainpage-grid {
 
        grid-template-columns: 1fr;
    color: #a0a0ff;
     }
 
    text-decoration: none;
 
     font-weight: bold;
 
}
}


 
/* ===== MAIN PAGE END ===== */
 
.mw-logo-container.skin-invert {
.eldrasil-news p {
     filter: none !important;
 
    margin: 5px 0 0 15px;
 
    font-size: 0.95em;
 
     line-height: 1.4;
 
}
}

Latest revision as of 05:07, 24 October 2025

body {
	position: relative;
	min-height: 100vh;
	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;
	background-attachment: fixed;
}

body.page-Main_Page #firstHeading {
    display: none;
}

/* ===== MAIN PAGE ONLY STYLES ===== */
.mainpage-header {
    background: linear-gradient(to bottom, rgba(39, 42, 53, 0.95), rgba(39, 42, 53, 0.7));
    border-bottom: 3px solid rgba(91, 155, 213, 0.3);
    padding: 2rem 1rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.mainpage-header .thumb {
    display: inline-block;
    margin: 0 0.5rem;
}

.mainpage-welcome-text {
    background: rgba(39, 42, 53, 0.4);
    border-left: 4px solid rgba(91, 155, 213, 0.6);
    padding: 1.5rem;
    margin: 0 0 2rem 0;
    color: #b8bdc4;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
}

.mainpage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.mainpage-card {
    background: rgba(39, 42, 53, 0.6);
    border: 1px solid rgba(91, 155, 213, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 40px;
}

.mainpage-card:hover {
    background: rgba(45, 60, 85, 0.8);
    border-color: rgba(91, 155, 213, 0.6);
    box-shadow: 0 0 25px rgba(91, 155, 213, 0.3);
    transform: translateY(-3px);
}

.mainpage-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.mainpage-card h3 {
    margin: 0 !important;
    color: #5b9bd5 !important;
    font-size: 1.4rem !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.mainpage-card p {
    color: #b8bdc4 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    display: block !important;
}

.mainpage-footer {
    background: rgba(39, 42, 53, 0.4);
    border-top: 1px solid rgba(91, 155, 213, 0.15);
    padding: 1rem;
    margin: 3rem 0 1rem 0;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}


/* Medium screens (tablets, small laptops) */
@media (max-width: 1024px) {
    .mainpage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (phones) */
@media (max-width: 640px) {
    .mainpage-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MAIN PAGE END ===== */
.mw-logo-container.skin-invert {
    filter: none !important;
}