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 Main Page minimal theme ===== */
/* ------------------------------
  GLOBAL STYLING
------------------------------ */
body {
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #111;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}


/* Hide the literal “Main Page” heading for a cleaner hero */
.mw-body-content h1,
body.page-Main_Page #firstHeading { display:none; }
.mw-body-content h2,
.mw-body-content h3 {
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #0b0b0b;
}


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


/* --- QUICK LINKS (icon pills) --- */
/* Hide the default MediaWiki title when we’re customizing the front page */
.page-Main_Page .sj-quick {
.page-Main_Page #firstHeading {
   display:flex; flex-wrap:wrap; gap:12px; justify-content:center;
   display: none;
  margin: 0 0 22px;
}
}


.page-Main_Page .sj-pill {
/* ------------------------------
   display:inline-flex; align-items:center; gap:8px;
  HERO BANNER
   padding:10px 14px; border-radius:999px; font-weight:700;
------------------------------ */
   color:#fff !important; text-decoration:none; line-height:1;
.sj-hero {
   box-shadow:0 4px 12px rgba(0,0,0,.15);
   width: 100%;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  height: 300px;
  background-image: url("https://wiki.sjs.gg/images/a/a8/SuperJoyBanner.png");
  background-size: cover;
   background-position: center;
  border-radius: 8px;
  overflow: hidden;
   margin-bottom: 30px;
  position: relative;
   box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
}
.page-Main_Page .sj-pill svg { width:18px; height:18px; display:block; }


/* brand colors */
/* Overlay gradient for better contrast */
.page-Main_Page .sj-pill.discord { background:#5865F2; }
.sj-hero::after {
.page-Main_Page .sj-pill.twitter { background:#111; }    /* X */
  content: "";
.page-Main_Page .sj-pill.youtube { background:#FF0033; }
  position: absolute;
.page-Main_Page .sj-pill.web    { background:#1D4ED8; }
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
}


.page-Main_Page .sj-pill:hover {
/* ------------------------------
   transform: translateY(-2px);
  QUICK LINK PILL BUTTONS
   box-shadow:0 8px 18px rgba(0,0,0,.2);
------------------------------ */
   filter: brightness(0.95);
.sj-quick {
   display: flex;
  justify-content: center;
   flex-wrap: wrap;
  gap: 16px;
   margin: 20px auto 40px;
}
}


/* --- DIVIDER --- */
.sj-pill {
.page-Main_Page .sj-divider {
  display: inline-flex;
   margin: 10px auto 0;
  align-items: center;
   height: 1px; max-width: 880px;
  gap: 8px;
   background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
   color: #fff !important;
   transition: background-color 0.25s ease, transform 0.15s ease;
   box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
}


/* --- PROJECT GRID (square cards) --- */
.sj-pill:hover {
.page-Main_Page .sj-grid {
   transform: translateY(-3px);
   display:grid;
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   text-decoration: none;
   gap:18px;
  margin: 22px 0 8px;
}
}


.page-Main_Page .sj-card {
/* Specific social colors */
  position:relative; border-radius:14px; overflow:hidden;
.sj-pill.discord { background-color: #5865f2; }
  box-shadow:0 8px 22px rgba(0,0,0,.12); background:#0b1220; color:#fff;
.sj-pill.discord:hover { background-color: #4752c4; }
  transition: transform .18s ease, box-shadow .18s ease;
}


/* square shape using aspect-ratio (modern browsers) */
.sj-pill.twitter { background-color: #1d9bf0; }
.page-Main_Page .sj-card .sj-media { aspect-ratio: 1 / 1; width:100%; }
.sj-pill.twitter:hover { background-color: #1476b8; }
.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); }
.sj-pill.youtube { background-color: #ff0000; }
.sj-pill.youtube:hover { background-color: #c50000; }


.page-Main_Page .sj-card .sj-title {
.sj-pill.web { background-color: #111; }
  position:absolute; left:0; right:0; bottom:0; padding:12px 10px;
.sj-pill.web:hover { background-color: #333; }
  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 */
/* Icon size for pills */
.page-Main_Page .sj-foot {
.sj-pill svg {
  text-align:center; color:#6b7280; font-size:14px; margin:28px 0 6px;
}
/* Normalize inline SVG icon size inside quick-link pills */
.sj-quick .sj-pill svg {
   width: 18px;
   width: 18px;
   height: 18px;
   height: 18px;
   display: inline-block;  /* or block; either is fine */
   fill: currentColor;
  vertical-align: middle;
  flex: 0 0 18px;
}
}


/* Keep the pill layout tight */
/* ------------------------------
.sj-quick {
  PROJECT CARDS
------------------------------ */
.sj-projects {
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
  gap: 12px;
   justify-content: center;
   justify-content: center;
   margin: 0 0 22px;
  gap: 24px;
   margin: 30px auto;
  max-width: 900px;
}
}


.sj-pill {
.sj-card {
   display: inline-flex;
   display: block;
   align-items: center;
  width: 240px;
   gap: 8px;
  border-radius: 12px;
   padding: 10px 14px;
   overflow: hidden;
   border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
  color: #111;
}
 
.sj-card:hover {
  transform: translateY(-5px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
 
.sj-card img {
   width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
 
.sj-card h3 {
  margin: 10px 0 14px;
   font-size: 1.1rem;
   font-weight: 700;
   font-weight: 700;
   color: #fff !important;
   color: #111;
   text-decoration: none;
}
   line-height: 1;
 
   box-shadow: 0 4px 12px rgba(0,0,0,.15);
/* Responsiveness for future projects */
   transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
@media (min-width: 700px) {
   .sj-card {
    width: 220px;
   }
}
 
/* ------------------------------
  FOOTER
------------------------------ */
.sj-footer {
  text-align: center;
   font-size: 0.85rem;
  color: #666;
  margin-top: 40px;
  padding-bottom: 20px;
}
 
/* ------------------------------
  NICE TOUCHES
------------------------------ */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px auto;
   width: 80%;
}
 
.mw-parser-output {
  max-width: 900px;
  margin: 0 auto;
}
}
.sj-pill.discord { background:#5865F2; }
.sj-pill.twitter { background:#111; }  /* X */
.sj-pill.youtube { background:#FF0033; }
.sj-pill.web    { background:#1D4ED8; }
.sj-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.2); filter: brightness(.95); }

Revision as of 20:40, 4 October 2025

/* ------------------------------
   GLOBAL STYLING
------------------------------ */
body {
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #111;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.mw-body-content h1,
.mw-body-content h2,
.mw-body-content h3 {
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #0b0b0b;
}

a {
  color: #2468ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Hide the default MediaWiki title when we’re customizing the front page */
.page-Main_Page #firstHeading {
  display: none;
}

/* ------------------------------
   HERO BANNER
------------------------------ */
.sj-hero {
  width: 100%;
  height: 300px;
  background-image: url("https://wiki.sjs.gg/images/a/a8/SuperJoyBanner.png");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Overlay gradient for better contrast */
.sj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
}

/* ------------------------------
   QUICK LINK PILL BUTTONS
------------------------------ */
.sj-quick {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px auto 40px;
}

.sj-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  transition: background-color 0.25s ease, transform 0.15s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.sj-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* Specific social colors */
.sj-pill.discord { background-color: #5865f2; }
.sj-pill.discord:hover { background-color: #4752c4; }

.sj-pill.twitter { background-color: #1d9bf0; }
.sj-pill.twitter:hover { background-color: #1476b8; }

.sj-pill.youtube { background-color: #ff0000; }
.sj-pill.youtube:hover { background-color: #c50000; }

.sj-pill.web { background-color: #111; }
.sj-pill.web:hover { background-color: #333; }

/* Icon size for pills */
.sj-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ------------------------------
   PROJECT CARDS
------------------------------ */
.sj-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 30px auto;
  max-width: 900px;
}

.sj-card {
  display: block;
  width: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
  color: #111;
}

.sj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.sj-card h3 {
  margin: 10px 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

/* Responsiveness for future projects */
@media (min-width: 700px) {
  .sj-card {
    width: 220px;
  }
}

/* ------------------------------
   FOOTER
------------------------------ */
.sj-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 40px;
  padding-bottom: 20px;
}

/* ------------------------------
   NICE TOUCHES
------------------------------ */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px auto;
  width: 80%;
}

.mw-parser-output {
  max-width: 900px;
  margin: 0 auto;
}