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 minimal polish (safe, readable) ===== */
/* ===========================
  SUPERJOY WIKI FRONT PAGE HERO
  =========================== */


/* Typography */
/* Hero container */
html, body {
.page-Main_Page .sj-hero {
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
   position: relative;
   line-height: 1.55;
  height: 260px;
   color: #1f2937;               /* slate-800 */
  border-radius: 14px;
   background: #fafafa;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  background: center / cover no-repeat url(/images/SuperJoyBanner.png);
  margin-bottom: 32px;
}
 
/* Subtle gradient overlay for readability */
.page-Main_Page .sj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
}
 
/* Text overlay styling */
.page-Main_Page .sj-hero__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
   text-align: center;
   color: #ffffff;
  padding: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
   font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}
}


/* Headings */
/* Headline inside hero */
#firstHeading {  
.page-Main_Page .sj-hero__text h1 {
   font-weight: 800;  
  margin: 0 0 6px 0;
   color: #0f172a;              /* slate-900 */
   font-weight: 800;
  border-bottom: 1px solid #e5e7eb;
   font-size: clamp(28px, 4.5vw, 44px);
   padding-bottom: .25rem;
   letter-spacing: 0.5px;
}
}


/* Content width stays default; add a little breathing room */
/* Subtitle or tagline */
.mw-body-content p { margin: .6rem 0 1rem; }
.page-Main_Page .sj-hero__text p {
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
}


/* Links */
/* ===========================
a { color: #2563eb; }          /* blue-600 */
  BUTTON ROW BELOW HERO
a:visited { color: #4f46e5; }   /* indigo-600 */
  =========================== */
a:hover { color: #1d4ed8; text-decoration: none; }
.page-Main_Page .sj-links {
   text-align: center;
  margin: 20px 0 40px;
}


/* Subtle buttons (used on main-page links) */
.page-Main_Page .sj-links a {
.sj-btn {
   display: inline-block;
   display:inline-block;  
  margin: 6px 10px;
   padding: 8px 14px;  
   padding: 10px 20px;
   border-radius: 10px;
   border-radius: 8px;
   background:#1d4ed8;  
   font-weight: 600;
   color:#fff!important;  
   color: #fff;
   font-weight:700;  
   text-decoration: none;
   margin:4px;  
   transition: all 0.2s ease-in-out;
   box-shadow: 0 2px 6px rgba(0,0,0,.08);
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
}
.sj-btn:hover { background:#1844c6; }


/* ---- Main Page only (lightweight) ---- */
/* Discord blue */
.page-Main_Page .sj-hero {
.page-Main_Page .sj-links a.discord {
   position: relative;
   background-color: #5865f2;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  background:#111;
}
}
.page-Main_Page .sj-hero img {
.page-Main_Page .sj-links a.discord:hover {
   width:100%;
   background-color: #4752c4;
  max-height: 340px;
  object-fit: cover;
  filter: brightness(72%);
}
}
.page-Main_Page .sj-hero .sj-hero-text {
 
   position:absolute; inset:0;
/* Feedback green */
  display:grid; place-items:center;
.page-Main_Page .sj-links a.feedback {
  text-align:center; color:#fff;
   background-color: #3ba55d;
  padding:24px;
}
}
.page-Main_Page .sj-hero h1 {
.page-Main_Page .sj-links a.feedback:hover {
   margin:0 0 6px 0;
   background-color: #2c8748;
  font-weight:900;
  font-size: clamp(28px, 4.5vw, 44px);
}
}
.page-Main_Page .sj-hero p { margin:0; opacity:.95; }


/* Project cards grid */
/* Twitter blue */
.page-Main_Page .sj-grid {
.page-Main_Page .sj-links a.twitter {
   display:grid;
   background-color: #1da1f2;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
}
.page-Main_Page .sj-card {
.page-Main_Page .sj-links a.twitter:hover {
   position:relative;
   background-color: #178bd6;
  border-radius:12px;
  overflow:hidden;
  background:#0b1220;
  color:#fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
}
.page-Main_Page .sj-card:hover {
 
   transform: translateY(-2px);  
/* ===========================
   box-shadow: 0 12px 26px rgba(0,0,0,.14);
  PROJECT GRID
  =========================== */
.page-Main_Page .sj-projects {
  display: flex;
  justify-content: center;
   gap: 20px;
  flex-wrap: wrap;
   margin-top: 40px;
}
}
.page-Main_Page .sj-card img {  
 
   width:100%; height:200px; object-fit:cover; filter:brightness(78%);
.page-Main_Page .sj-project-card {
  display: block;
   width: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
}
.page-Main_Page .sj-card .sj-card-title {
 
   position:absolute; left:0; right:0; bottom:0;
.page-Main_Page .sj-project-card:hover {
   padding:10px 12px; text-align:center;
   transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
   box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
   font-weight:800; font-size:18px;
}
 
.page-Main_Page .sj-project-card img {
  width: 100%;
  height: 200px;
   object-fit: cover;
  filter: brightness(78%);
}
}


/* Section title on Main Page */
.page-Main_Page .sj-project-card h3 {
.page-Main_Page h2.section-title {
   background: #111827;
   text-align:center;  
  color: #fff;
   margin: 26px 0 6px;  
   margin: 0;
   border:0;  
   padding: 14px;
   color:#0f172a;
  font-weight: 600;
  text-align: center;
   font-size: 18px;
}
}

Revision as of 20:16, 4 October 2025

/* ===========================
   SUPERJOY WIKI FRONT PAGE HERO
   =========================== */

/* Hero container */
.page-Main_Page .sj-hero {
  position: relative;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  background: center / cover no-repeat url(/images/SuperJoyBanner.png);
  margin-bottom: 32px;
}

/* Subtle gradient overlay for readability */
.page-Main_Page .sj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
}

/* Text overlay styling */
.page-Main_Page .sj-hero__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  padding: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Headline inside hero */
.page-Main_Page .sj-hero__text h1 {
  margin: 0 0 6px 0;
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: 0.5px;
}

/* Subtitle or tagline */
.page-Main_Page .sj-hero__text p {
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
}

/* ===========================
   BUTTON ROW BELOW HERO
   =========================== */
.page-Main_Page .sj-links {
  text-align: center;
  margin: 20px 0 40px;
}

.page-Main_Page .sj-links a {
  display: inline-block;
  margin: 6px 10px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Discord blue */
.page-Main_Page .sj-links a.discord {
  background-color: #5865f2;
}
.page-Main_Page .sj-links a.discord:hover {
  background-color: #4752c4;
}

/* Feedback green */
.page-Main_Page .sj-links a.feedback {
  background-color: #3ba55d;
}
.page-Main_Page .sj-links a.feedback:hover {
  background-color: #2c8748;
}

/* Twitter blue */
.page-Main_Page .sj-links a.twitter {
  background-color: #1da1f2;
}
.page-Main_Page .sj-links a.twitter:hover {
  background-color: #178bd6;
}

/* ===========================
   PROJECT GRID
   =========================== */
.page-Main_Page .sj-projects {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-Main_Page .sj-project-card {
  display: block;
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.page-Main_Page .sj-project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(78%);
}

.page-Main_Page .sj-project-card h3 {
  background: #111827;
  color: #fff;
  margin: 0;
  padding: 14px;
  font-weight: 600;
  text-align: center;
  font-size: 18px;
}