MediaWiki:Common.css: Difference between revisions
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 */ | ||
.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; | position: relative; | ||
margin-bottom: 30px; | |||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); | |||
box-shadow: 0 | |||
} | } | ||
.sj-hero::after { | |||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background: | background: rgba(0, 0, 0, 0.45); | ||
border-radius: 10px; | |||
} | } | ||
.sj-hero__text { | |||
position: relative; | |||
position: | z-index: 2; | ||
} | } | ||
.sj-hero__text h1 { | |||
font-size: 2.4em; | |||
font-weight: 700; | |||
font- | margin-bottom: 10px; | ||
font- | |||
} | } | ||
.sj-hero__text p { | |||
font-size: 1.2em; | |||
font-size: | |||
opacity: 0.9; | opacity: 0.9; | ||
} | } | ||
/* | /* Social Links */ | ||
.sj-links { | |||
text-align: center; | text-align: center; | ||
margin: | margin-bottom: 40px; | ||
} | } | ||
.sj-links a { | |||
display: inline-block; | display: inline-block; | ||
padding: 10px 20px; | padding: 10px 20px; | ||
border-radius: | margin: 5px 10px; | ||
border-radius: 6px; | |||
color: #fff; | |||
font-weight: 600; | font-weight: 600; | ||
text-decoration: none; | text-decoration: none; | ||
transition: all 0. | transition: all 0.25s ease; | ||
} | } | ||
.sj-links a.discord { | |||
background: #5865F2; | |||
background | |||
} | } | ||
background | .sj-links a.feedback { | ||
background: #43B581; | |||
} | } | ||
.sj-links a.twitter { | |||
background: #1DA1F2; | |||
background | |||
} | } | ||
.sj-links a:hover { | |||
opacity: 0.85; | |||
transform: translateY(-2px); | |||
} | } | ||
/* | /* Projects Section */ | ||
.sj-projects { | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
margin-top: | gap: 24px; | ||
margin-top: 20px; | |||
} | } | ||
.sj-project-card { | |||
display: block; | display: block; | ||
width: | width: 300px; | ||
border-radius: | border-radius: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
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; | ||
} | } | ||
.sj-project-card:hover { | |||
transform: translateY(- | transform: translateY(-4px); | ||
box-shadow: 0 | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); | ||
} | } | ||
.sj-project-card img { | |||
width: 100%; | width: 100%; | ||
height: 200px; | height: 200px; | ||
object-fit: cover; | object-fit: cover; | ||
filter: brightness( | filter: brightness(75%); | ||
} | } | ||
.sj-project-card h3 { | |||
text-align: center; | |||
background: #111827; | background: #111827; | ||
color: | color: white; | ||
font-weight: 600; | |||
padding: 10px; | |||
margin: 0; | margin: 0; | ||
} | |||
/* Footer */ | |||
.sj-footer { | |||
text-align: center; | text-align: center; | ||
font-size: | 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;
}