MediaWiki:Common.css: Difference between revisions

From SuperJoy Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 133: Line 133:
}
}


/* =======================
/* ===== Catch a Kraken polish (stack after earlier rules) ===== */
  Catch a Kraken (page)
  =======================*/


.page-Catch_a_Kraken {
/* 1) Hero: lighten overlay + a bit taller on big screens */
  --cak-blue: #0c7bdc;
.page-Catch_a_Kraken .cak-hero{
  --cak-blue-2: #0a66b8;
   /* remove the heavy dark tint */
  --cak-dark: #0b1f35;
  --cak-pill-shadow: 0 4px 12px rgba(0,0,0,.18);
  --cak-maxw: 1200px;
 
  background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
}
 
/* Hide default H1 (we’ll render a title inside the hero) */
.page-Catch_a_Kraken #firstHeading {
  display: none;
}
 
/* --------- HERO --------- */
.page-Catch_a_Kraken .cak-hero {
   /* Replace this image when you upload a wide banner for the game */
  --hero-img: url('https://wiki.sjs.gg/images/a/a8/SuperJoyBanner.png');
 
  width: calc(100% - 2rem);
  max-width: var(--cak-maxw);
  margin: 1rem auto 0 auto;
  height: 280px;
  border-radius: 16px;
   background-image:
   background-image:
     linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)),
     linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18)),
     var(--hero-img);
     var(--hero-img);
   background-size: cover;
   height: clamp(220px, 28vw, 320px);
  background-position: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}
}


.page-Catch_a_Kraken .cak-hero .cak-title {
/* 2) Kill default MW section borders/spacing so our cards feel cohesive */
   position: absolute;
.page-Catch_a_Kraken .mw-parser-output > h2 {
  inset: auto 0 28px 0;
   border: 0 !important;
  text-align: center;
   padding: 0 !important;
  color: #fff;
   margin: 1.2rem 0 .6rem 0 !important;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
   font-size: 1.2rem !important;
   padding: 0 1rem;
   font-weight: 900 !important;
}
   color: var(--cak-dark);
.page-Catch_a_Kraken .cak-hero .cak-title h1 {
   margin: 0 0 .25rem 0;
  font-weight: 900;
  letter-spacing: .5px;
  font-size: clamp(28px, 4.2vw, 44px);
}
.page-Catch_a_Kraken .cak-hero .cak-title p {
  margin: 0;
  opacity: .95;
   font-size: clamp(14px, 1.8vw, 18px);
}
 
/* --------- QUICK LINKS (pills) --------- */
.page-Catch_a_Kraken .cak-quick {
  display: flex;
   justify-content: center;
   flex-wrap: wrap;
  gap: .8rem;
  margin: 1.2rem auto 0 auto;
  max-width: var(--cak-maxw);
}
}


