MediaWiki:Common.css

From Ekologos Wiki
Revision as of 13:56, 23 July 2026 by Admin (talk | contribs)

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.
/* ==========================================================
   EKOLOGOS WIKI DESIGN SYSTEM v2.0
   Foundation
========================================================== */

/* ==========================================================
   1. ROOT VARIABLES
========================================================== */

:root{

    --eko-green:#23492F;
    --eko-accent:#295536;
    --eko-bg:#F8F6F1;
    --eko-white:#ffffff;
    --eko-text:#333333;
    --eko-light:#666666;

    --radius:18px;

    --shadow-sm:0 6px 18px rgba(0,0,0,.08);
    --shadow-md:0 12px 30px rgba(0,0,0,.10);
    --shadow-lg:0 22px 50px rgba(0,0,0,.15);

    --container:1280px;

}

/* ==========================================================
   2. GLOBAL
========================================================== */

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    padding:0;
    background:var(--eko-bg);
    color:var(--eko-text);
    font-family:"Segoe UI",Roboto,Arial,sans-serif;
}

/* ==========================================================
   FULL WIDTH LAYOUT
========================================================== */

body .container,
body .container-fluid,
.col-cmln,
.col-12,
#mw-content-text,
.page-Main_Page .mw-parser-output{

    width:100% !important;
    max-width:100% !important;

}

.page-Main_Page .container{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.page-Main_Page .flex-fill.container{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.page-Main_Page #content,
.page-Main_Page #bodyContent,
.page-Main_Page #mw-content-text,
.page-Main_Page .mw-parser-output{

    margin:0 !important;
    padding:0 !important;

}

/* ==========================================================
   CONTENT PAGES
========================================================== */

body:not(.page-Main_Page) .mw-parser-output{

    max-width:1100px;
    margin:auto;
    padding:40px 30px;

}

/* ==========================================================
   MAIN PAGE CLEANUP
========================================================== */

.page-Main_Page #firstHeading,
.page-Main_Page #contentSub,
.page-Main_Page #toc,
.page-Main_Page .page-tools,
.page-Main_Page .mw-indicators{

    display:none !important;

}

/* ==========================================================
   NAVBAR
========================================================== */

.page-Main_Page .navbar{

    position:absolute;
    top:0;
    left:0;
    right:0;

    z-index:1000;

    background:transparent !important;
    border:none !important;
    box-shadow:none !important;

}

/* Logo */

.navbar-brand{

    display:flex !important;
    align-items:flex-start !important;
    justify-content:center;

    height:70px;

    padding:0 8px !important;
    margin-top:-50px;

}

.navbar-brand img,
.navbar-brand .mw-wiki-logo,
#p-logo img{

    display:block;

    height:90px;
    width:auto;

}

/* Navigation */

.page-Main_Page .navbar-nav>li>a{

    color:#ffffff !important;
    font-weight:500;

}

.page-Main_Page .navbar-nav>li>a:hover{

    color:#d8ead8 !important;

}
/* ==========================================================
   HERO
========================================================== */

.eko-hero{

    position:relative;

    width:100%;

    min-height:720px;
    height:80vh;
    max-height:900px;

    background:
        linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.35)),
        url("/wiki/images/2/26/Hero.jpg?20260703054727");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    overflow:hidden;

}

.eko-overlay{

    position:absolute;
    inset:0;
    background:rgba(0,0,0,.30);

}

.eko-content{

    position:relative;
    z-index:2;

    width:100%;
    max-width:950px;

    padding:0 30px;

}

/* ==========================================
   HERO TYPOGRAPHY
========================================== */

.hero-title-main{

    font-family:Georgia,"Times New Roman",serif;
    font-size:78px;
    font-weight:700;
    line-height:1;
    color:#ffffff;

    margin:0 0 14px;

}

.hero-title-sub{

    font-family:Georgia,"Times New Roman",serif;
    font-size:52px;
    font-weight:500;
    line-height:1.15;
    color:#ffffff;

    margin:0 0 28px;

}

/* Single divider BELOW H2 only */
.hero-title-sub::after{

    content:"";

    display:block;

    width:420px;
    max-width:100%;

    height:1px;

    margin:28px auto 0;

    background:rgba(255,255,255,.75);

}

/* Remove any divider after H1 */
.hero-title-main::after{

    content:none;

}

.eko-content p{

    max-width:760px;

    margin:35px auto 0;

    font-size:22px;
    line-height:1.7;

    color:rgba(255,255,255,.95);

}
/* Remove MediaWiki heading borders inside hero */

.eko-content h1,
.eko-content h2{
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    padding-bottom: 0 !important;
}

