MediaWiki:Common.css: Difference between revisions

From SuperJoy Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* =========================================================
/* ===== SuperJoy Wiki Custom Styling ===== */
  SuperJoy Wiki — Global Styles (Main Page polish)
  ========================================================= */


body {
.page-Main_Page {
   font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  background: #fff;
  background: #fafafa;
   font-family: 'Inter', sans-serif;
  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;
  margin: 0 auto;
}
}


/* Hide the default heading on Main Page */
/* ---------- HERO BANNER ---------- */
.page-Main_Page #firstHeading { display: none; }
 
/* =========================================================
  HERO — edge-to-edge within the content column
  (no dark overlay, no filters)
  ========================================================= */
.page-Main_Page .sj-hero {
.page-Main_Page .sj-hero {
  height: 380px;
   width: calc(100% - 2rem);
   width: 100%;
   margin: 1rem auto 0 auto;
   margin: 16px 0 28px 0;
   background-image: url('https://wiki.sjs.gg/images/a/a8/SuperJoyBanner.png');
   background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat;
  background-size: cover;
   border-radius: 18px;
  background-position: center;
   box-shadow: 0 14px 30px rgba(0,0,0,.18);
   border-radius: 16px;
  overflow: hidden;
  height: 260px;
  filter: none !important;
   box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  background-blend-mode: normal !important;
  background-color: transparent !important;
   position: relative;
   position: relative;
  max-width: 1600px;
}
}


/* Nuke any previous overlay someone might have set */
/* ---------- QUICK LINKS ---------- */
.page-Main_Page .sj-hero::before,
.page-Main_Page .sj-hero::after {
  content: none !important;
}
 
/* =========================================================
  QUICK LINK PILLS
  ========================================================= */
.page-Main_Page .sj-quick {
.page-Main_Page .sj-quick {
   display: flex;
   display: flex;
  justify-content: center;
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 14px;
   gap: 0.75rem;
  justify-content: center;
   margin: 1.5rem auto;
   margin: 6px auto 26px;
}
}


/* Social Buttons */
.page-Main_Page .sj-pill {
.page-Main_Page .sj-pill {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
   gap: 10px;
   gap: 0.4rem;
   padding: 11px 16px;
   padding: 0.6rem 1.1rem;
   border-radius: 999px;
   border-radius: 9999px;
   font-weight: 700;
  color: #fff;
   font-size: .95rem;
   font-weight: 600;
  color: #fff !important;
   font-size: 0.9rem;
   text-decoration: none;
   text-decoration: none;
  line-height: 1;                      /* keep label compact without squeezing icons */
   box-shadow: 0 3px 6px rgba(0,0,0,0.15);
   box-shadow: 0 4px 12px rgba(0,0,0,.16);
   transition: transform 0.2s, box-shadow 0.2s;
   transition: transform .15s ease, box-shadow .15s ease;
}
}
.page-Main_Page .sj-pill:hover {
.page-Main_Page .sj-pill:hover {
   transform: translateY(-2px);
   transform: translateY(-3px);
   box-shadow: 0 8px 18px rgba(0,0,0,.2);
   box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  text-decoration: none;
}
}


