MediaWiki:Common.css

From SuperJoy Wiki
Revision as of 20:40, 4 October 2025 by Zach (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ------------------------------
   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;
}