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 Styling === */
/* ===== SuperJoy Main Page minimal theme ===== */
body.page-Main_Page #firstHeading {
  display: none; /* Hide "Main Page" heading */
}


/* Hero Banner */
/* Hide the literal “Main Page” heading for a cleaner hero */
.sj-hero {
body.page-Main_Page #firstHeading { display:none; }
  background: url("/images/a/a8/SuperJoyBanner.png") center center / cover no-repeat;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  border-radius: 10px;
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}


.sj-hero::after {
/* --- HERO (no text) --- */
   content: "";
.page-Main_Page .sj-hero {
   position: absolute;
   background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat;
   inset: 0;
   height: 300px;                 /* tweak 260–360 */
   background: rgba(0, 0, 0, 0.45);
   border-radius: 14px;
   border-radius: 10px;
   box-shadow: 0 10px 28px rgba(0,0,0,.12);
   margin: 6px 0 28px;
}
}


.sj-hero__text {
/* --- QUICK LINKS (icon pills) --- */
   position: relative;
.page-Main_Page .sj-quick {
   z-index: 2;
   display:flex; flex-wrap:wrap; gap:12px; justify-content:center;
   margin: 0 0 22px;
}
}


.sj-hero__text h1 {
.page-Main_Page .sj-pill {
   font-size: 2.4em;
   display:inline-flex; align-items:center; gap:8px;
   font-weight: 700;
   padding:10px 14px; border-radius:999px; font-weight:700;
   margin-bottom: 10px;
   color:#fff !important; text-decoration:none; line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
}
.page-Main_Page .sj-pill svg { width:18px; height:18px; display:block; }


.sj-hero__text p {
/* brand colors */
  font-size: 1.2em;
.page-Main_Page .sj-pill.discord { background:#5865F2; }
  opacity: 0.9;
.page-Main_Page .sj-pill.twitter { background:#111; }    /* X */
}
.page-Main_Page .sj-pill.youtube { background:#FF0033; }
.page-Main_Page .sj-pill.web    { background:#1D4ED8; }


/* Social Links */
.page-Main_Page .sj-pill:hover {
.sj-links {
   transform: translateY(-2px);
  text-align: center;
   box-shadow:0 8px 18px rgba(0,0,0,.2);
  margin-bottom: 40px;
   filter: brightness(0.95);
}
 
.sj-links a {
   display: inline-block;
  padding: 10px 20px;
  margin: 5px 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
   text-decoration: none;
   transition: all 0.25s ease;
}
}


.sj-links a.discord {
/* --- DIVIDER --- */
   background: #5865F2;
.page-Main_Page .sj-divider {
  margin: 10px auto 0;
  height: 1px; max-width: 880px;
   background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}
}


.sj-links a.feedback {
/* --- PROJECT GRID (square cards) --- */
   background: #43B581;
.page-Main_Page .sj-grid {
   display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin: 22px 0 8px;
}
}


.sj-links a.twitter {
.page-Main_Page .sj-card {
   background: #1DA1F2;
   position:relative; border-radius:14px; overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.12); background:#0b1220; color:#fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
}


.sj-links a:hover {
/* square shape using aspect-ratio (modern browsers) */
  opacity: 0.85;
.page-Main_Page .sj-card .sj-media { aspect-ratio: 1 / 1; width:100%; }
  transform: translateY(-2px);
.page-Main_Page .sj-card .sj-media img { width:100%; height:100%; object-fit:cover; filter:brightness(80%); }
}


/* Projects Section */
.page-Main_Page .sj-card:hover { transform: translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.18); }
.sj-projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
 
.sj-project-card {
  display: block;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
 
.sj-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
 
.sj-project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(75%);
}


.sj-project-card h3 {
.page-Main_Page .sj-card .sj-title {
   text-align: center;
   position:absolute; left:0; right:0; bottom:0; padding:12px 10px;
   background: #111827;
   background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
   color: white;
   text-align:center; font-weight:800; font-size:16px;
  font-weight: 600;
  padding: 10px;
  margin: 0;
}
}


/* Footer */
/* footer note */
.sj-footer {
.page-Main_Page .sj-foot {
   text-align: center;
   text-align:center; color:#6b7280; font-size:14px; margin:28px 0 6px;
  color: #6b7280;
  font-size: 14px;
  margin-top: 40px;
  padding-bottom: 10px;
}
}

Revision as of 20:29, 4 October 2025

/* ===== SuperJoy Main Page minimal theme ===== */

/* Hide the literal “Main Page” heading for a cleaner hero */
body.page-Main_Page #firstHeading { display:none; }

/* --- HERO (no text) --- */
.page-Main_Page .sj-hero {
  background: url("/images/a/a8/SuperJoyBanner.png") center/cover no-repeat;
  height: 300px;                 /* tweak 260–360 */
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  margin: 6px 0 28px;
}

/* --- QUICK LINKS (icon pills) --- */
.page-Main_Page .sj-quick {
  display:flex; flex-wrap:wrap; gap:12px; justify-content:center;
  margin: 0 0 22px;
}

.page-Main_Page .sj-pill {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:999px; font-weight:700;
  color:#fff !important; text-decoration:none; line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.page-Main_Page .sj-pill svg { width:18px; height:18px; display:block; }

/* brand colors */
.page-Main_Page .sj-pill.discord { background:#5865F2; }
.page-Main_Page .sj-pill.twitter { background:#111; }     /* X */
.page-Main_Page .sj-pill.youtube { background:#FF0033; }
.page-Main_Page .sj-pill.web     { background:#1D4ED8; }

.page-Main_Page .sj-pill:hover {
  transform: translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.2);
  filter: brightness(0.95);
}

/* --- DIVIDER --- */
.page-Main_Page .sj-divider {
  margin: 10px auto 0;
  height: 1px; max-width: 880px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* --- PROJECT GRID (square cards) --- */
.page-Main_Page .sj-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin: 22px 0 8px;
}

.page-Main_Page .sj-card {
  position:relative; border-radius:14px; overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.12); background:#0b1220; color:#fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* square shape using aspect-ratio (modern browsers) */
.page-Main_Page .sj-card .sj-media { aspect-ratio: 1 / 1; width:100%; }
.page-Main_Page .sj-card .sj-media img { width:100%; height:100%; object-fit:cover; filter:brightness(80%); }

.page-Main_Page .sj-card:hover { transform: translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.18); }

.page-Main_Page .sj-card .sj-title {
  position:absolute; left:0; right:0; bottom:0; padding:12px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
  text-align:center; font-weight:800; font-size:16px;
}

/* footer note */
.page-Main_Page .sj-foot {
  text-align:center; color:#6b7280; font-size:14px; margin:28px 0 6px;
}