MediaWiki:Common.css: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ========================================= | /* ========================================================= | ||
PC GAMING SHELTER — MAIN PAGE DARK UI (scoped) | |||
========================================= */ | ========================================================= */ | ||
body.page-Main_Page | |||
body.page-Main_Page { | |||
/* Base */ | |||
background: #14181d !important; | |||
color: #e6edf3; | |||
} | |||
/* Remove default white header areas on Main Page */ | |||
body.page-Main_Page #mw-page-base, | body.page-Main_Page #mw-page-base, | ||
body.page-Main_Page #mw-head-base, | body.page-Main_Page #mw-head-base, | ||
body.page-Main_Page .mw-page-container, | body.page-Main_Page .mw-page-container, | ||
body.page-Main_Page .vector-header-container, | |||
body.page-Main_Page .mw-header, | body.page-Main_Page .mw-header, | ||
body.page-Main_Page | body.page-Main_Page #content { | ||
background: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | } | ||
/* Hide default wiki chrome ONLY on Main Page */ | |||
body.page-Main_Page #mw-panel, | body.page-Main_Page #mw-panel, | ||
body.page-Main_Page #p-logo, | body.page-Main_Page #p-logo, | ||
| Line 21: | Line 29: | ||
body.page-Main_Page #firstHeading, | body.page-Main_Page #firstHeading, | ||
body.page-Main_Page #siteNotice { | body.page-Main_Page #siteNotice { | ||
display: none !important; | |||
} | } | ||
/* Remove content left offset from hidden sidebar */ | |||
body.page-Main_Page #content { | body.page-Main_Page #content { | ||
margin-left: 0 !important; | |||
padding-top: 0 !important; | |||
} | |||
body.page-Main_Page .mw-body { | |||
background: transparent !important; | |||
padding: 0 !important; | |||
} | |||
/* ---------- Variables (easy to tweak) ---------- */ | |||
body.page-Main_Page .pcs-wrapper { | |||
--bg: #14181d; | |||
--panel: #1b222a; | |||
--panel2: #202833; | |||
--border: #2a323c; | |||
--text: #e6edf3; | |||
--muted: #9aa7b3; | |||
--accent: #e0a85a; | |||
--link: #7dc2ff; | |||
max-width: 1180px; | |||
margin: 0 auto; | |||
padding: 28px 22px 40px; | |||
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; | |||
color: var(--text); | |||
} | |||
/* ---------- Links ---------- */ | |||
body.page-Main_Page .pcs-wrapper a { | |||
color: var(--link); | |||
text-decoration: none; | |||
} | |||
body.page-Main_Page .pcs-wrapper a:hover { | |||
text-decoration: underline; | |||
} | |||
/* ---------- Layout grid ---------- */ | |||
body.page-Main_Page .pcs-row { | |||
display: flex; | |||
gap: 18px; | |||
margin-bottom: 18px; | |||
flex-wrap: wrap; | |||
} | |||
body.page-Main_Page .pcs-col-70 { | |||
flex: 0 0 calc(70% - 9px); | |||
max-width: calc(70% - 9px); | |||
} | |||
body.page-Main_Page .pcs-col-30 { | |||
flex: 0 0 calc(30% - 9px); | |||
max-width: calc(30% - 9px); | |||
} | |||
body.page-Main_Page .pcs-col-100 { | |||
flex: 0 0 100%; | |||
max-width: 100%; | |||
} | } | ||
/* | /* Responsive */ | ||
@media (max-width: 960px) { | |||
body.page-Main_Page .pcs-col-70, | |||
.pcs- | body.page-Main_Page .pcs-col-30 { | ||
flex: 0 0 100%; | |||
max-width: 100%; | |||
} | |||
} | } | ||
/* ---------- Panels ---------- */ | |||
body.page-Main_Page .pcs-panel { | |||
. | background: var(--panel); | ||
.pcs- | border: 1px solid var(--border); | ||
border-radius: 10px; | |||
box-shadow: 0 10px 30px rgba(0,0,0,.28); | |||
overflow: hidden; | |||
} | } | ||
body.page-Main_Page .pcs-panel-inner { | |||
padding: 16px 16px 14px; | |||
.pcs- | |||
} | } | ||
body.page-Main_Page .pcs-panel-title { | |||
.pcs- | display: flex; | ||
align-items: center; | |||
justify-content: space-between; | |||
gap: 12px; | |||
padding: 14px 16px; | |||
border-bottom: 1px solid var(--border); | |||
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); | |||
} | } | ||
.pcs- | body.page-Main_Page .pcs-panel-title h2 { | ||
margin: 0; | |||
font-size: 18px; | |||
font-weight: 700; | |||
letter-spacing: .02em; | |||
color: var(--accent); | |||
} | |||
body.page-Main_Page .pcs-subtitle { | |||
.pcs- | margin-top: 4px; | ||
font-size: 12.5px; | |||
color: var(--muted); | |||
} | } | ||
.pcs- | /* ---------- Hero ---------- */ | ||
body.page-Main_Page .pcs-hero { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
gap: 16px; | |||
margin-bottom: 16px; | |||
} | } | ||
body.page-Main_Page .pcs-brand { | |||
display: flex; | |||
align-items: center; | |||
gap: 14px; | |||
.pcs- | |||
} | } | ||
body.page-Main_Page .pcs-hero-logo img { | |||
.pcs- | width: 80px; | ||
height: auto; | |||
display: block; | |||
background: transparent !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | } | ||
.pcs- | body.page-Main_Page .pcs-hero-text h1 { | ||
margin: 0; | |||
font-size: 28px; | |||
letter-spacing: .04em; | |||
color: var(--text); | |||
} | } | ||
.pcs- | body.page-Main_Page .pcs-hero-text p { | ||
margin: 4px 0 0; | |||
color: var(--muted); | |||
max-width: 560px; | |||
line-height: 1.35; | |||
} | } | ||
body.page-Main_Page .pcs-social { | |||
.pcs- | display: flex; | ||
gap: 8px; | |||
align-items: center; | |||
} | } | ||
.pcs- | |||
/* Optional: make your social icons sit in a small “chip” */ | |||
body.page-Main_Page .pcs-social a { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 34px; | |||
height: 26px; | |||
border: 1px solid var(--border); | |||
border-radius: 6px; | |||
background: rgba(255,255,255,.03); | |||
} | |||
body.page-Main_Page .pcs-social a:hover { | |||
background: rgba(255,255,255,.06); | |||
text-decoration: none; | |||
} | } | ||
/* --- | /* ---------- Search ---------- */ | ||
.pcs- | body.page-Main_Page .pcs-search { | ||
margin-bottom: 18px; | |||
display: flex; | |||
justify-content: center; | |||
} | } | ||
.pcs- | body.page-Main_Page .pcs-search .mw-inputbox-centered { | ||
width: min(720px, 100%); | |||
} | } | ||
.pcs-box span { color: # | body.page-Main_Page .pcs-search input[type="search"], | ||
body.page-Main_Page .pcs-search input[type="text"] { | |||
width: 100% !important; | |||
background: #0f141a !important; | |||
border: 1px solid var(--border) !important; | |||
border-radius: 10px !important; | |||
padding: 10px 12px !important; | |||
color: var(--text) !important; | |||
outline: none !important; | |||
} | |||
body.page-Main_Page .pcs-search input::placeholder { | |||
color: rgba(154,167,179,.8); | |||
} | |||
body.page-Main_Page .pcs-search input:focus { | |||
border-color: rgba(224,168,90,.55) !important; | |||
box-shadow: 0 0 0 3px rgba(224,168,90,.15) !important; | |||
} | |||
/* ---------- Feature block ---------- */ | |||
body.page-Main_Page .pcs-feature { | |||
display: grid; | |||
grid-template-columns: 1fr; | |||
gap: 12px; | |||
} | |||
body.page-Main_Page .pcs-feature-media { | |||
border: 1px solid var(--border); | |||
border-radius: 10px; | |||
overflow: hidden; | |||
background: #0f141a; | |||
} | |||
body.page-Main_Page .pcs-feature-media img, | |||
body.page-Main_Page .pcs-feature-media iframe { | |||
display: block; | |||
width: 100%; | |||
} | |||
body.page-Main_Page .pcs-feature-caption { | |||
color: var(--muted); | |||
font-size: 12.5px; | |||
} | |||
/* ---------- Tiles (Genres / Communities) ---------- */ | |||
body.page-Main_Page .pcs-tiles { | |||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
gap: 12px; | |||
} | |||
@media (max-width: 960px) { | |||
body.page-Main_Page .pcs-tiles { | |||
grid-template-columns: repeat(2, 1fr); | |||
} | |||
} | |||
@media (max-width: 520px) { | |||
body.page-Main_Page .pcs-tiles { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
body.page-Main_Page .pcs-tile { | |||
border: 1px solid var(--border); | |||
border-radius: 10px; | |||
background: rgba(255,255,255,.02); | |||
overflow: hidden; | |||
transition: transform .15s ease, box-shadow .15s ease, background .15s ease; | |||
} | |||
body.page-Main_Page .pcs-tile:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 12px 30px rgba(0,0,0,.28); | |||
background: rgba(255,255,255,.04); | |||
} | |||
body.page-Main_Page .pcs-tile a { | |||
display: block; | |||
text-decoration: none; | |||
color: var(--text); | |||
} | |||
body.page-Main_Page .pcs-tile-thumb { | |||
height: 112px; | |||
display: grid; | |||
place-items: center; | |||
background: #0f141a; | |||
} | |||
body.page-Main_Page .pcs-tile-thumb img { | |||
max-height: 92px; | |||
width: auto; | |||
display: block; | |||
} | |||
body.page-Main_Page .pcs-tile-label { | |||
padding: 10px 12px 12px; | |||
font-weight: 700; | |||
letter-spacing: .02em; | |||
text-align: center; | |||
} | |||
/* ---------- Sidebar lists with icons ---------- */ | |||
body.page-Main_Page .pcs-list { | |||
display: grid; | |||
gap: 10px; | |||
} | |||
body.page-Main_Page .pcs-list-item { | |||
display: grid; | |||
grid-template-columns: 22px 1fr; | |||
gap: 10px; | |||
align-items: center; | |||
color: var(--text); | |||
} | |||
body.page-Main_Page .pcs-list-item img { | |||
width: 22px; | |||
height: 22px; | |||
object-fit: contain; | |||
display: block; | |||
} | |||
body.page-Main_Page .pcs-list-item span { | |||
color: var(--text); | |||
} | |||
body.page-Main_Page .pcs-divider { | |||
height: 1px; | |||
background: var(--border); | |||
margin: 12px 0; | |||
} | |||
/* ---------- SMW list inside panels ---------- */ | |||
body.page-Main_Page .pcs-panel .smw-format, | |||
body.page-Main_Page .pcs-panel ul { | |||
margin: 0; | |||
padding-left: 18px; | |||
} | |||
body.page-Main_Page .pcs-panel li { | |||
margin: 6px 0; | |||
color: var(--text); | |||
} | |||
/* ---------- Make wikitables readable if any appear ---------- */ | |||
body.page-Main_Page .pcs-wrapper table.wikitable { | |||
background: transparent !important; | |||
color: var(--text) !important; | |||
border: 1px solid var(--border) !important; | |||
} | |||
body.page-Main_Page .pcs-wrapper table.wikitable th { | |||
background: #0f141a !important; | |||
color: var(--accent) !important; | |||
} | |||
Revision as of 14:11, 21 February 2026
/* =========================================================
PC GAMING SHELTER — MAIN PAGE DARK UI (scoped)
========================================================= */
body.page-Main_Page {
/* Base */
background: #14181d !important;
color: #e6edf3;
}
/* Remove default white header areas on Main Page */
body.page-Main_Page #mw-page-base,
body.page-Main_Page #mw-head-base,
body.page-Main_Page .mw-page-container,
body.page-Main_Page .vector-header-container,
body.page-Main_Page .mw-header,
body.page-Main_Page #content {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* Hide default wiki chrome ONLY on Main Page */
body.page-Main_Page #mw-panel,
body.page-Main_Page #p-logo,
body.page-Main_Page #left-navigation,
body.page-Main_Page #right-navigation,
body.page-Main_Page #p-personal,
body.page-Main_Page #firstHeading,
body.page-Main_Page #siteNotice {
display: none !important;
}
/* Remove content left offset from hidden sidebar */
body.page-Main_Page #content {
margin-left: 0 !important;
padding-top: 0 !important;
}
body.page-Main_Page .mw-body {
background: transparent !important;
padding: 0 !important;
}
/* ---------- Variables (easy to tweak) ---------- */
body.page-Main_Page .pcs-wrapper {
--bg: #14181d;
--panel: #1b222a;
--panel2: #202833;
--border: #2a323c;
--text: #e6edf3;
--muted: #9aa7b3;
--accent: #e0a85a;
--link: #7dc2ff;
max-width: 1180px;
margin: 0 auto;
padding: 28px 22px 40px;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
color: var(--text);
}
/* ---------- Links ---------- */
body.page-Main_Page .pcs-wrapper a {
color: var(--link);
text-decoration: none;
}
body.page-Main_Page .pcs-wrapper a:hover {
text-decoration: underline;
}
/* ---------- Layout grid ---------- */
body.page-Main_Page .pcs-row {
display: flex;
gap: 18px;
margin-bottom: 18px;
flex-wrap: wrap;
}
body.page-Main_Page .pcs-col-70 {
flex: 0 0 calc(70% - 9px);
max-width: calc(70% - 9px);
}
body.page-Main_Page .pcs-col-30 {
flex: 0 0 calc(30% - 9px);
max-width: calc(30% - 9px);
}
body.page-Main_Page .pcs-col-100 {
flex: 0 0 100%;
max-width: 100%;
}
/* Responsive */
@media (max-width: 960px) {
body.page-Main_Page .pcs-col-70,
body.page-Main_Page .pcs-col-30 {
flex: 0 0 100%;
max-width: 100%;
}
}
/* ---------- Panels ---------- */
body.page-Main_Page .pcs-panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,.28);
overflow: hidden;
}
body.page-Main_Page .pcs-panel-inner {
padding: 16px 16px 14px;
}
body.page-Main_Page .pcs-panel-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
body.page-Main_Page .pcs-panel-title h2 {
margin: 0;
font-size: 18px;
font-weight: 700;
letter-spacing: .02em;
color: var(--accent);
}
body.page-Main_Page .pcs-subtitle {
margin-top: 4px;
font-size: 12.5px;
color: var(--muted);
}
/* ---------- Hero ---------- */
body.page-Main_Page .pcs-hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
body.page-Main_Page .pcs-brand {
display: flex;
align-items: center;
gap: 14px;
}
body.page-Main_Page .pcs-hero-logo img {
width: 80px;
height: auto;
display: block;
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
body.page-Main_Page .pcs-hero-text h1 {
margin: 0;
font-size: 28px;
letter-spacing: .04em;
color: var(--text);
}
body.page-Main_Page .pcs-hero-text p {
margin: 4px 0 0;
color: var(--muted);
max-width: 560px;
line-height: 1.35;
}
body.page-Main_Page .pcs-social {
display: flex;
gap: 8px;
align-items: center;
}
/* Optional: make your social icons sit in a small “chip” */
body.page-Main_Page .pcs-social a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 26px;
border: 1px solid var(--border);
border-radius: 6px;
background: rgba(255,255,255,.03);
}
body.page-Main_Page .pcs-social a:hover {
background: rgba(255,255,255,.06);
text-decoration: none;
}
/* ---------- Search ---------- */
body.page-Main_Page .pcs-search {
margin-bottom: 18px;
display: flex;
justify-content: center;
}
body.page-Main_Page .pcs-search .mw-inputbox-centered {
width: min(720px, 100%);
}
body.page-Main_Page .pcs-search input[type="search"],
body.page-Main_Page .pcs-search input[type="text"] {
width: 100% !important;
background: #0f141a !important;
border: 1px solid var(--border) !important;
border-radius: 10px !important;
padding: 10px 12px !important;
color: var(--text) !important;
outline: none !important;
}
body.page-Main_Page .pcs-search input::placeholder {
color: rgba(154,167,179,.8);
}
body.page-Main_Page .pcs-search input:focus {
border-color: rgba(224,168,90,.55) !important;
box-shadow: 0 0 0 3px rgba(224,168,90,.15) !important;
}
/* ---------- Feature block ---------- */
body.page-Main_Page .pcs-feature {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}
body.page-Main_Page .pcs-feature-media {
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
background: #0f141a;
}
body.page-Main_Page .pcs-feature-media img,
body.page-Main_Page .pcs-feature-media iframe {
display: block;
width: 100%;
}
body.page-Main_Page .pcs-feature-caption {
color: var(--muted);
font-size: 12.5px;
}
/* ---------- Tiles (Genres / Communities) ---------- */
body.page-Main_Page .pcs-tiles {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
@media (max-width: 960px) {
body.page-Main_Page .pcs-tiles {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 520px) {
body.page-Main_Page .pcs-tiles {
grid-template-columns: 1fr;
}
}
body.page-Main_Page .pcs-tile {
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(255,255,255,.02);
overflow: hidden;
transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
body.page-Main_Page .pcs-tile:hover {
transform: translateY(-2px);
box-shadow: 0 12px 30px rgba(0,0,0,.28);
background: rgba(255,255,255,.04);
}
body.page-Main_Page .pcs-tile a {
display: block;
text-decoration: none;
color: var(--text);
}
body.page-Main_Page .pcs-tile-thumb {
height: 112px;
display: grid;
place-items: center;
background: #0f141a;
}
body.page-Main_Page .pcs-tile-thumb img {
max-height: 92px;
width: auto;
display: block;
}
body.page-Main_Page .pcs-tile-label {
padding: 10px 12px 12px;
font-weight: 700;
letter-spacing: .02em;
text-align: center;
}
/* ---------- Sidebar lists with icons ---------- */
body.page-Main_Page .pcs-list {
display: grid;
gap: 10px;
}
body.page-Main_Page .pcs-list-item {
display: grid;
grid-template-columns: 22px 1fr;
gap: 10px;
align-items: center;
color: var(--text);
}
body.page-Main_Page .pcs-list-item img {
width: 22px;
height: 22px;
object-fit: contain;
display: block;
}
body.page-Main_Page .pcs-list-item span {
color: var(--text);
}
body.page-Main_Page .pcs-divider {
height: 1px;
background: var(--border);
margin: 12px 0;
}
/* ---------- SMW list inside panels ---------- */
body.page-Main_Page .pcs-panel .smw-format,
body.page-Main_Page .pcs-panel ul {
margin: 0;
padding-left: 18px;
}
body.page-Main_Page .pcs-panel li {
margin: 6px 0;
color: var(--text);
}
/* ---------- Make wikitables readable if any appear ---------- */
body.page-Main_Page .pcs-wrapper table.wikitable {
background: transparent !important;
color: var(--text) !important;
border: 1px solid var(--border) !important;
}
body.page-Main_Page .pcs-wrapper table.wikitable th {
background: #0f141a !important;
color: var(--accent) !important;
}
