MediaWiki:Common.css

From SuperJoy Wiki
Revision as of 20:57, 4 October 2025 by Zach (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================================================
   SuperJoy Wiki — Global Styles
   Everything here is safe to paste over your whole file.
   ========================================================= */

/* Base look & content column width */
body {
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #111;
  line-height: 1.6;
}

/* Keep page content nicely centered */
.mw-parser-output {
  max-width: 1150px;   /* widen/narrow to taste */
  margin: 0 auto;
}

/* Hide default page title on the Main Page */
.page-Main_Page #firstHeading { display: none; }

/* =========================================================
   HERO — full width of the content column (no dark overlay)
   ========================================================= */
.page-Main_Page .sj-hero {
  height: 360px;
  width: 100%; /* end-to-end across the content column, NOT the sidebar */
  margin: 12px 0 26px 0;
  background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  overflow: hidden;
}

/* =========================================================
   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: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: #fff !important;
  text-decoration: none;
  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 all SVG icons inside pills (fixes Discord weirdness) */
.page-Main_Page .sj-pill svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  overflow: visible;   /* prevents clipping on odd viewBoxes */
  position: relative;
  top: 0.5px;          /* tiny nudge for perfect visual centering */
}

/* =========================================================
   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: 900px;
  margin: 24px auto 8px;       /* centers the container */
}

.page-Main_Page .sj-card {
  display: block;
  width: 220px;
  border-radius: 12px;
  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: 130px;
  object-fit: cover;
  display: block;
}

.page-Main_Page .sj-card h3 {
  margin: 10px 0 14px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Slight tighten on wider screens */
@media (min-width: 900px) {
  .page-Main_Page .sj-card { width: 210px; }
}

/* =========================================================
   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%;
}