MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 440: | Line 440: | ||
/* Hide 3-dot menu */ | /* Hide 3-dot menu */ | ||
.citizen-dropdown-details{ | |||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 22:21, 27 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;
}