/* Brand colors */
/* Colors */
.page-Main_Page .sj-pill.discord { background:#5865F2; }
.page-Main_Page .sj-pill.discord { background-color: #5865F2; }
.page-Main_Page .sj-pill.twitter { background:#1D9BF0; }
.page-Main_Page .sj-pill.twitter { background-color: #1D9BF0; }
.page-Main_Page .sj-pill.youtube { background:#FF0033; }
.page-Main_Page .sj-pill.youtube { background-color: #FF0000; }
.page-Main_Page .sj-pill.web     { background:#111; }
.page-Main_Page .sj-pill.web { background-color: #111; }


/* Icon square wrapper — prevents any squish */
/* Icon Handling */
.page-Main_Page .sj-pill .ico {
.page-Main_Page .sj-pill .ico {
   width: 20px;
   width: 20px;
   height: 20px;
   height: 20px;
   aspect-ratio: 1 / 1;
   display: inline-flex;
   display: inline-grid;
   align-items: center;
   place-items: center;
   justify-content: center;
}
}


/* Actual SVG inside the square */
.page-Main_Page .sj-pill .ico img {
.page-Main_Page .sj-pill .ico svg {
   width: 18px;
   width: 18px;
   height: 18px;
   height: 18px;
   display: block;
   display: block;
  fill: currentColor;
}
}


/* =========================================================
/* ---------- PROJECTS ---------- */
  PROJECT CARDS — always centered
  ========================================================= */
.page-Main_Page .sj-projects {
.page-Main_Page .sj-projects {
   display: flex;
   display: flex;
  justify-content: center;
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 22px;
   gap: 2rem;
  justify-content: center;            /* centers one or many cards */
   margin: 2rem auto;
  max-width: 1000px;
   margin: 24px auto 8px;             /* centers the container */
}
}


.page-Main_Page .sj-card {
.page-Main_Page .sj-card {
   display: block;
   display: flex;
   width: 230px;
   flex-direction: column;
   border-radius: 14px;
  align-items: center;
  background: #fff;
   border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
   overflow: hidden;
   overflow: hidden;
  background: #fff;
  color: #111;
   text-decoration: none;
   text-decoration: none;
   text-align: center;
   width: 180px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
   transition: transform 0.2s, box-shadow 0.2s;
   transition: transform .18s ease, box-shadow .18s ease;
}
}
.page-Main_Page .sj-card:hover {
.page-Main_Page .sj-card:hover {
   transform: translateY(-4px);
   transform: translateY(-5px);
   box-shadow: 0 12px 26px rgba(0,0,0,.18);
   box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
}


.page-Main_Page .sj-card img {
.page-Main_Page .sj-card img {
   width: 100%;
   width: 100%;
   height: 140px;
   height: auto;
  object-fit: cover;
   display: block;
   display: block;
}
}


.page-Main_Page .sj-card h3 {
.page-Main_Page .sj-card h3 {
   margin: 12px 0 16px;
   font-size: 0.95rem;
   font-size: 1.08rem;
   font-weight: 600;
   font-weight: 800;
  margin: 0.5rem 0 1rem 0;
   letter-spacing: .2px;
   text-align: center;
   color: #111;
}
}


/* Slight tighten on wider screens */
/* ---------- FOOTER ---------- */
@media (min-width: 900px) {
  .page-Main_Page .sj-card { width: 220px; }
}
 
/* =========================================================
  FOOTER — centered
  ========================================================= */
.page-Main_Page .sj-footer {
.page-Main_Page .sj-footer {
   text-align: center;
   text-align: center;
  font-size: .9rem;
   color: #666;
   color: #6b7280;
   font-size: 0.85rem;
   margin: 26px 0 18px;
   margin-top: 2rem;
}
   margin-bottom: 1rem;
 
/* =========================================================
  MISC
  ========================================================= */
hr {
  border: none;
   border-top: 1px solid #e6e6e6;
   margin: 28px auto;
  width: 80%;
}
}

Revision as of 21:11, 4 October 2025

/* ===== SuperJoy Wiki Custom Styling ===== */

.page-Main_Page {
  background: #fff;
  font-family: 'Inter', sans-serif;
}

/* ---------- HERO BANNER ---------- */
.page-Main_Page .sj-hero {
  width: calc(100% - 2rem);
  margin: 1rem auto 0 auto;
  background-image: url('https://wiki.sjs.gg/images/a/a8/SuperJoyBanner.png');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  height: 260px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  max-width: 1600px;
}

/* ---------- QUICK LINKS ---------- */
.page-Main_Page .sj-quick {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem auto;
}

/* Social Buttons */
.page-Main_Page .sj-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-Main_Page .sj-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Colors */
.page-Main_Page .sj-pill.discord { background-color: #5865F2; }
.page-Main_Page .sj-pill.twitter { background-color: #1D9BF0; }
.page-Main_Page .sj-pill.youtube { background-color: #FF0000; }
.page-Main_Page .sj-pill.web { background-color: #111; }

/* Icon Handling */
.page-Main_Page .sj-pill .ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-Main_Page .sj-pill .ico img {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- PROJECTS ---------- */
.page-Main_Page .sj-projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto;
}

.page-Main_Page .sj-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  width: 180px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-Main_Page .sj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.page-Main_Page .sj-card img {
  width: 100%;
  height: auto;
  display: block;
}

.page-Main_Page .sj-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  text-align: center;
  color: #111;
}

/* ---------- FOOTER ---------- */
.page-Main_Page .sj-footer {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}