Jump to content

MediaWiki:Common.css: Difference between revisions

From Eldrasil Wiki
No edit summary
No edit summary
 
(39 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;
}
}


/* ===== ROOT VARIABLES ===== */
/* ===== MAIN PAGE ONLY STYLES ===== */
:root {
.mainpage-header {
    --bg-primary: #0f1419;
     background: linear-gradient(to bottom, rgba(39, 42, 53, 0.95), rgba(39, 42, 53, 0.7));
    --bg-secondary: #151b23;
     border-bottom: 3px solid rgba(91, 155, 213, 0.3);
    --bg-tertiary: #1a2332;
     padding: 2rem 1rem;
    --accent-blue: #2b4c7e;
     margin: 0 0 2rem 0;
    --accent-blue-light: #3d6aa2;
    --text-primary: #e8eaed;
    --text-secondary: #b8bdc4;
    --border-color: #2a3444;
    --link-color: #5b9bd5;
    --link-hover: #7fb8e8;
}
 
/* ===== BASE STYLES ===== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
}
 
/* ===== MAIN PAGE WELCOME BANNER ===== */
.main-welcome {
     background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-blue) 100%);
     border: 2px solid var(--accent-blue-light);
    border-radius: 12px;
     padding: 2.5rem 2rem;
     margin: 1.5rem 0;
     text-align: center;
     text-align: center;
    box-shadow: 0 4px 12px rgba(43, 76, 126, 0.3);
}
}


.main-welcome h1 {
.mainpage-header .thumb {
     font-size: 2.5rem;
     display: inline-block;
     margin: 0 0 0.5rem 0;
     margin: 0 0.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
}


.main-welcome-subtitle {
.mainpage-welcome-text {
     font-size: 1.1rem;
     background: rgba(39, 42, 53, 0.4);
    color: var(--text-secondary);
     border-left: 4px solid rgba(91, 155, 213, 0.6);
    margin-top: 0.5rem;
}
 
/* ===== MAIN PAGE SECTIONS ===== */
.main-section {
    background: var(--bg-secondary);
     border: 1px solid var(--border-color);
    border-radius: 8px;
     padding: 1.5rem;
     padding: 1.5rem;
     margin: 1rem 0;
     margin: 0 0 2rem 0;
    transition: border-color 0.3s ease;
     color: #b8bdc4;
}
     font-size: clamp(0.9rem, 2vw, 1rem);
 
     line-height: 1.7;
.main-section:hover {
     border-color: var(--accent-blue-light);
}
 
.main-section h2 {
     color: var(--link-color);
    border-bottom: 2px solid var(--accent-blue);
     padding-bottom: 0.5rem;
    margin-top: 0;
}
}


/* ===== GRID LAYOUT FOR SECTIONS ===== */
.mainpage-grid {
.main-grid {
     display: grid;
     display: grid;
     grid-template-columns: 1fr;
     grid-template-columns: repeat(3, 1fr);
     gap: 1rem;
     gap: 1rem;
     margin: 1rem 0;
     margin: 2rem 0;
}
}


@media (min-width: 768px) {
.mainpage-card {
     .main-grid {
    background: rgba(39, 42, 53, 0.6);
        grid-template-columns: repeat(2, 1fr);
     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;
}
}


/* ===== FEATURE BOXES ===== */
.mainpage-card:hover {
.feature-box {
     background: rgba(45, 60, 85, 0.8);
     background: var(--bg-tertiary);
     border-color: rgba(91, 155, 213, 0.6);
     border-left: 4px solid var(--accent-blue);
     box-shadow: 0 0 25px rgba(91, 155, 213, 0.3);
     padding: 1rem;
     transform: translateY(-3px);
    border-radius: 4px;
     margin: 0.5rem 0;
}
}


.feature-box h3 {
.mainpage-card a {
    margin-top: 0;
    color: var(--link-hover);
    font-size: 1.2rem;
}
 
.feature-box ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}
 
/* ===== QUICK LINKS ===== */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
 
.quick-link-btn {
    background: var(--accent-blue);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
     text-decoration: none;
     text-decoration: none;
     display: inline-block;
     color: inherit;
     transition: all 0.3s ease;
     display: block;
     border: 1px solid var(--accent-blue-light);
     width: 100%;
}
}


.quick-link-btn:hover {
.mainpage-card h3 {
     background: var(--accent-blue-light);
    margin: 0 !important;
     transform: translateY(-2px);
    color: #5b9bd5 !important;
     box-shadow: 0 4px 8px rgba(43, 76, 126, 0.4);
    font-size: 1.4rem !important;
     color: #ffffff;
    border: none !important;
     padding: 0 !important;
     display: block !important;
     white-space: normal !important;
     word-wrap: break-word !important;
}
}


/* ===== LINKS ===== */
.mainpage-card p {
a {
     color: #b8bdc4 !important;
     color: var(--link-color);
    font-size: 0.9rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    display: block !important;
}
}


a:hover {
.mainpage-footer {
     color: var(--link-hover);
     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;
}
}


a:visited {
    color: #7a8fc7;
}


/* ===== TABLES ===== */
/* Medium screens (tablets, small laptops) */
.wikitable {
@media (max-width: 1024px) {
     background: var(--bg-secondary);
     .mainpage-grid {
    border: 1px solid var(--border-color);
        grid-template-columns: repeat(2, 1fr);
     color: var(--text-primary);
     }
}
}


.wikitable th {
/* Small screens (phones) */
    background: var(--accent-blue);
@media (max-width: 640px) {
    color: #ffffff;
     .mainpage-grid {
    border: 1px solid var(--border-color);
        grid-template-columns: 1fr;
}
     }
 
.wikitable td {
     border: 1px solid var(--border-color);
}
 
/* ===== INFO BOXES ===== */
.infobox {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    padding: 1rem;
     margin: 1rem 0;
}
 
/* ===== MINERVA THEME SPECIFIC ===== */
.content {
    max-width: 100%;
}
}


/* Better spacing for centered content */
/* ===== MAIN PAGE END ===== */
.mw-parser-output {
.mw-logo-container.skin-invert {
     padding: 0 0.5rem;
     filter: none !important;
}
}

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;
}