MediaWiki:Common.css: Difference between revisions
Dragon 12dk (talk | contribs) No edit summary |
Dragon 12dk (talk | contribs) No edit summary |
||
| (48 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
*/ | */ | ||
. | /* Template Infobox Stuff */ | ||
display: flex; | |||
.ib-anthem-label{ | |||
margin-top: | display:block; | ||
font-weight:700; | |||
margin: 0 0 .25em 0; | |||
} | |||
.ib-anthem-media{ | |||
display:block; | |||
} | |||
/* Safety: keep aspect ratio */ | |||
table.infobox.ib-country.vcard > tbody > tr:nth-child(2) > td img { | |||
height: auto !important; | |||
max-width: none !important; | |||
} | |||
/* Flag: td > div > div:nth-child(1) ... img */ | |||
table.infobox.ib-country.vcard > tbody > tr:nth-child(2) > td > div > div:nth-child(1) img { | |||
width: 125px !important; | |||
} | |||
/* Coat of arms: td > div > div:nth-child(2) ... img */ | |||
table.infobox.ib-country.vcard > tbody > tr:nth-child(2) > td > div > div:nth-child(2) img { | |||
width: 85px !important; | |||
} | |||
/* ============================= */ | |||
/* EMBED MODE – HIDE ALL CHROME */ | |||
/* ============================= */ | |||
/* Hide edit section links in embed mode */ | |||
.vc-embed-mode .mw-editsection { | |||
display: none !important; | |||
} | |||
/* Embed mode: transparent page background */ | |||
.vc-embed-mode { | |||
background: transparent !important; | |||
} | |||
/* Remove legacy Vector body border in embed mode */ | |||
.vc-embed-mode .mw-body { | |||
border: 0 !important; | |||
box-shadow: none !important; /* just in case */ | |||
} | |||
.vc-embed-mode .mw-body { | |||
background: transparent !important; | |||
} | |||
/* Legacy Vector sidebar + header */ | |||
.vc-embed-mode #mw-panel, | |||
.vc-embed-mode #mw-navigation, | |||
.vc-embed-mode #mw-head, | |||
.vc-embed-mode #p-personal, | |||
.vc-embed-mode #p-search, | |||
/* Legacy Vector: remove the empty top scaffolding bars */ | |||
.vc-embed-mode #mw-page-base, | |||
.vc-embed-mode #mw-head-base { | |||
display: none !important; | |||
} | |||
/* Hide page indicators (lock/featured/etc.) in embed mode */ | |||
.vc-embed-mode .mw-indicators { | |||
display: none !important; | |||
} | |||
/* Legacy Vector: remove extra top spacing after hiding header */ | |||
.vc-embed-mode #content { | |||
margin-top: 0 !important; | |||
} | |||
/* Vector 2022 sidebar + header */ | |||
.vc-embed-mode .vector-sidebar, | |||
.vc-embed-mode .vector-header-container, | |||
.vc-embed-mode .vector-sticky-header, | |||
.vc-embed-mode .vector-user-links, | |||
.vc-embed-mode .vector-search-box, | |||
/* Shared elements */ | |||
.vc-embed-mode #footer, | |||
.vc-embed-mode #siteSub, | |||
.vc-embed-mode #contentSub, | |||
.vc-embed-mode #firstHeading { | |||
display: none !important; | |||
} | |||
/* ============================= */ | |||
/* EMBED MODE – FULL WIDTH */ | |||
/* ============================= */ | |||
.vc-embed-mode .mw-page-container, | |||
.vc-embed-mode .mw-content-container, | |||
.vc-embed-mode #content, | |||
.vc-embed-mode .mw-parser-output { | |||
max-width: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* STAFF PAGE BELOW */ | |||
/* grid for lists of staff cards inside a role section */ | |||
.vc-card-grid { | |||
display: grid; | |||
gap: 16px; | |||
margin: 10px 0 22px 0; | |||
} | |||
/* two cards side-by-side */ | |||
.vc-card-grid--2 { | |||
grid-template-columns: 1fr 1fr; | |||
} | |||
/* keep it 1-column on small screens */ | |||
@media (max-width: 900px) { | |||
.vc-card-grid--2 { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* IMPORTANT: when cards are in a grid, remove the card's bottom margin */ | |||
.vc-card-grid .vc-staff-card { | |||
margin-bottom: 0; | |||
} | |||
/* Prefer: opt out of DarkMode transforms */ | |||
html.client-darkmode .vc-staff-page.mw-no-invert, | |||
html.client-darkmode .vc-staff-page.mw-no-invert * { | |||
filter: none !important; | |||
mix-blend-mode: normal !important; | |||
} | |||
/* Fallback: if DarkMode is inverting a parent container, cancel it */ | |||
html.client-darkmode #content .vc-staff-page.mw-no-invert { | |||
filter: invert(1) hue-rotate(180deg) !important; | |||
} | |||
/* ===== Staff page wrapper ===== */ | |||
.vc-staff-page { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
background: #060606; | |||
padding: 22px 22px 30px 22px; | |||
border-radius: 12px; | |||
border: 1px solid #202020; | |||
} | |||
/* Headings inside the wrapper */ | |||
.vc-staff-page h2, | |||
.vc-staff-page h3, | |||
.vc-staff-page h4 { | |||
color: #f2f2f2 !important; | |||
} | |||
/* Section dividers (Founder/Staff) */ | |||
.vc-staff-page h2 { | |||
border-bottom: 1px solid #2a2a2a !important; | |||
padding-bottom: 8px; | |||
margin-bottom: 18px; | |||
} | |||
/* ===== Grid ===== */ | |||
.vc-staff-grid { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 18px 28px; | |||
margin: 14px 0 26px 0; | |||
} | |||
@media (max-width: 900px) { | |||
.vc-staff-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
.vc-staff-col { | |||
min-width: 0; | |||
} | |||
/* ===== Column + role labels ===== */ | |||
.vc-col-title { | |||
font-size: 24px; | |||
font-weight: 900; | |||
color: #ffffff; | |||
margin: 0 0 18px 0; | |||
text-align: center; | |||
letter-spacing: .6px; | |||
/* keep this subtle; remove if you want it less neon */ | |||
text-shadow: 0 0 10px rgba(51,255,0,0.18); | |||
} | |||
.vc-role-title { | |||
font-size: 13px; | |||
font-weight: 800; | |||
color: #e6e6e6 !important; | |||
letter-spacing: .6px; | |||
text-transform: uppercase; | |||
margin: 22px 0 10px 0; | |||
opacity: 0.9; | |||
} | |||
/* ===== Staff card ===== */ | |||
.vc-staff-card { | |||
display: flex; | |||
align-items: center; | |||
gap: 14px; | |||
padding: 14px 16px; | |||
border-radius: 10px; | |||
background: linear-gradient(90deg, #121212 0%, #181818 60%, #121212 100%); | |||
border: 1px solid #2a2a2a; | |||
box-shadow: 0 8px 24px rgba(0,0,0,.25); | |||
min-height: 92px; | |||
margin-bottom: 16px; /* gives breathing room between cards */ | |||
} | |||
.vc-staff-card:hover { | |||
border-color: #33ff00; | |||
box-shadow: 0 0 0 1px rgba(51,255,0,.22), | |||
0 8px 20px rgba(0,0,0,.45); | |||
} | |||
/* Avatar */ | |||
.vc-staff-avatar { | |||
width: 64px; | |||
height: 64px; | |||
flex: 0 0 64px; | |||
border-radius: 8px; | |||
background: #fff; | |||
display: grid; | |||
place-items: center; | |||
overflow: hidden; | |||
} | |||
.vc-avatar-img { | |||
image-rendering: pixelated; | |||
} | |||
/* Text */ | |||
.vc-staff-info { line-height: 1.15; } | |||
.vc-staff-name a { text-decoration: none; font-weight: 750; } | |||
.vc-staff-title { color: #cfcfcf; font-size: 12px; margin-top: 4px; } | |||
/* Role colors */ | |||
.vc-role-founder .vc-staff-name a { color: #ff3b3b; } | |||
.vc-role-director .vc-staff-name a { color: #ff3b3b; } | |||
.vc-role-admin .vc-staff-name a { color: #ff4d4d; } | |||
.vc-role-moderator .vc-staff-name a { color: #c85cff; } | |||
.vc-role-programmer .vc-staff-name a { color: #00e5ff; } | |||
.vc-role-builder .vc-staff-name a { color: #ffb020; } | |||
/* ===== VindexCraft Rules Styling (High-Color Sections) ===== */ | |||
/* DarkMode extension: re-invert the logo so it appears normal */ | |||
html.client-darkmode .mw-logo a.mw-wiki-logo, | |||
html.client-darkmode #p-logo a.mw-wiki-logo { | |||
filter: invert(1) hue-rotate(180deg) !important; | |||
} | |||
.vc-header { | |||
border: 1px solid #e5e5e5; | |||
background: #fafafa; | |||
border-radius: 14px; | |||
padding: 16px 18px; | |||
margin: 14px 0 18px 0; | |||
} | |||
.vc-header .vc-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; } | |||
.vc-header .vc-meta { opacity: .85; margin-bottom: 10px; } | |||
.vc-header .vc-meta .vc-staff { color: #EB0505; font-weight: 800; } | |||
/* Rule cards */ | |||
.vc-rule { | |||
border: 1px solid #e8e8e8; | |||
border-radius: 14px; | |||
padding: 14px 16px; | |||
margin: 14px 0; | |||
background: #fff; | |||
box-shadow: 0 1px 0 rgba(0,0,0,.04); | |||
} | |||
/* Colorized section headers (H2 inside wrappers) */ | |||
.vc-section-ban > h2, | |||
.vc-section-warn > h2, | |||
.vc-section-kick > h2, | |||
.vc-section-resp > h2, | |||
.vc-section-statute > h2 { | |||
display: block; | |||
padding: 10px 14px; | |||
border-radius: 14px; | |||
margin: 22px 0 14px 0; | |||
border: 1px solid rgba(0,0,0,.08); | |||
letter-spacing: .3px; | |||
} | |||
/* Red */ | |||
.vc-section-ban > h2 { | |||
background: #EB0505; | |||
color: #fff; | |||
} | |||
/* Yellow */ | |||
.vc-section-warn > h2 { | |||
background: #EB8F05; | |||
color: #111; | |||
} | |||
/* Green */ | |||
.vc-section-kick > h2 { | |||
background: #2EA818; | |||
color: #fff; | |||
} | |||
/* Blue */ | |||
.vc-section-resp > h2 { | |||
background: #367FD9; | |||
color: #fff; | |||
} | |||
/* Light green */ | |||
.vc-section-statute > h2 { | |||
background: #5CD936; | |||
color: #111; | |||
} | |||
/* Small callout boxes */ | |||
.vc-callout { | |||
border-left: 6px solid #999; | |||
background: #f8f8f8; | |||
padding: 12px 14px; | |||
border-radius: 12px; | |||
margin: 12px 0; | |||
} | |||
/* Optional: make rule cards match the section they're in */ | |||
.vc-in-ban .vc-rule { border-left: 8px solid #EB0505; } | |||
.vc-in-warn .vc-rule { border-left: 8px solid #EB8F05; } | |||
.vc-in-kick .vc-rule { border-left: 8px solid #2EA818; } | |||
.vc-in-resp .vc-rule { border-left: 8px solid #367FD9; } | |||
.vc-in-statute .vc-rule { border-left: 8px solid #5CD936; } | |||
.page-Main_Page figure[typeof="mw:File/Thumb"] { | |||
display: none !important; | |||
} | |||
/* Featured Article - Gold */ | |||
.featured-lead { | |||
background: #fff8e6; /* light gold */ | |||
border: 1px solid #e6d08a; | |||
border-left: 6px solid #c9a227; /* deep gold accent */ | |||
padding: 16px; | |||
border-radius: 8px; | |||
margin-bottom: 20px; | |||
} | |||
.featured-lead b a { | |||
font-size: 1.3em; | |||
color: #8a6d1d; /* darker gold text */ | |||
text-decoration: none; | |||
} | |||
.featured-lead b a:hover { | |||
text-decoration: underline; | |||
} | |||
/* Popular Pages - Green */ | |||
.popularpages-block { | |||
background: #eef8f0; /* soft green */ | |||
border: 1px solid #b7dfc1; | |||
border-left: 6px solid #2e8b57; /* forest green accent */ | |||
padding: 16px; | |||
border-radius: 8px; | |||
margin-bottom: 12px; | |||
} | |||
.popularpages-block .pp-item { | |||
padding: 6px 0; | |||
border-bottom: 1px solid #d6eadc; | |||
} | |||
.popularpages-block .pp-item:last-child { | |||
border-bottom: none; | |||
} | |||
.popularpages-block .pp-item { | |||
display: block; | |||
padding: 4px 0; | |||
border-bottom: 1px solid #e6e6e6; | |||
} | |||
.popularpages-block .pp-item:last-child { | |||
border-bottom: none; | |||
} | |||
.popularpages-block .pp-item a { | |||
text-decoration: none; | |||
} | |||
.popularpages-block .pp-item a:hover { | |||
text-decoration: underline; | |||
} | |||
/* button */ | |||
.popularpages-more { | |||
margin-top: 10px; | |||
} | |||
.popularpages-more a { | |||
display: inline-block; | |||
padding: 8px 12px; | |||
border: 1px solid #cfcfcf; | |||
border-radius: 8px; | |||
background: #f8f9fa; | |||
text-decoration: none; | |||
} | |||
.popularpages-more a:hover { | |||
background: #eeeeee; | |||
} | |||
.featured-lead .infobox, | |||
.featured-lead .portable-infobox, | |||
.featured-lead table.infobox { | |||
display: none !important; | |||
} | |||
.mainpage-hero { | |||
margin: 12px 0 18px 0; | |||
padding: 14px 16px; | |||
border: 1px solid #cfcfcf; | |||
background: #f8f9fa; | |||
} | } | ||
.mainpage- | .mainpage-hero-title { | ||
font-size: 1.6em; | |||
font-weight: 700; | |||
margin-bottom: 4px; | |||
} | } | ||
.mainpage- | .mainpage-hero-sub { | ||
font-size: 1.05em; | |||
line-height: 1.4; | |||
} | } | ||
.mainpage- | .mainpage-wrapper { | ||
display: flex; | |||
gap: 18px; | |||
align-items: flex-start; | |||
flex-wrap: wrap; /* important for smaller screens */ | |||
} | } | ||
.mainpage-left { flex: 2 1 520px; min-width: 360px; } | |||
.mainpage-right { flex: 1 1 320px; min-width: 300px; } | |||
.mainpage-box { | .mainpage-box { | ||
border: 1px solid #cfcfcf; | |||
background: #fff; | |||
padding: 12px 14px; | |||
margin-bottom: 16px; | |||
} | } | ||
.mainpage-box h3 { | .mainpage-box h3 { | ||
margin-top: 0; | |||
padding-bottom: 6px; | |||
} | } | ||