.eko-content .mw-heading,
.eko-content .mw-heading1,
.eko-content .mw-heading2{
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep only one divider below H2 */

.hero-title-sub::after{
    content:"";
    display:block;
    width:420px;
    max-width:100%;
    height:1px;
    background:rgba(255,255,255,.75);
    margin:28px auto 0;
}
/* ==========================================================
   HOMEPAGE SECTION
========================================================== */

.homepage-section{

    max-width:var(--container);
    margin:0 auto;
    padding:90px 40px;

}

/* ==========================================================
   SECTION HEADER
========================================================== */

.section-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    width:100%;

    margin-bottom:2px;

}

/* Left side */

.section-title-left{

    display:flex;
    align-items:center;

    gap:16px;

    flex:1;

}

/* Remove MediaWiki image wrappers */

.section-title-left span,
.section-title-left a{

    display:flex;
    align-items:center;

    margin:0;
    padding:0;

}

/* Globe icon */

.section-title-left .mw-file-element,
.section-title-left img,
.section-icon,
.section-icon img{

    width:32px !important;
    height:32px !important;

    min-width:32px;
    min-height:32px;

    display:block;

    object-fit:contain;

    margin:0;
    padding:0;

    border:none;
    box-shadow:none;

}

/* Heading */

.section-heading{

    margin:0;
    padding:0;

    font-family:Georgia,"Times New Roman",serif;
    font-size:46px;
    font-weight:500;
    line-height:1;

    color:var(--eko-green);

}

/* Remove default MediaWiki heading spacing */

.section-heading::before,
.section-heading::after{

    display:none !important;
    content:none !important;

}

.section-title-left h2{

    margin:0 !important;
    padding:0 !important;
    border:none !important;

}

/* Right side */

.section-title-right{

    margin-left:auto;

    white-space:nowrap;

    font-size:18px;
    font-weight:600;

    display:flex;
    align-items:center;

}

.section-title-right a{

    color:var(--eko-green);
    text-decoration:none;

    transition:.25s;

}

.section-title-right a:hover{

    color:var(--eko-accent);
    text-decoration:none;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:768px){

    .section-header{

        flex-direction:column;
        align-items:flex-start;
        gap:20px;

    }

    .section-heading{

        font-size:34px;

    }

    .section-title-right{

        margin-left:0;

    }

}

@media (max-width:480px){

    .section-heading{

        font-size:28px;

    }

    .section-title-left .mw-file-element,
    .section-title-left img{

        width:26px !important;
        height:26px !important;

        min-width:26px;
        min-height:26px;

    }

    .section-title-right{

        font-size:16px;

    }

}

/* ==========================================================
   GRID
========================================================== */

.homepage-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:34px;
}

/* ==========================================================
   CARDS
========================================================== */

.eko-card{
    width:100%;
    display:block;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.eko-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-lg);

}

.eko-card img,
.eko-card .mw-file-element{

    width:100%;
    height:260px;

    object-fit:cover;

    display:block;

    transition:transform .35s ease;

}

.eko-card:hover img,
.eko-card:hover .mw-file-element{

    transform:scale(1.05);

}

.eko-card-body{

    padding:18px;

}

.eko-card-title{

    margin:0;

    text-align:center;

    font-family:Georgia,serif;

    font-size:24px;

    color:var(--eko-green);

}

.eko-card-text{

    display:none !important;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1000px){

    .homepage-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:768px){

    .eko-hero{
        min-height:600px;
        height:auto;
        padding:100px 25px 80px;
    }

    .hero-title-main{
        font-size:54px;
        line-height:1.05;
        margin-bottom:10px;
    }

    .hero-title-sub{
        font-size:36px;
        line-height:1.2;
        margin-bottom:24px;
    }

    .hero-title-sub::after{
        width:320px;
        margin:24px auto 0;
    }

    .eko-content p{
        max-width:620px;
        font-size:18px;
        line-height:1.6;
        margin-top:28px;
    }

    .section-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .homepage-section{
        padding:70px 25px;
    }

    .homepage-grid{
        grid-template-columns:1fr;
    }

    .navbar-brand img,
    .navbar-brand .mw-wiki-logo{
        height:50px;
    }

}

@media (max-width:480px){

    .eko-hero{
        min-height:500px;
        height:auto;
        padding:80px 18px 60px;
    }

    .hero-title-main{
        font-size:40px;
        line-height:1.1;
        margin-bottom:8px;
    }

    .hero-title-sub{
        font-size:28px;
        line-height:1.25;
        margin-bottom:20px;
    }

    .hero-title-sub::after{
        width:220px;
        margin:20px auto 0;
    }

    .eko-content p{
        max-width:100%;
        font-size:17px;
        line-height:1.6;
        margin-top:24px;
    }

    .homepage-section{
        padding:50px 18px;
    }

    .eko-card img,
    .eko-card .mw-file-element{
        height:200px;
    }

}

