MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ============================================ | /* ============================================ | ||
WIKIVERSA — Custom Theme | |||
Paste this entire file | Paste this entire file into: MediaWiki:Common.css | ||
============================================ */ | ============================================ */ | ||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@ | @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap'); | ||
/* | |||
/* ============================================ | |||
#mw-panel { | LOGO SECTION | ||
============================================ */ | |||
} | #mw-panel { padding-top: 0 !important; } | ||
#p-logo { | #p-logo { | ||
| Line 21: | Line 20: | ||
display: block !important; | display: block !important; | ||
height: 80px !important; | height: 80px !important; | ||
background-image: url("/images/Logo.png") !important; | background-image: url("/images/Logo.png") !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
background-position: center center !important; | background-position: center center !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | } | ||
#p-logo, | #p-logo, | ||
#p-logo a, | #p-logo a, | ||
#p-logo .mw-wiki-logo { | #p-logo .mw-wiki-logo { | ||
margin-left: | margin-left: 0 !important; | ||
padding-left: 0 !important; | padding-left: 0 !important; | ||
} | } | ||
/* ============================================ | |||
DESIGN TOKENS | |||
============================================ */ | |||
:root { | |||
--wv-ink: #14213D; | |||
--wv-ink-soft: #33405e; | |||
--wv-paper: #F1F5F9; | |||
--wv-white: #FFFFFF; | |||
--wv-teal: #0F766E; | |||
--wv-gold: #B8902E; | |||
--wv-line: #DAD2C0; | |||
--wv-slate: #5B6472; | |||
--wv-font-display: 'Fraunces', serif; | |||
--wv-font-body: 'Inter', sans-serif; | |||
--wv-font-mono: 'IBM Plex Mono', monospace; | |||
} | |||
/* ========================= | /* ============================================ | ||
BASE / BODY (ONLY THIS SECTION CHANGED) | |||
========================= | ============================================ */ | ||
body, | body, | ||
.mw-body, | .mw-body, | ||
.vector-body { | .vector-body { | ||
font-family: | font-family: var(--wv-font-body) !important; | ||
font-size: 16px; | font-size: 16px; | ||
line-height: 1. | line-height: 1.75; | ||
color: # | color: var(--wv-ink); | ||
background: | |||
/* Modern 3D Ambient Light Background */ | |||
background-color: #f1f5f9 !important; | |||
background-image: | |||
radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.08) 0px, transparent 50%), | |||
radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.06) 0px, transparent 50%), | |||
radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%) !important; | |||
background-attachment: fixed !important; | |||
} | } | ||
.mw-parser-output { | |||
max-width: 100% !important; | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | |||
h1, | h1, .firstHeading { | ||
.firstHeading { | font-family: var(--wv-font-display) !important; | ||
font-family: | font-weight: 600; | ||
font-size: 2. | font-size: 2.5rem; | ||
color: var(--wv-ink); | |||
letter-spacing: -0.5px; | |||
} | } | ||
h2 { | h2 { | ||
font-family: | font-family: var(--wv-font-display) !important; | ||
font-weight: 600; | |||
font-size: 1.6rem; | font-size: 1.6rem; | ||
color: var(--wv-ink); | |||
color: | border-bottom: none; | ||
border-bottom: | margin-top: 40px; | ||
padding-bottom: 0; | |||
} | } | ||
h3 { | h3 { | ||
font-family: | font-family: var(--wv-font-body) !important; | ||
font-weight: 600; | font-weight: 600; | ||
color: | font-size: 1.05rem; | ||
color: var(--wv-ink); | |||
text-transform: uppercase; | |||
letter-spacing: 0.5px; | |||
} | |||
a { color: var(--wv-teal); text-decoration: none; } | |||
a:hover { color: var(--wv-ink); text-decoration: underline; } | |||
/* ============================================ | |||
HERO — "Registry Header" | |||
============================================ */ | |||
.wv-hero { | |||
background: var(--wv-white); | |||
border: 1px solid var(--wv-line); | |||
border-left: 4px solid var(--wv-teal); | |||
padding: 48px 48px 40px; | |||
margin-bottom: 30px; | |||
width: 100%; | |||
box-sizing: border-box; | |||
position: relative; | |||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); | |||
} | |||
.wv-hero .eyebrow { | |||
font-family: var(--wv-font-mono); | |||
font-size: 12px; | |||
letter-spacing: 2px; | |||
text-transform: uppercase; | |||
color: var(--wv-teal); | |||
display: block; | |||
margin-bottom: 14px; | |||
} | } | ||
.wv-hero h1 { | |||
font-size: 3.2rem; | |||
margin: 0 0 12px; | |||
} | |||
.wv-hero .tag { | |||
color: # | font-family: var(--wv-font-body); | ||
font-size: 17px; | |||
color: var(--wv-ink-soft); | |||
max-width: 640px; | |||
} | |||
.wv-hero .seal { | |||
position: absolute; | |||
top: 40px; | |||
right: 48px; | |||
width: 108px; | |||
height: 108px; | |||
transform: rotate(-8deg); | |||
opacity: 0.9; | |||
} | |||
/* ============================================ | |||
SECTIONS — "Dossier Entries" | |||
============================================ */ | |||
.wv-section { | |||
background: transparent; | |||
border-top: 1px solid var(--wv-line); | |||
padding: 32px 0; | |||
margin-bottom: 0; | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | |||
.wv-section .wv-index { | |||
font-family: var(--wv-font-mono); | |||
font-size: 12px; | |||
letter-spacing: 1.5px; | |||
color: var(--wv-gold); | |||
display: block; | |||
margin-bottom: 6px; | |||
} | |||
.wv-section h2 { | |||
margin: 0 0 18px; | |||
} | |||
.wv-section p { | |||
color: var(--wv-ink-soft); | |||
max-width: 760px; | |||
} | |||
/* ============================================ | |||
INDEX CARDS | |||
============================================ */ | |||
.wv-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0; | |||
width: 100%; | |||
border: 1px solid var(--wv-line); | |||
margin-bottom: 0; | |||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); | |||
} | |||
.wv-card { | |||
flex: 1 1 280px; | |||
background: var(--wv-white); | |||
border-right: 1px solid var(--wv-line); | |||
padding: 28px; | |||
position: relative; | |||
} | |||
.wv-card:last-child { border-right: none; } | |||
.wv-card .tag-no { | |||
font-family: var(--wv-font-mono); | |||
font-size: 11px; | |||
color: var(--wv-slate); | |||
position: absolute; | |||
top: 14px; | |||
right: 18px; | |||
} | |||
.wv-card h3 { | |||
margin: 0 0 14px; | |||
padding-right: 30px; | |||
} | |||
.wv-card ul { | |||
margin: 0; | |||
padding-left: 18px; | |||
color: var(--wv-ink-soft); | |||
font-size: 15px; | |||
line-height: 1.8; | |||
} | |||
/* ============================================ | |||
CTA STRIP | |||
============================================ */ | |||
.wv-cta { | |||
background: var(--wv-ink); | |||
color: var(--wv-white); | |||
padding: 44px 48px; | |||
text-align: left; | |||
margin-bottom: 0; | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | |||
.wv-cta h2 { color: var(--wv-white); margin: 0 0 8px; } | |||
.wv-cta p { color: #c7cede; margin-bottom: 22px; font-size: 16px; } | |||
.wv-btn { | |||
display: inline-block; | |||
background: var(--wv-teal); | |||
color: #fff; | |||
padding: 12px 26px; | |||
border-radius: 2px; | |||
font-weight: 500; | |||
font-size: 14px; | |||
margin: 4px 8px 4px 0; | |||
text-decoration: none; | text-decoration: none; | ||
letter-spacing: 0.3px; | |||
} | } | ||
.wv-btn:hover { background: #0d5f58; text-decoration: none; } | |||
.wv-btn-outline { | |||
color: | display: inline-block; | ||
text-decoration: | background: transparent; | ||
color: var(--wv-white); | |||
border: 1px solid rgba(255,255,255,0.4); | |||
padding: 12px 26px; | |||
border-radius: 2px; | |||
font-weight: 500; | |||
font-size: 14px; | |||
margin: 4px 0; | |||
text-decoration: none; | |||
} | } | ||
.wv-btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; } | |||
/* ===== | /* ============================================ | ||
ARTICLE / CATEGORY LISTS | |||
============================================ */ | |||
.wv-list-col { | |||
border: 1px solid var(--wv-line); | |||
background: var(--wv-white); | |||
} | |||
. | .wv-list-item { | ||
padding: 14px 20px; | |||
border-bottom: 1px solid var(--wv-line); | |||
font-size: 15px; | |||
} | } | ||
.wv-list-item:last-child { border-bottom: none; } | |||
.wv-cat-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
border: 1px solid var(--wv-line); | |||
} | |||
.wv-cat-grid a { | |||
flex: 1 1 200px; | |||
padding: 16px 20px; | |||
border-right: 1px solid var(--wv-line); | |||
border-bottom: 1px solid var(--wv-line); | |||
color: var(--wv-ink); | |||
font-weight: 500; | |||
font-size: 14px; | |||
} | |||
.wv-cat-grid a:hover { background: #f2eee3; text-decoration: none; } | |||
/* ============================================ | |||
INFOBOX | |||
============================================ */ | |||
.infobox.biography.vcard, | |||
.wikiverse-infobox { | .wikiverse-infobox { | ||
float: right; | float: right; | ||
width: | clear: right; | ||
margin: 0 0 | width: 300px; | ||
border: 1px solid | margin: 0 0 24px 24px; | ||
border: 1px solid var(--wv-line); | |||
background: var(--wv-white); | |||
font-size: 14px; | |||
border- | line-height: 1.6; | ||
box-shadow: | border-radius: 0; | ||
box-shadow: none; | |||
} | } | ||
. | .infobox.biography.vcard th[colspan="2"] { | ||
background: | background: var(--wv-ink); | ||
color: # | color: #fff; | ||
font-family: var(--wv-font-display); | |||
font-size: 19px; | |||
font-weight: 600; | font-weight: 600; | ||
text-align: left; | |||
padding: 16px 18px; | |||
} | } | ||
.infobox.biography.vcard th, | |||
.infobox.biography.vcard td, | |||
.wikiverse-infobox th, | |||
.wikiverse-infobox td { | .wikiverse-infobox td { | ||
padding: | padding: 10px 14px; | ||
border: 1px solid | border-bottom: 1px solid var(--wv-line); | ||
background: # | border-left: none; | ||
border-right: none; | |||
border-top: none; | |||
vertical-align: top; | |||
} | |||
.infobox.biography.vcard th, | |||
.wikiverse-infobox th { | |||
width: 38%; | |||
background: #f2efe6; | |||
color: var(--wv-ink-soft); | |||
font-weight: 600; | |||
text-align: left; | |||
font-size: 13px; | |||
} | } | ||
.infobox.biography.vcard img, | |||
.wikiverse-infobox img { | .wikiverse-infobox img { | ||
border-radius: | max-width: 100%; | ||
border-radius: 0; | |||
border: none; | |||
} | } | ||
.infobox.biography.vcard .verified { | |||
width: 16px; | |||
. | vertical-align: middle; | ||
margin-left: 4px; | |||
} | } | ||
/* ===== | /* ============================================ | ||
TABLES | |||
============================================ */ | |||
.wikitable { | .wikitable { | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
border: 1px solid | border: 1px solid var(--wv-line); | ||
margin: 15px | margin: 20px 0; | ||
font-size: 15px; | |||
} | } | ||
.wikitable th { | .wikitable th { | ||
background: # | background: #f2efe6; | ||
color: | color: var(--wv-ink); | ||
font-weight: 600; | font-weight: 600; | ||
padding: | padding: 12px; | ||
border: 1px solid | border: 1px solid var(--wv-line); | ||
} | |||
.wikitable td { padding: 12px; border: 1px solid var(--wv-line); } | |||
/* ============================================ | |||
TOC / CATLINKS | |||
============================================ */ | |||
.toc { | |||
background: var(--wv-white); | |||
border: 1px solid var(--wv-line); | |||
padding: 15px 20px; | |||
display: inline-block; | |||
min-width: 280px; | |||
} | } | ||
. | .catlinks { | ||
background: transparent; | |||
border: 1px solid | border-top: 1px solid var(--wv-line); | ||
padding: 15px 0; | |||
margin-top: 40px; | |||
width: 100%; | |||
box-sizing: border-box; | |||
} | } | ||
/* ===== | pre, code { border-radius: 4px; padding: 12px; } | ||
.footer__description, | |||
.footer__tagline { display: none !important; } | |||
/* ============================================ | |||
MOBILE | |||
============================================ */ | |||
@media (max-width: 768px) { | |||
.infobox.biography.vcard, | |||
.wikiverse-infobox { float: none; width: 100%; margin: 20px 0; } | |||
body, .mw-body, .vector-body { font-size: 15px; } | |||
h1, .firstHeading { font-size: 1.9rem; } | |||
h2 { font-size: 1.35rem; } | |||
. | .wv-hero { padding: 32px 24px; } | ||
.wv-hero h1 { font-size: 2.1rem; } | |||
.wv-hero .seal { display: none; } | |||
.wv-grid, .wv-cat-grid { flex-direction: column; } | |||
border- | .wv-card { border-right: none; border-bottom: 1px solid var(--wv-line); } | ||
.wv-cat-grid a { border-right: none; } | |||
.wv-cta { padding: 32px 24px; } | |||
} | } | ||
/* ===== | /* Hide Discussion */ | ||
a[href*="action=edit§ion=new"], | |||
.vector-talk-link, | |||
#ca-talk { | |||
display: none !important; | |||
} | |||
/* Hide 3-dot menu | |||
.citizen-dropdown-details{ | |||
display: none !important; | |||
}*/ | |||
/* ============================================================ | |||
WIKIVERSA — HOMEPAGE DYNAMIC BOXES (ADD-ON ONLY) | |||
Ye poora block apne maujuda MediaWiki:Common.css ke SABSE | |||
NEECHE paste karo. Upar wala poora CSS jaisa hai waisa hi | |||
rehne do — kuch bhi delete/edit karne ki zaroorat nahi. | |||
============================================================ */ | |||
. | /* ---- shared box shell (Featured / News / OTD / Newest / Browse) ---- */ | ||
background: | .wv-mp-box { | ||
border: 1px solid | background: var(--wv-white); | ||
border- | border: 1px solid var(--wv-line); | ||
margin-bottom: 20px; | |||
box-sizing: border-box; | |||
box-shadow: 0 6px 18px rgba(0,0,0,0.03); | |||
} | } | ||
.wv-mp-box-header { | |||
padding: 12px 18px; | |||
font-family: var(--wv-font-display); | |||
font-weight: 600; | |||
font-size: 17px; | |||
color: var(--wv-ink); | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
} | |||
. | .wv-mp-box-header .wv-view-all { | ||
font-family: var(--wv-font-body); | |||
font-weight: 500; | |||
font-size: 13px; | |||
text-transform: none; | |||
letter-spacing: 0; | |||
} | } | ||
/* | .wv-mp-box-body { padding: 18px; } | ||
/* header color variants, matched to your screenshots */ | |||
.wv-mp-header-green { background: #d9f2e0; } | |||
.wv-mp-header-blue { background: #d7e6f7; } | |||
.wv-mp-header-pink { background: #f6dde6; } | |||
.wv-mp-header-grey { background: #ebebeb; } | |||
.wv-mp-header-purple { background: #e3e0f7; } | |||
/* ---- two-column top row: Featured (left) / News + OTD (right) ---- */ | |||
.wv-mp-toprow { | |||
display: flex; | |||
gap: 20px; | |||
width: 100%; | |||
align-items: flex-start; | |||
} | } | ||
.wv-mp-toprow-left { flex: 2 1 0; min-width: 0; } | |||
.wv-mp-toprow-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; } | |||
/* | /* ---- featured article ---- */ | ||
.wv-mp-featured { display: flex; gap: 18px; } | |||
.wv-mp-featured img { | |||
width: 120px; | |||
height: 120px; | |||
object-fit: cover; | |||
flex-shrink: 0; | |||
} | |||
.wv-mp-featured .wv-mp-featured-text { font-size: 15px; color: var(--wv-ink-soft); line-height: 1.6; } | |||
.wv-mp-featured .wv-mp-featured-text a { font-weight: 600; } | |||
.wv-mp-featured-more { display: block; text-align: right; margin-top: 10px; font-style: italic; font-size: 14px; } | |||
/* ---- in the news / on this day lists ---- */ | |||
.wv-mp-news-list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--wv-ink-soft); line-height: 1.9; } | |||
.wv-mp-news-list li { margin-bottom: 4px; } | |||
.wv-mp-empty { color: var(--wv-slate); font-size: 14px; font-style: italic; } | |||
. | /* ---- newest additions / category card grids ---- */ | ||
.wv-mp-card-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 16px; | |||
} | |||
.wv-mp-card { | |||
flex: 1 1 220px; | |||
max-width: 260px; | |||
border: 1px solid var(--wv-line); | |||
background: var(--wv-white); | |||
} | |||
.wv-mp-card img { | |||
width: 100%; | |||
height: 140px; | |||
object-fit: cover; | |||
display: block; | |||
} | |||
.wv-mp-card-body { padding: 14px 16px; } | |||
.wv-mp-card-title { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; } | |||
.wv-mp-card-cat { font-style: italic; color: var(--wv-slate); font-size: 13px; display: block; margin-bottom: 6px; } | |||
.wv-mp-card-snippet { font-size: 13.5px; color: var(--wv-ink-soft); line-height: 1.5; } | |||
/* ---- browse by category: repeated sub-sections ---- */ | |||
.wv-mp-catsection { margin-bottom: 26px; } | |||
. | .wv-mp-catsection-title { | ||
display: flex; | |||
} | justify-content: space-between; | ||
align-items: baseline; | |||
border-bottom: 1px solid var(--wv-line); | |||
padding-bottom: 6px; | |||
margin-bottom: 14px; | |||
} | |||
.wv-mp-catsection-title h3 { | |||
margin: 0; | |||
text-transform: none; | |||
letter-spacing: 0; | |||
font-family: var(--wv-font-display); | |||
font-size: 18px; | |||
font-weight: 600; | |||
} | |||
@media (max-width: 768px) { | |||
.wv-mp-toprow { flex-direction: column; } | |||
} | .wv-mp-featured { flex-direction: column; } | ||
.wv-mp-featured img { width: 100%; height: 180px; } | |||
.wv-mp-card { flex: 1 1 100%; max-width: 100%; } | |||
} | } | ||
Latest revision as of 21:50, 28 July 2026
/* ============================================
WIKIVERSA — Custom Theme
Paste this entire file into: MediaWiki:Common.css
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');
/* ============================================
LOGO SECTION
============================================ */
#mw-panel { padding-top: 0 !important; }
#p-logo {
margin: 0 !important;
padding: 0 !important;
width: 300px !important;
height: 80px !important;
}
#p-logo a {
display: block !important;
height: 80px !important;
background-image: url("/images/Logo.png") !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
margin: 0 !important;
padding: 0 !important;
}
#p-logo,
#p-logo a,
#p-logo .mw-wiki-logo {
margin-left: 0 !important;
padding-left: 0 !important;
}
/* ============================================
DESIGN TOKENS
============================================ */
:root {
--wv-ink: #14213D;
--wv-ink-soft: #33405e;
--wv-paper: #F1F5F9;
--wv-white: #FFFFFF;
--wv-teal: #0F766E;
--wv-gold: #B8902E;
--wv-line: #DAD2C0;
--wv-slate: #5B6472;
--wv-font-display: 'Fraunces', serif;
--wv-font-body: 'Inter', sans-serif;
--wv-font-mono: 'IBM Plex Mono', monospace;
}
/* ============================================
BASE / BODY (ONLY THIS SECTION CHANGED)
============================================ */
body,
.mw-body,
.vector-body {
font-family: var(--wv-font-body) !important;
font-size: 16px;
line-height: 1.75;
color: var(--wv-ink);
/* Modern 3D Ambient Light Background */
background-color: #f1f5f9 !important;
background-image:
radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.06) 0px, transparent 50%),
radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%) !important;
background-attachment: fixed !important;
}
.mw-parser-output {
max-width: 100% !important;
width: 100%;
box-sizing: border-box;
}
h1, .firstHeading {
font-family: var(--wv-font-display) !important;
font-weight: 600;
font-size: 2.5rem;
color: var(--wv-ink);
letter-spacing: -0.5px;
}
h2 {
font-family: var(--wv-font-display) !important;
font-weight: 600;
font-size: 1.6rem;
color: var(--wv-ink);
border-bottom: none;
margin-top: 40px;
padding-bottom: 0;
}
h3 {
font-family: var(--wv-font-body) !important;
font-weight: 600;
font-size: 1.05rem;
color: var(--wv-ink);
text-transform: uppercase;
letter-spacing: 0.5px;
}
a { color: var(--wv-teal); text-decoration: none; }
a:hover { color: var(--wv-ink); text-decoration: underline; }
/* ============================================
HERO — "Registry Header"
============================================ */
.wv-hero {
background: var(--wv-white);
border: 1px solid var(--wv-line);
border-left: 4px solid var(--wv-teal);
padding: 48px 48px 40px;
margin-bottom: 30px;
width: 100%;
box-sizing: border-box;
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.wv-hero .eyebrow {
font-family: var(--wv-font-mono);
font-size: 12px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--wv-teal);
display: block;
margin-bottom: 14px;
}
.wv-hero h1 {
font-size: 3.2rem;
margin: 0 0 12px;
}
.wv-hero .tag {
font-family: var(--wv-font-body);
font-size: 17px;
color: var(--wv-ink-soft);
max-width: 640px;
}
.wv-hero .seal {
position: absolute;
top: 40px;
right: 48px;
width: 108px;
height: 108px;
transform: rotate(-8deg);
opacity: 0.9;
}
/* ============================================
SECTIONS — "Dossier Entries"
============================================ */
.wv-section {
background: transparent;
border-top: 1px solid var(--wv-line);
padding: 32px 0;
margin-bottom: 0;
width: 100%;
box-sizing: border-box;
}
.wv-section .wv-index {
font-family: var(--wv-font-mono);
font-size: 12px;
letter-spacing: 1.5px;
color: var(--wv-gold);
display: block;
margin-bottom: 6px;
}
.wv-section h2 {
margin: 0 0 18px;
}
.wv-section p {
color: var(--wv-ink-soft);
max-width: 760px;
}
/* ============================================
INDEX CARDS
============================================ */
.wv-grid {
display: flex;
flex-wrap: wrap;
gap: 0;
width: 100%;
border: 1px solid var(--wv-line);
margin-bottom: 0;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.wv-card {
flex: 1 1 280px;
background: var(--wv-white);
border-right: 1px solid var(--wv-line);
padding: 28px;
position: relative;
}
.wv-card:last-child { border-right: none; }
.wv-card .tag-no {
font-family: var(--wv-font-mono);
font-size: 11px;
color: var(--wv-slate);
position: absolute;
top: 14px;
right: 18px;
}
.wv-card h3 {
margin: 0 0 14px;
padding-right: 30px;
}
.wv-card ul {
margin: 0;
padding-left: 18px;
color: var(--wv-ink-soft);
font-size: 15px;
line-height: 1.8;
}
/* ============================================
CTA STRIP
============================================ */
.wv-cta {
background: var(--wv-ink);
color: var(--wv-white);
padding: 44px 48px;
text-align: left;
margin-bottom: 0;
width: 100%;
box-sizing: border-box;
}
.wv-cta h2 { color: var(--wv-white); margin: 0 0 8px; }
.wv-cta p { color: #c7cede; margin-bottom: 22px; font-size: 16px; }
.wv-btn {
display: inline-block;
background: var(--wv-teal);
color: #fff;
padding: 12px 26px;
border-radius: 2px;
font-weight: 500;
font-size: 14px;
margin: 4px 8px 4px 0;
text-decoration: none;
letter-spacing: 0.3px;
}
.wv-btn:hover { background: #0d5f58; text-decoration: none; }
.wv-btn-outline {
display: inline-block;
background: transparent;
color: var(--wv-white);
border: 1px solid rgba(255,255,255,0.4);
padding: 12px 26px;
border-radius: 2px;
font-weight: 500;
font-size: 14px;
margin: 4px 0;
text-decoration: none;
}
.wv-btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
/* ============================================
ARTICLE / CATEGORY LISTS
============================================ */
.wv-list-col {
border: 1px solid var(--wv-line);
background: var(--wv-white);
}
.wv-list-item {
padding: 14px 20px;
border-bottom: 1px solid var(--wv-line);
font-size: 15px;
}
.wv-list-item:last-child { border-bottom: none; }
.wv-cat-grid {
display: flex;
flex-wrap: wrap;
border: 1px solid var(--wv-line);
}
.wv-cat-grid a {
flex: 1 1 200px;
padding: 16px 20px;
border-right: 1px solid var(--wv-line);
border-bottom: 1px solid var(--wv-line);
color: var(--wv-ink);
font-weight: 500;
font-size: 14px;
}
.wv-cat-grid a:hover { background: #f2eee3; text-decoration: none; }
/* ============================================
INFOBOX
============================================ */
.infobox.biography.vcard,
.wikiverse-infobox {
float: right;
clear: right;
width: 300px;
margin: 0 0 24px 24px;
border: 1px solid var(--wv-line);
background: var(--wv-white);
font-size: 14px;
line-height: 1.6;
border-radius: 0;
box-shadow: none;
}
.infobox.biography.vcard th[colspan="2"] {
background: var(--wv-ink);
color: #fff;
font-family: var(--wv-font-display);
font-size: 19px;
font-weight: 600;
text-align: left;
padding: 16px 18px;
}
.infobox.biography.vcard th,
.infobox.biography.vcard td,
.wikiverse-infobox th,
.wikiverse-infobox td {
padding: 10px 14px;
border-bottom: 1px solid var(--wv-line);
border-left: none;
border-right: none;
border-top: none;
vertical-align: top;
}
.infobox.biography.vcard th,
.wikiverse-infobox th {
width: 38%;
background: #f2efe6;
color: var(--wv-ink-soft);
font-weight: 600;
text-align: left;
font-size: 13px;
}
.infobox.biography.vcard img,
.wikiverse-infobox img {
max-width: 100%;
border-radius: 0;
border: none;
}
.infobox.biography.vcard .verified {
width: 16px;
vertical-align: middle;
margin-left: 4px;
}
/* ============================================
TABLES
============================================ */
.wikitable {
width: 100%;
border-collapse: collapse;
border: 1px solid var(--wv-line);
margin: 20px 0;
font-size: 15px;
}
.wikitable th {
background: #f2efe6;
color: var(--wv-ink);
font-weight: 600;
padding: 12px;
border: 1px solid var(--wv-line);
}
.wikitable td { padding: 12px; border: 1px solid var(--wv-line); }
/* ============================================
TOC / CATLINKS
============================================ */
.toc {
background: var(--wv-white);
border: 1px solid var(--wv-line);
padding: 15px 20px;
display: inline-block;
min-width: 280px;
}
.catlinks {
background: transparent;
border-top: 1px solid var(--wv-line);
padding: 15px 0;
margin-top: 40px;
width: 100%;
box-sizing: border-box;
}
pre, code { border-radius: 4px; padding: 12px; }
.footer__description,
.footer__tagline { display: none !important; }
/* ============================================
MOBILE
============================================ */
@media (max-width: 768px) {
.infobox.biography.vcard,
.wikiverse-infobox { float: none; width: 100%; margin: 20px 0; }
body, .mw-body, .vector-body { font-size: 15px; }
h1, .firstHeading { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
.wv-hero { padding: 32px 24px; }
.wv-hero h1 { font-size: 2.1rem; }
.wv-hero .seal { display: none; }
.wv-grid, .wv-cat-grid { flex-direction: column; }
.wv-card { border-right: none; border-bottom: 1px solid var(--wv-line); }
.wv-cat-grid a { border-right: none; }
.wv-cta { padding: 32px 24px; }
}
/* Hide Discussion */
a[href*="action=edit§ion=new"],
.vector-talk-link,
#ca-talk {
display: none !important;
}
/* Hide 3-dot menu
.citizen-dropdown-details{
display: none !important;
}*/
/* ============================================================
WIKIVERSA — HOMEPAGE DYNAMIC BOXES (ADD-ON ONLY)
Ye poora block apne maujuda MediaWiki:Common.css ke SABSE
NEECHE paste karo. Upar wala poora CSS jaisa hai waisa hi
rehne do — kuch bhi delete/edit karne ki zaroorat nahi.
============================================================ */
/* ---- shared box shell (Featured / News / OTD / Newest / Browse) ---- */
.wv-mp-box {
background: var(--wv-white);
border: 1px solid var(--wv-line);
margin-bottom: 20px;
box-sizing: border-box;
box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}
.wv-mp-box-header {
padding: 12px 18px;
font-family: var(--wv-font-display);
font-weight: 600;
font-size: 17px;
color: var(--wv-ink);
display: flex;
align-items: center;
justify-content: space-between;
}
.wv-mp-box-header .wv-view-all {
font-family: var(--wv-font-body);
font-weight: 500;
font-size: 13px;
text-transform: none;
letter-spacing: 0;
}
.wv-mp-box-body { padding: 18px; }
/* header color variants, matched to your screenshots */
.wv-mp-header-green { background: #d9f2e0; }
.wv-mp-header-blue { background: #d7e6f7; }
.wv-mp-header-pink { background: #f6dde6; }
.wv-mp-header-grey { background: #ebebeb; }
.wv-mp-header-purple { background: #e3e0f7; }
/* ---- two-column top row: Featured (left) / News + OTD (right) ---- */
.wv-mp-toprow {
display: flex;
gap: 20px;
width: 100%;
align-items: flex-start;
}
.wv-mp-toprow-left { flex: 2 1 0; min-width: 0; }
.wv-mp-toprow-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* ---- featured article ---- */
.wv-mp-featured { display: flex; gap: 18px; }
.wv-mp-featured img {
width: 120px;
height: 120px;
object-fit: cover;
flex-shrink: 0;
}
.wv-mp-featured .wv-mp-featured-text { font-size: 15px; color: var(--wv-ink-soft); line-height: 1.6; }
.wv-mp-featured .wv-mp-featured-text a { font-weight: 600; }
.wv-mp-featured-more { display: block; text-align: right; margin-top: 10px; font-style: italic; font-size: 14px; }
/* ---- in the news / on this day lists ---- */
.wv-mp-news-list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--wv-ink-soft); line-height: 1.9; }
.wv-mp-news-list li { margin-bottom: 4px; }
.wv-mp-empty { color: var(--wv-slate); font-size: 14px; font-style: italic; }
/* ---- newest additions / category card grids ---- */
.wv-mp-card-grid {
display: flex;
flex-wrap: wrap;
gap: 16px;
}
.wv-mp-card {
flex: 1 1 220px;
max-width: 260px;
border: 1px solid var(--wv-line);
background: var(--wv-white);
}
.wv-mp-card img {
width: 100%;
height: 140px;
object-fit: cover;
display: block;
}
.wv-mp-card-body { padding: 14px 16px; }
.wv-mp-card-title { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.wv-mp-card-cat { font-style: italic; color: var(--wv-slate); font-size: 13px; display: block; margin-bottom: 6px; }
.wv-mp-card-snippet { font-size: 13.5px; color: var(--wv-ink-soft); line-height: 1.5; }
/* ---- browse by category: repeated sub-sections ---- */
.wv-mp-catsection { margin-bottom: 26px; }
.wv-mp-catsection-title {
display: flex;
justify-content: space-between;
align-items: baseline;
border-bottom: 1px solid var(--wv-line);
padding-bottom: 6px;
margin-bottom: 14px;
}
.wv-mp-catsection-title h3 {
margin: 0;
text-transform: none;
letter-spacing: 0;
font-family: var(--wv-font-display);
font-size: 18px;
font-weight: 600;
}
@media (max-width: 768px) {
.wv-mp-toprow { flex-direction: column; }
.wv-mp-featured { flex-direction: column; }
.wv-mp-featured img { width: 100%; height: 180px; }
.wv-mp-card { flex: 1 1 100%; max-width: 100%; }
}