MediaWiki:Common.css: Difference between revisions

From SuperJoy Wiki
Jump to navigation Jump to search
Created page with "=== SuperJoy Studios Global Wiki Theme ===: General layout: body { background-color: #fafafa; font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; color: #1b1b1b; } Page title: #firstHeading { font-weight: 700; color: #0a2342; border-bottom: 2px solid #e0e0e0; } Header / navbar: .vector-header, .vector-menu-content { background: linear-gradient(90deg, #0a2342, #102b57); color: #fff; } .vector-menu-content a, .vector-header a { c..."
 
No edit summary
Line 1: Line 1:
/* === SuperJoy Studios Global Wiki Theme === */
/* ---------------- SuperJoy base polish ---------------- */
body { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }


/* General layout */
/* Header/nav colors for Vector 2010/2022 */
body {
.vector-header, .mw-footer-container {
   background-color: #fafafa;
   background: linear-gradient(90deg, #0a2342, #102b57);
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
   color: #fff;
   color: #1b1b1b;
}
}
#footer, .mw-footer-container a { color: #cfe0ff !important; }


/* Page title */
/* Buttons (used in main-page links) */
#firstHeading {
.sj-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
   font-weight: 700;
   font-weight: 700;
   color: #0a2342;
   color: #fff !important;
   border-bottom: 2px solid #e0e0e0;
   margin: 6px;
}
}
.sj-btn.discord    { background:#5865F2; }
.sj-btn.feedback    { background:#31a870; }
.sj-btn.twitter    { background:#1DA1F2; }
.sj-btn:hover { filter: brightness(0.95); }


/* Header / navbar */
/* ---------------- Main Page ONLY ---------------- */
.vector-header,
.page-Main_Page #siteSub,
.vector-menu-content {
.page-Main_Page .mw-indicators,
  background: linear-gradient(90deg, #0a2342, #102b57);
.page-Main_Page .mw-portlet-lang,
   color: #fff;
.page-Main_Page .vector-toc,
.page-Main_Page .vector-pagelanguage-variant-selector {
   display: none !important;
}
}


.vector-menu-content a,
/* Hide sidebar ONLY on Main Page (covers Vector 2010 + 2022) */
.vector-header a {
.page-Main_Page #mw-panel,
   color: #e0ecff !important;
.page-Main_Page .vector-sidebar-container,
.page-Main_Page .vector-main-menu {
   display: none !important;
}
}


.vector-menu-content a:hover,
/* Expand content to full width when sidebar hidden */
.vector-header a:hover {
.page-Main_Page #content,
   color: #fff !important;
.page-Main_Page .mw-content-container,
.page-Main_Page .vector-column-start,
.page-Main_Page .vector-column-end {
   margin: 0 !important;
}
}
.page-Main_Page .vector-column-start { display:none !important; }


/* Links */
/* Center the main body and add breathing room */
a {
.page-Main_Page .mw-body,
   color: #1976d2;
.page-Main_Page .mw-body-content {
   max-width: 1100px;
  margin: 0 auto;
}
}


a:visited {
/* Hero */
   color: #1565c0;
.sj-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.sj-hero img {
   width: 100%; max-height: 360px; object-fit: cover;
  filter: brightness(65%);
}
}
 
.sj-hero .sj-hero-text {
a:hover {
  position: absolute; inset: 0;
   color: #004aad;
   display: grid; place-items: center;
   text-decoration: none;
   text-align: center; color: #fff; padding: 24px;
}
}
 
.sj-hero h1 {
/* Buttons and UI elements */
   font-size: clamp(28px, 5vw, 48px);
.mw-ui-button,
   line-height: 1.05; margin: 0 0 6px 0; font-weight: 800;
input[type="submit"],
button {
   background-color: #1976d2;
   color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 6px 14px;
}
}
.sj-hero p { margin: 0; font-size: 18px; opacity: .95; }


.mw-ui-button:hover,
/* Projects grid */
input[type="submit"]:hover,
.sj-grid {
button:hover {
  display: grid;
   background-color: #125da2;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
   margin-top: 18px;
}
}
 
.sj-card {
/* Project card hover polish */
  position: relative; border-radius: 14px; overflow: hidden;
a:hover img {
   box-shadow: 0 8px 24px rgba(0,0,0,.12);
   filter: brightness(80%) !important;
   background: #0b1220; color: #fff;
   transform: scale(1.03);
   transition: transform .18s ease, box-shadow .18s ease;
   transition: 0.3s;
}
}
 
.sj-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
/* Footer */
.sj-card img { width: 100%; height: 210px; object-fit: cover; filter: brightness(78%); }
#footer {
.sj-card .sj-card-title {
   background: #0a2342;
   position: absolute; bottom: 0; left: 0; right: 0;
   color: #ccc;
  padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
   font-size: 20px; font-weight: 800; text-align: center;
}
}


#footer a {
/* Page headings (nicer) */
   color: #8fb8ff;
.page-Main_Page #firstHeading { display:none; }    /* hide the literal “Main Page” title */
.page-Main_Page h2.section-title {
  text-align:center; font-size: 26px; margin: 28px 0 8px;
   border: 0; color:#0a2342;
}
}

Revision as of 04:27, 4 October 2025

/* ---------------- SuperJoy base polish ---------------- */
body { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header/nav colors for Vector 2010/2022 */
.vector-header, .mw-footer-container {
  background: linear-gradient(90deg, #0a2342, #102b57);
  color: #fff;
}
#footer, .mw-footer-container a { color: #cfe0ff !important; }

/* Buttons (used in main-page links) */
.sj-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff !important;
  margin: 6px;
}
.sj-btn.discord     { background:#5865F2; }
.sj-btn.feedback    { background:#31a870; }
.sj-btn.twitter     { background:#1DA1F2; }
.sj-btn:hover { filter: brightness(0.95); }

/* ---------------- Main Page ONLY ---------------- */
.page-Main_Page #siteSub,
.page-Main_Page .mw-indicators,
.page-Main_Page .mw-portlet-lang,
.page-Main_Page .vector-toc,
.page-Main_Page .vector-pagelanguage-variant-selector {
  display: none !important;
}

/* Hide sidebar ONLY on Main Page (covers Vector 2010 + 2022) */
.page-Main_Page #mw-panel,
.page-Main_Page .vector-sidebar-container,
.page-Main_Page .vector-main-menu {
  display: none !important;
}

/* Expand content to full width when sidebar hidden */
.page-Main_Page #content,
.page-Main_Page .mw-content-container,
.page-Main_Page .vector-column-start,
.page-Main_Page .vector-column-end {
  margin: 0 !important;
}
.page-Main_Page .vector-column-start { display:none !important; }

/* Center the main body and add breathing room */
.page-Main_Page .mw-body,
.page-Main_Page .mw-body-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero */
.sj-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.sj-hero img {
  width: 100%; max-height: 360px; object-fit: cover;
  filter: brightness(65%);
}
.sj-hero .sj-hero-text {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center; color: #fff; padding: 24px;
}
.sj-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05; margin: 0 0 6px 0; font-weight: 800;
}
.sj-hero p { margin: 0; font-size: 18px; opacity: .95; }

/* Projects grid */
.sj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.sj-card {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  background: #0b1220; color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sj-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.sj-card img { width: 100%; height: 210px; object-fit: cover; filter: brightness(78%); }
.sj-card .sj-card-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  font-size: 20px; font-weight: 800; text-align: center;
}

/* Page headings (nicer) */
.page-Main_Page #firstHeading { display:none; }     /* hide the literal “Main Page” title */
.page-Main_Page h2.section-title {
  text-align:center; font-size: 26px; margin: 28px 0 8px;
  border: 0; color:#0a2342;
}