.page-Catch_a_Kraken .cak-pill,
/* Make H2s look like section headers in our blocks when used outside .cak-section */
.page-Catch_a_Kraken .cak-pill:visited {
.page-Catch_a_Kraken .mw-parser-output > h2 + p {
   display: inline-flex;
   margin-top: .2rem;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.1rem;
  border-radius: 9999px;
  color: #fff !important;
  font-weight: 800;
  font-size: .96rem;
  text-decoration: none;
  line-height: 1;
  box-shadow: var(--cak-pill-shadow);
  transition: transform .18s, box-shadow .18s, filter .18s;
  will-change: transform;
}
}
.page-Catch_a_Kraken .cak-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0,0,0,.28);
}
/* brand colors */
.page-Catch_a_Kraken .cak-pill.discord { background:#5865F2; }
.page-Catch_a_Kraken .cak-pill.twitter { background:#1D9BF0; }
.page-Catch_a_Kraken .cak-pill.youtube { background:#FF0033; }
.page-Catch_a_Kraken .cak-pill.web    { background:#111; }


/* Font Awesome icons look best slightly larger */
/* 3) Ensure links inside cards/sections are readable and on-brand */
.page-Catch_a_Kraken .cak-pill i {
.page-Catch_a_Kraken .cak-section a,
  font-size: 1.05em;
.page-Catch_a_Kraken .cak-card a{
   line-height: 0;
   color: var(--cak-blue);
}
}
 
.page-Catch_a_Kraken .cak-section a:hover,
/* --------- MAIN WRAP --------- */
.page-Catch_a_Kraken .cak-card a:hover{
.page-Catch_a_Kraken .cak-wrap {
   color: var(--cak-blue-2);
   width: calc(100% - 2rem);
   text-decoration: underline;
  max-width: var(--cak-maxw);
   margin: 1.6rem auto 2rem auto;
}
}


/* Section blocks */
/* 4) Give the pills slightly stronger contrast in light theme */
.page-Catch_a_Kraken .cak-section {
.page-Catch_a_Kraken .cak-pill{
   background: #fff;
   filter: saturate(1.02);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  margin-bottom: 1rem;
  border: 1px solid rgba(10,16,30,.06);
}
}


.page-Catch_a_Kraken .cak-section h2 {
/* 5) Icon alignment (fixed-width) so labels line up cleanly */
  margin: 0 0 .6rem 0;
.page-Catch_a_Kraken .cak-pill i{
   font-size: 1.2rem;
   font-size: 1.1em;
   font-weight: 900;
   width: 1.25em;           /* fa-fw effect without needing the class */
   color: var(--cak-dark);
   text-align: center;
}
}


/* Grid of mini-cards (guides, systems, etc.) */
/* 6) Tighten vertical rhythm in the “Latest” list */
.page-Catch_a_Kraken .cak-grid {
.page-Catch_a_Kraken ul.cak-bullets{
   display: grid;
   margin-left: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .9rem;
}
}
 
.page-Catch_a_Kraken ul.cak-bullets li{
.page-Catch_a_Kraken .cak-card {
   margin: .18rem 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(10,16,30,.06);
  border-radius: 12px;
  padding: .9rem .95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .16s, box-shadow .16s;
  text-decoration: none !important;
  color: #0a1a2a !important;
}
.page-Catch_a_Kraken .cak-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.page-Catch_a_Kraken .cak-card h3 {
   margin: 0 0 .35rem 0;
  font-size: 1rem;
  font-weight: 900;
}
.page-Catch_a_Kraken .cak-card p {
  margin: 0;
  color: #425466;
  font-size: .92rem;
}
}


/* “Latest” list with blue bullets */
/* 7) Give the grid cards a bit more pop */
.page-Catch_a_Kraken ul.cak-bullets {
.page-Catch_a_Kraken .cak-card{
   margin: .2rem 0 0 1.05rem;
   background: linear-gradient(180deg,#fff,#f9fcff);
}
.page-Catch_a_Kraken ul.cak-bullets li {
  margin: .22rem 0;
}
}

Revision as of 04:53, 5 October 2025

/* ===== SuperJoy Wiki Custom Styling (Main Page) ===== */

.page-Main_Page {
  background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, 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.8rem;
  margin: 1.6rem auto;
}

.page-Main_Page .sj-pill,
.page-Main_Page .sj-pill:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  color: #fff !important;       /* force white text & icons (currentColor) */
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 3px 6px rgba(0,0,0,0.14);
  transition: transform 0.18s, box-shadow 0.18s;
  will-change: transform;
}

.page-Main_Page .sj-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}

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

/* Font Awesome icons in the pills */
.page-Main_Page .sj-pill i {
  font-size: 1.1em;       /* slightly larger so they read well */
  line-height: 1;         /* avoid vertical squish */
  display: inline-block;  /* stable box for vertical-align */
  vertical-align: -0.05em;
}

/* Per-brand visual nudge so they feel optically balanced */
.page-Main_Page .sj-pill.youtube i { font-size: 1.18em; }
.page-Main_Page .sj-pill.discord i { font-size: 1.14em; }
.page-Main_Page .sj-pill.twitter i { font-size: 1.12em; }

/* ---------- 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: 220px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.page-Main_Page .sj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

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

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

/* ---------- FOOTER ---------- */
.page-Main_Page .sj-footer {
  text-align: center;
  color: #666;
  font-size: 0.92rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
/* ---------- LOGO ---------- */
.skin-vector .mw-wiki-logo {
  width: 160px !important;       
  height: 85px !important;       
  background-size: contain !important;
  background-repeat: no-repeat !important;
  display: block !important;
}

.skin-vector #p-logo,
.skin-vector .mw-portlet-logo {
  width: 180px !important;       
}

/* ===== Catch a Kraken polish (stack after earlier rules) ===== */

/* 1) Hero: lighten overlay + a bit taller on big screens */
.page-Catch_a_Kraken .cak-hero{
  /* remove the heavy dark tint */
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18)),
    var(--hero-img);
  height: clamp(220px, 28vw, 320px);
}

/* 2) Kill default MW section borders/spacing so our cards feel cohesive */
.page-Catch_a_Kraken .mw-parser-output > h2 {
  border: 0 !important;
  padding: 0 !important;
  margin: 1.2rem 0 .6rem 0 !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: var(--cak-dark);
}

/* Make H2s look like section headers in our blocks when used outside .cak-section */
.page-Catch_a_Kraken .mw-parser-output > h2 + p {
  margin-top: .2rem;
}

/* 3) Ensure links inside cards/sections are readable and on-brand */
.page-Catch_a_Kraken .cak-section a,
.page-Catch_a_Kraken .cak-card a{
  color: var(--cak-blue);
}
.page-Catch_a_Kraken .cak-section a:hover,
.page-Catch_a_Kraken .cak-card a:hover{
  color: var(--cak-blue-2);
  text-decoration: underline;
}

/* 4) Give the pills slightly stronger contrast in light theme */
.page-Catch_a_Kraken .cak-pill{
  filter: saturate(1.02);
}

/* 5) Icon alignment (fixed-width) so labels line up cleanly */
.page-Catch_a_Kraken .cak-pill i{
  font-size: 1.1em;
  width: 1.25em;           /* fa-fw effect without needing the class */
  text-align: center;
}

/* 6) Tighten vertical rhythm in the “Latest” list */
.page-Catch_a_Kraken ul.cak-bullets{
  margin-left: 1.1rem;
}
.page-Catch_a_Kraken ul.cak-bullets li{
  margin: .18rem 0;
}

/* 7) Give the grid cards a bit more pop */
.page-Catch_a_Kraken .cak-card{
  background: linear-gradient(180deg,#fff,#f9fcff);
}