MediaWiki:Common.css: Difference between revisions
From Ekologos Wiki
No edit summary |
No edit summary |
||
| Line 29: | Line 29: | ||
========================================== */ | ========================================== */ | ||
{ | |||
font-family: Georgia, "Times New Roman", serif; | font-family: Georgia, "Times New Roman", serif; | ||
font-size: clamp(36px, 6vw, 68px); | font-size: clamp(36px, 6vw, 68px); | ||
| Line 38: | Line 38: | ||
} | } | ||
{ | |||
font-size: clamp(18px, 2.5vw, 24px); | font-size: clamp(18px, 2.5vw, 24px); | ||
line-height: 1.6; | line-height: 1.6; | ||
| Line 46: | Line 46: | ||
} | } | ||
{ | |||
font-family: Georgia, serif; | font-family: Georgia, serif; | ||
font-size: clamp(28px, 4vw, 42px); | font-size: clamp(28px, 4vw, 42px); | ||
| Line 90: | Line 90: | ||
text-decoration:underline; | text-decoration:underline; | ||
cursor:pointer; | cursor:pointer; | ||
} | } | ||
| Line 118: | Line 114: | ||
.eko-card{ | .eko-card{ | ||
width:100%; | |||
position:relative; | position:relative; | ||
background:#fff; | background:#fff; | ||
| Line 135: | Line 132: | ||
.eko-card .mw-file-element{ | .eko-card .mw-file-element{ | ||
width:100%; | width:100%; | ||
height: | height:260px; | ||
object-fit:cover; | object-fit:cover; | ||
display:block; | display:block; | ||
| Line 203: | Line 200: | ||
.hero { | .hero { | ||
min-height: | min-height: 700px; | ||
background-image: | background-image: | ||
linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), | linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), | ||
| Line 297: | Line 294: | ||
/* Content sections on homepage */ | /* Content sections on homepage */ | ||
.homepage-section { | .homepage-section{ | ||
max-width:1280px; | |||
max-width: | margin:0 auto; | ||
margin: 0 auto; | padding:80px 40px; | ||
background:#f8f6f1; | |||
} | } | ||
{ | |||
background: white; | background: white; | ||
padding: 80px 20px; | padding: 80px 20px; | ||
| Line 310: | Line 308: | ||
.homepage-grid{ | .homepage-grid{ | ||
display:grid; | display:grid; | ||
grid-template-columns:repeat(3,1fr); | grid-template-columns:repeat(3,minmax(0,1fr)); | ||
gap:28px; | gap:28px; | ||
margin-top:35px; | margin-top:35px; | ||
| Line 328: | Line 326: | ||
/* Feature row */ | /* Feature row */ | ||
{ | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | ||
| Line 335: | Line 333: | ||
} | } | ||
{ | |||
font-size: 48px; | font-size: 48px; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
| Line 341: | Line 339: | ||
} | } | ||
{ | |||
font-family: Georgia, serif; | font-family: Georgia, serif; | ||
font-size: 24px; | font-size: 24px; | ||
| Line 352: | Line 350: | ||
========================================== */ | ========================================== */ | ||
.mw-parser-output { | .page-Main_Page .mw-parser-output{ | ||
padding: 0 20px; | padding:0 !important; | ||
} | |||
body:not(.page-Main_Page) .mw-parser-output{ | |||
padding:0 20px; | |||
} | } | ||
| Line 368: | Line 370: | ||
.hero .home-title { | .hero .home-title { | ||
font-size: clamp( | font-size:clamp(54px,6vw,78px); | ||
} | } | ||
| Line 378: | Line 380: | ||
.homepage-section, | .homepage-section, | ||
{ | |||
padding: 50px 20px; | padding: 50px 20px; | ||
} | } | ||
.homepage-grid, | .homepage-grid, | ||
{ | |||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
gap: 20px; | gap: 20px; | ||
| Line 504: | Line 506: | ||
.eko-content p{ | .eko-content p{ | ||
font-size: | font-size:clamp(18px,2vw,24px); | ||
max-width:760px; | |||
margin:auto; | |||
line-height:1.6; | line-height:1.6; | ||
margin-bottom:35px; | margin-bottom:35px; | ||
Revision as of 08:09, 9 July 2026
/* ==========================================================
EKOLOGOS WIKI DESIGN SYSTEM
Clean & Consolidated Stylesheet
========================================================== */
/* ==========================================
1. GLOBAL STYLES
========================================== */
body {
background: #f8f6f1;
color: #2f2f2f;
font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Full-width utility */
body .container,
body .container-fluid,
.col-cmln,
.col-12,
#mw-content-text,
.mw-parser-output {
max-width: 100% !important;
width: 100% !important;
}
/* ==========================================
2. TYPOGRAPHY
========================================== */
{
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(36px, 6vw, 68px);
line-height: 1.2;
color: #23492f;
font-weight: 600;
margin-bottom: 20px;
}
{
font-size: clamp(18px, 2.5vw, 24px);
line-height: 1.6;
color: #555;
max-width: 900px;
margin: 0 auto;
}
{
font-family: Georgia, serif;
font-size: clamp(28px, 4vw, 42px);
color: #23492f;
margin-bottom: 20px;
}
/* ==========================================
3. NAVBAR & LOGO
========================================== */
.navbar-brand {
padding: 5px !important;
min-height: 70px;
display: flex !important;
align-items: center !important;
}
.section-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:35px;
}
.section-title-left{
display:flex;
align-items:center;
gap:10px;
font-family:Georgia, serif;
font-size:34px;
color:#23492f;
font-weight:600;
}
.section-title-right{
color:#295536;
font-size:18px;
font-weight:600;
}
.section-title-right:hover{
text-decoration:underline;
cursor:pointer;
}
@media(max-width:768px){
.section-header{
flex-direction:column;
gap:12px;
}
}
.navbar-brand img,
.navbar-brand .mw-wiki-logo,
#p-logo img {
height: 60px;
width: auto;
max-height: 60px;
max-width: 250px;
}
/* ==========================================
4. CARDS
========================================== */
.eko-card{
width:100%;
position:relative;
background:#fff;
border-radius:18px;
overflow:hidden;
box-shadow:0 8px 24px rgba(0,0,0,.08);
transition:all .3s ease;
text-decoration:none;
}
.eko-card:hover{
transform:translateY(-6px);
box-shadow:0 18px 40px rgba(0,0,0,.15);
}
.eko-card img,
.eko-card .mw-file-element{
width:100%;
height:260px;
object-fit:cover;
display:block;
transition:transform .4s ease;
}
.eko-card:hover img,
.eko-card:hover .mw-file-element{
transform:scale(1.08);
}
.eko-card-body{
padding:18px;
}
.eko-card-title{
font-family:Georgia, serif;
font-size:24px;
color:#23492f;
margin:0;
text-align:center;
}
.eko-card-text{
display:none !important;
}
/* ==========================================
5. BUTTONS
========================================== */
.eko-button {
display: inline-block;
background: #295536;
color: white;
padding: 14px 32px;
border-radius: 40px;
text-decoration: none;
font-weight: 600;
font-size: 16px;
transition: background 0.2s ease, transform 0.2s ease;
border: none;
cursor: pointer;
}
.eko-button:hover {
background: #1f4129;
color: white;
text-decoration: none;
transform: translateY(-2px);
}
.eko-button-outline {
background: transparent;
color: white;
border: 2px solid white;
}
.eko-button-outline:hover {
background: white;
color: #23492f;
}
/* ==========================================
6. HERO SECTION
========================================== */
.hero {
min-height: 700px;
background-image:
linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
url("https://localhost/wiki/index.php/File:Hero.jpg");
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 120px 20px 80px;
position: relative;
}
.hero-overlay {
max-width: 900px;
width: 100%;
}
.hero .home-title {
color: white;
margin-bottom: 20px;
}
.hero .home-subtitle {
color: rgba(255, 255, 255, 0.9);
margin-bottom: 40px;
}
/* Hero search bar */
.hero-search {
margin-top: 40px;
}
.hero-search input {
width: 100%;
max-width: 600px;
padding: 18px 24px;
border-radius: 50px;
border: none;
font-size: 18px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
outline: none;
transition: box-shadow 0.3s ease;
}
.hero-search input:focus {
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
/* ==========================================
7. HOMEPAGE (MAIN PAGE) SPECIFICS
========================================== */
/* Full-width layout on Main Page */
.page-Main_Page .container,
.page-Main_Page .container-fluid,
.page-Main_Page .mw-body,
.page-Main_Page #content,
.page-Main_Page #mw-content-text {
max-width: 100% !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
.page-Main_Page .mw-parser-output {
margin: 0 !important;
padding: 0 !important;
}
/* Hide unwanted elements on Main Page */
.page-Main_Page #firstHeading,
.page-Main_Page #contentSub,
.page-Main_Page .mw-indicators,
.page-Main_Page .page-tools,
.page-Main_Page #toc {
display: none !important;
}
/* Transparent navbar overlay on Main Page */
.page-Main_Page nav.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;
}
/* Content sections on homepage */
.homepage-section{
max-width:1280px;
margin:0 auto;
padding:80px 40px;
background:#f8f6f1;
}
{
background: white;
padding: 80px 20px;
}
.homepage-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:28px;
margin-top:35px;
}
@media (max-width:1000px){
.homepage-grid{
grid-template-columns:repeat(2,1fr);
}
}
@media (max-width:650px){
.homepage-grid{
grid-template-columns:1fr;
}
}
/* Feature row */
{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
text-align: center;
}
{
font-size: 48px;
margin-bottom: 20px;
color: #295536;
}
{
font-family: Georgia, serif;
font-size: 24px;
color: #23492f;
margin-bottom: 10px;
}
/* ==========================================
8. CONTENT PAGES (non-homepage)
========================================== */
.page-Main_Page .mw-parser-output{
padding:0 !important;
}
body:not(.page-Main_Page) .mw-parser-output{
padding:0 20px;
}
/* ==========================================
9. RESPONSIVE DESIGN
========================================== */
/* Tablets */
@media (max-width: 768px) {
.hero {
min-height: 80vh;
padding: 100px 20px 60px;
}
.hero .home-title {
font-size:clamp(54px,6vw,78px);
}
.hero-search input {
max-width: 100%;
padding: 16px 20px;
font-size: 16px;
}
.homepage-section,
{
padding: 50px 20px;
}
.homepage-grid,
{
grid-template-columns: 1fr;
gap: 20px;
}
.navbar-brand img,
.navbar-brand .mw-wiki-logo {
height: 50px;
max-height: 50px;
}
.section-title {
text-align: center;
}
}
/* Mobile */
@media (max-width: 480px) {
.hero {
min-height: 70vh;
padding: 80px 15px 40px;
}
.eko-button {
padding: 12px 24px;
font-size: 14px;
width: 100%;
text-align: center;
}
.eko-card img {
height: 160px;
}
.eko-card-body {
padding: 18px;
}
}
/* ==========================================
10. ANIMATIONS
========================================== */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-in {
animation: fadeInUp 0.6s ease forwards;
}
/* Stagger animation delays for cards */
.eko-card:nth-child(1) { animation-delay: 0.1s; }
.eko-card:nth-child(2) { animation-delay: 0.2s; }
.eko-card:nth-child(3) { animation-delay: 0.3s; }
.eko-card:nth-child(4) { animation-delay: 0.4s; }
/* ==========================================
11. UTILITY CLASSES
========================================== */
.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; }
/* ===========================
EKOLOGOS HOMEPAGE
=========================== */
.eko-hero {
position: relative;
width: 100%;
height: 700px;
background-image:
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;
color: #fff;
}
.eko-overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.35);
}
.eko-content{
position:relative;
z-index:2;
max-width:900px;
padding:20px;
}
.eko-content h1{
font-family: Georgia, "Times New Roman", serif;
font-size:72px;
font-weight:600;
line-height:1.1;
margin-bottom:25px;
color:#ffffff;
}
.eko-content p{
font-size:clamp(18px,2vw,24px);
max-width:760px;
margin:auto;
line-height:1.6;
margin-bottom:35px;
color:rgba(255,255,255,.92);
}
.eko-search{
width:700px;
max-width:90%;
padding:18px 28px;
border-radius:50px;
border:none;
font-size:18px;
}
/* ==========================================
HERO SEARCH BAR
========================================== */
.hero-search {
margin-top: 45px;
display: flex;
justify-content: center;
}
.hero-search form {
width: 100%;
max-width: 700px;
}
.hero-search-box {
display: flex;
align-items: center;
background: #fff;
border-radius: 60px;
padding: 8px 10px 8px 25px;
box-shadow: 0 12px 35px rgba(0,0,0,.25);
}
.hero-search-box input {
flex: 1;
border: none;
outline: none;
font-size: 18px;
padding: 14px 10px;
background: transparent;
}
.hero-search-box button {
width: 52px;
height: 52px;
border: none;
border-radius: 50%;
background: #295536;
color: white;
font-size: 20px;
cursor: pointer;
transition: .2s;
}
.hero-search-box button:hover {
background: #1f4129;
}