MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================================================= | /* ========================================================= | ||
SuperJoy Wiki — Global Styles | SuperJoy Wiki — Global Styles (Main Page polish) | ||
========================================================= */ | ========================================================= */ | ||
body { | body { | ||
font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif; | font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif; | ||
| Line 12: | Line 10: | ||
} | } | ||
/* | /* Make the content column a bit wider so the hero can feel “big” */ | ||
.mw-parser-output { | .mw-parser-output { | ||
max-width: | max-width: 1400px; /* was 1150px — adjust to taste */ | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
/* Hide default | /* Hide the default heading on Main Page */ | ||
.page-Main_Page #firstHeading { display: none; } | .page-Main_Page #firstHeading { display: none; } | ||
/* ========================================================= | /* ========================================================= | ||
HERO — | HERO — edge-to-edge within the content column | ||
(no dark overlay, no filters) | |||
========================================================= */ | ========================================================= */ | ||
.page-Main_Page .sj-hero { | .page-Main_Page .sj-hero { | ||
height: | height: 380px; | ||
width: 100%; | width: 100%; | ||
margin: | margin: 16px 0 28px 0; | ||
background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat; | background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat; | ||
border-radius: | border-radius: 18px; | ||
box-shadow: 0 | box-shadow: 0 14px 30px rgba(0,0,0,.18); | ||
overflow: hidden; | overflow: hidden; | ||
filter: none !important; | |||
background-blend-mode: normal !important; | |||
background-color: transparent !important; | |||
position: relative; | |||
} | |||
/* Nuke any previous overlay someone might have set */ | |||
.page-Main_Page .sj-hero::before, | |||
.page-Main_Page .sj-hero::after { | |||
content: none !important; | |||
} | } | ||
| Line 48: | Line 57: | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 9px; | ||
padding: | padding: 11px 16px; | ||
border-radius: 999px; | border-radius: 999px; | ||
font-weight: 700; | font-weight: 700; | ||
| Line 55: | Line 64: | ||
color: #fff !important; | color: #fff !important; | ||
text-decoration: none; | text-decoration: none; | ||
line-height: 1; /* keeps icon from “squishing” */ | |||
box-shadow: 0 4px 12px rgba(0,0,0,.16); | box-shadow: 0 4px 12px rgba(0,0,0,.16); | ||
transition: transform .15s ease, box-shadow .15s ease; | transition: transform .15s ease, box-shadow .15s ease; | ||
| Line 70: | Line 80: | ||
.page-Main_Page .sj-pill.web { background:#111; } | .page-Main_Page .sj-pill.web { background:#111; } | ||
/* Normalize | /* Normalize SVG icons — fixes Discord height “squish” */ | ||
.page-Main_Page .sj-pill svg { | .page-Main_Page .sj-pill svg { | ||
width: | width: 20px; | ||
height: | height: 20px; | ||
display: inline-block; | display: inline-block; | ||
vertical-align: middle; | vertical-align: middle; | ||
fill: currentColor; | fill: currentColor; | ||
overflow: visible; | overflow: visible; /* prevents clipping */ | ||
position: relative; | position: relative; | ||
top: 0 | top: 0; /* keep centered */ | ||
} | } | ||
| Line 89: | Line 99: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 22px; | gap: 22px; | ||
justify-content: center; | justify-content: center; /* centers one or many cards */ | ||
max-width: | max-width: 1000px; | ||
margin: 24px auto 8px; | margin: 24px auto 8px; /* centers the container */ | ||
} | } | ||
.page-Main_Page .sj-card { | .page-Main_Page .sj-card { | ||
display: block; | display: block; | ||
width: | width: 230px; | ||
border-radius: | border-radius: 14px; | ||
overflow: hidden; | overflow: hidden; | ||
background: #fff; | background: #fff; | ||
| Line 113: | Line 123: | ||
.page-Main_Page .sj-card img { | .page-Main_Page .sj-card img { | ||
width: 100%; | width: 100%; | ||
height: | height: 140px; | ||
object-fit: cover; | object-fit: cover; | ||
display: block; | display: block; | ||
| Line 119: | Line 129: | ||
.page-Main_Page .sj-card h3 { | .page-Main_Page .sj-card h3 { | ||
margin: | margin: 12px 0 16px; | ||
font-size: 1. | font-size: 1.08rem; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: .2px; | letter-spacing: .2px; | ||
| Line 127: | Line 137: | ||
/* Slight tighten on wider screens */ | /* Slight tighten on wider screens */ | ||
@media (min-width: 900px) { | @media (min-width: 900px) { | ||
.page-Main_Page .sj-card { width: | .page-Main_Page .sj-card { width: 220px; } | ||
} | } | ||
Revision as of 21:03, 4 October 2025
/* =========================================================
SuperJoy Wiki — Global Styles (Main Page polish)
========================================================= */
body {
font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
background: #fafafa;
color: #111;
line-height: 1.6;
}
/* Make the content column a bit wider so the hero can feel “big” */
.mw-parser-output {
max-width: 1400px; /* was 1150px — adjust to taste */
margin: 0 auto;
}
/* Hide the default heading on Main Page */
.page-Main_Page #firstHeading { display: none; }
/* =========================================================
HERO — edge-to-edge within the content column
(no dark overlay, no filters)
========================================================= */
.page-Main_Page .sj-hero {
height: 380px;
width: 100%;
margin: 16px 0 28px 0;
background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat;
border-radius: 18px;
box-shadow: 0 14px 30px rgba(0,0,0,.18);
overflow: hidden;
filter: none !important;
background-blend-mode: normal !important;
background-color: transparent !important;
position: relative;
}
/* Nuke any previous overlay someone might have set */
.page-Main_Page .sj-hero::before,
.page-Main_Page .sj-hero::after {
content: none !important;
}
/* =========================================================
QUICK LINK PILLS
========================================================= */
.page-Main_Page .sj-quick {
display: flex;
flex-wrap: wrap;
gap: 14px;
justify-content: center;
margin: 6px auto 26px;
}
.page-Main_Page .sj-pill {
display: inline-flex;
align-items: center;
gap: 9px;
padding: 11px 16px;
border-radius: 999px;
font-weight: 700;
font-size: .95rem;
color: #fff !important;
text-decoration: none;
line-height: 1; /* keeps icon from “squishing” */
box-shadow: 0 4px 12px rgba(0,0,0,.16);
transition: transform .15s ease, box-shadow .15s ease;
}
.page-Main_Page .sj-pill:hover {
transform: translateY(-2px);
box-shadow: 0 8px 18px rgba(0,0,0,.2);
text-decoration: none;
}
/* Brand colors */
.page-Main_Page .sj-pill.discord { background:#5865F2; }
.page-Main_Page .sj-pill.twitter { background:#1D9BF0; }
.page-Main_Page .sj-pill.youtube { background:#FF0033; }
.page-Main_Page .sj-pill.web { background:#111; }
/* Normalize SVG icons — fixes Discord height “squish” */
.page-Main_Page .sj-pill svg {
width: 20px;
height: 20px;
display: inline-block;
vertical-align: middle;
fill: currentColor;
overflow: visible; /* prevents clipping */
position: relative;
top: 0; /* keep centered */
}
/* =========================================================
PROJECT CARDS — always centered
========================================================= */
.page-Main_Page .sj-projects {
display: flex;
flex-wrap: wrap;
gap: 22px;
justify-content: center; /* centers one or many cards */
max-width: 1000px;
margin: 24px auto 8px; /* centers the container */
}
.page-Main_Page .sj-card {
display: block;
width: 230px;
border-radius: 14px;
overflow: hidden;
background: #fff;
color: #111;
text-decoration: none;
text-align: center;
box-shadow: 0 6px 18px rgba(0,0,0,.12);
transition: transform .18s ease, box-shadow .18s ease;
}
.page-Main_Page .sj-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.page-Main_Page .sj-card img {
width: 100%;
height: 140px;
object-fit: cover;
display: block;
}
.page-Main_Page .sj-card h3 {
margin: 12px 0 16px;
font-size: 1.08rem;
font-weight: 800;
letter-spacing: .2px;
}
/* Slight tighten on wider screens */
@media (min-width: 900px) {
.page-Main_Page .sj-card { width: 220px; }
}
/* =========================================================
FOOTER — centered
========================================================= */
.page-Main_Page .sj-footer {
text-align: center;
font-size: .9rem;
color: #6b7280;
margin: 26px 0 18px;
}
/* =========================================================
MISC
========================================================= */
hr {
border: none;
border-top: 1px solid #e6e6e6;
margin: 28px auto;
width: 80%;
}