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


/* ===========================
/* Hero Banner */
  SUPERJOY WIKI FRONT PAGE HERO
.sj-hero {
  =========================== */
  background: url("/images/a/a8/SuperJoyBanner.png") center center / cover no-repeat;
 
  height: 340px;
/* Hero container */
  display: flex;
.page-Main_Page .sj-hero {
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  border-radius: 10px;
   position: relative;
   position: relative;
   height: 260px;
   margin-bottom: 30px;
  border-radius: 14px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
   box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  background: center / cover no-repeat url(/images/a/a8/SuperJoyBanner.png);
  margin-bottom: 32px;
}
}


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


/* Text overlay styling */
.sj-hero__text {
.page-Main_Page .sj-hero__text {
   position: relative;
   position: absolute;
   z-index: 2;
  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 */
.sj-hero__text h1 {
.page-Main_Page .sj-hero__text h1 {
   font-size: 2.4em;
  margin: 0 0 6px 0;
   font-weight: 700;
   font-weight: 800;
   margin-bottom: 10px;
   font-size: clamp(28px, 4.5vw, 44px);
   letter-spacing: 0.5px;
}
}


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


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


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


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


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


/* Twitter blue */
.sj-links a:hover {
.page-Main_Page .sj-links a.twitter {
   opacity: 0.85;
   background-color: #1da1f2;
  transform: translateY(-2px);
}
.page-Main_Page .sj-links a.twitter:hover {
  background-color: #178bd6;
}
}


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


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


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


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


.page-Main_Page .sj-project-card h3 {
.sj-project-card h3 {
  text-align: center;
   background: #111827;
   background: #111827;
   color: #fff;
   color: white;
  font-weight: 600;
  padding: 10px;
   margin: 0;
   margin: 0;
  padding: 14px;
}
  font-weight: 600;
 
/* Footer */
.sj-footer {
   text-align: center;
   text-align: center;
   font-size: 18px;
  color: #6b7280;
   font-size: 14px;
  margin-top: 40px;
  padding-bottom: 10px;
}
}

Revision as of 20:20, 4 October 2025

/* === SuperJoy Wiki Styling === */
body.page-Main_Page #firstHeading {
  display: none; /* Hide "Main Page" heading */
}

/* Hero Banner */
.sj-hero {
  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 {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
}

.sj-hero__text {
  position: relative;
  z-index: 2;
}

.sj-hero__text h1 {
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.sj-hero__text p {
  font-size: 1.2em;
  opacity: 0.9;
}

/* Social Links */
.sj-links {
  text-align: center;
  margin-bottom: 40px;
}

.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 {
  background: #5865F2;
}

.sj-links a.feedback {
  background: #43B581;
}

.sj-links a.twitter {
  background: #1DA1F2;
}

.sj-links a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Projects Section */
.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 {
  text-align: center;
  background: #111827;
  color: white;
  font-weight: 600;
  padding: 10px;
  margin: 0;
}

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