/* ==========================================================
   ANIMATION
========================================================== */

@keyframes fadeInUp{

from{

opacity:0;
transform:translateY(30px);

}

to{

opacity:1;
transform:translateY(0);

}

}

.animate-in{

animation:fadeInUp .6s ease forwards;

}

.eko-card:nth-child(1){animation-delay:.1s;}
.eko-card:nth-child(2){animation-delay:.2s;}
.eko-card:nth-child(3){animation-delay:.3s;}
.eko-card:nth-child(4){animation-delay:.4s;}

/* ==========================================================
   UTILITIES
========================================================== */

.text-center{text-align:center;}
.mt-20{margin-top:20px;}
.mt-40{margin-top:40px;}
.mb-20{margin-bottom:20px;}
.mb-40{margin-bottom:40px;}
/* Make both texts the same size */
.homepage-section .section-heading,
.homepage-section .section-title-right a {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
.section-title-right a,
.section-title-right a:visited {
    color: var(--eko-green) !important;
}
/* Show all six region cards in one row on desktop */

@media (min-width: 1001px) {

    .homepage-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 18px !important;
    }

    .eko-card img,
    .eko-card .mw-file-element {
        height: 150px !important;
    }

    .eko-card-body {
        padding: 12px 8px !important;
    }

    .eko-card-title {
        font-size: 17px !important;
    }
}
/* Region titles inside images — compact version */

.eko-card {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Remove MediaWiki spacing around images */

.eko-card > p,
.eko-card > figure,
.eko-card > span,
.eko-card > a,
.eko-card .mw-file-description {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    background: transparent !important;
}

.eko-card > p > span,
.eko-card > p > span > a,
.eko-card > figure > a,
.eko-card > span > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Image fills the card without a white border */

.eko-card img,
.eko-card .mw-file-element {
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

/* Small title overlay */

.eko-card-body {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 10px 4px 4px !important;
    background: linear-gradient(
    to bottom,
    transparent,
    var(--eko-green)
) !important;
    box-sizing: border-box !important;
}

.eko-card-title {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
/* Final fix: space between region heading and cards */

.page-Main_Page .homepage-section > .section-header {
    margin-bottom: 8px !important;
}

.page-Main_Page .homepage-section > .section-header + p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-Main_Page .homepage-section > .homepage-grid {
    margin-top: 0 !important;
}

/* Move region cards closer to the heading */
.page-Main_Page .homepage-section .homepage-grid {
    margin-top: 0px !important;
}

/* ==========================================================
   EXPLORE BY THEME
========================================================== */

.theme-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 25px 40px 55px;
    box-sizing: border-box;
}

/* Theme heading row */

.theme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
}

.theme-title-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.theme-title-left span,
.theme-title-left a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.theme-title-left img,
.theme-title-left .mw-file-element {
    display: block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.theme-heading,
.theme-title-right a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px !important;
    font-weight: 500;
    line-height: 1.2;
    color: var(--eko-green) !important;
}

.theme-title-right {
    margin-left: auto;
    white-space: nowrap;
}

.theme-title-right a {
    text-decoration: none !important;
}

.theme-title-right a:hover {
    color: var(--eko-accent) !important;
}

/* Ten theme cards in one row */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

/* Individual theme card */

.theme-card {
    min-height: 115px;
    padding: 12px 5px 10px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #f5f3ed;
    border: 1px solid rgba(35, 73, 47, 0.12);
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);

    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.08);
}

/* Icon */

.theme-icon {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin-bottom: 5px;
}

.theme-icon span,
.theme-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.theme-icon img,
.theme-icon .mw-file-element {
    display: block;
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Theme title */

.theme-name {
    color: var(--eko-green);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

/* Responsive layout */

@media (max-width: 1000px) {
    .theme-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 600px) {
    .theme-section {
        padding: 25px 18px 40px;
    }

    .theme-header {
        align-items: flex-start;
        gap: 12px;
    }

    .theme-heading,
    .theme-title-right a {
        font-size: 15px !important;
    }

    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
/* Remove vertical gaps around Explore by Theme */

.page-Main_Page .homepage-section {
    padding-bottom: 0 !important;
}

.page-Main_Page .theme-section {
    padding-top: 0 !important;
}

.page-Main_Page .theme-header {
    margin-bottom: 0 !important;
}

.page-Main_Page .theme-grid {
    margin-top: 0 !important;
}