MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 119: | Line 119: | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
} | } | ||
/* --- | /* ---------- LOGO ---------- */ | ||
.skin-vector .mw-wiki-logo { | .skin-vector .mw-wiki-logo { | ||
width: | width: 360px !important; | ||
height: | height: 228px !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
| Line 128: | Line 128: | ||
} | } | ||
.skin-vector #p-logo, | .skin-vector #p-logo, | ||
.skin-vector .mw-portlet-logo { | .skin-vector .mw-portlet-logo { | ||
width: 180px !important; | width: 180px !important; | ||
} | } | ||
Revision as of 04:04, 5 October 2025
/* ===== SuperJoy Wiki Custom Styling (Main Page) ===== */
.page-Main_Page {
background: #fff;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
}
/* ---------- HERO BANNER ---------- */
.page-Main_Page .sj-hero {
width: calc(100% - 2rem);
margin: 1rem auto 0 auto;
background-image: url('https://wiki.sjs.gg/images/a/a8/SuperJoyBanner.png');
background-size: cover;
background-position: center;
border-radius: 16px;
height: 260px;
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
position: relative;
max-width: 1600px;
}
/* ---------- QUICK LINKS ---------- */
.page-Main_Page .sj-quick {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 0.8rem;
margin: 1.6rem auto;
}
.page-Main_Page .sj-pill,
.page-Main_Page .sj-pill:visited {
display: inline-flex;
align-items: center;
gap: 0.6rem;
padding: 0.65rem 1.1rem;
border-radius: 9999px;
color: #fff !important; /* force white text & icons (currentColor) */
font-weight: 700;
font-size: 0.96rem;
text-decoration: none;
line-height: 1;
box-shadow: 0 3px 6px rgba(0,0,0,0.14);
transition: transform 0.18s, box-shadow 0.18s;
will-change: transform;
}
.page-Main_Page .sj-pill:hover {
transform: translateY(-3px);
box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}
/* Brand colors */
.page-Main_Page .sj-pill.discord { background-color: #5865F2; }
.page-Main_Page .sj-pill.twitter { background-color: #1D9BF0; }
.page-Main_Page .sj-pill.youtube { background-color: #FF0000; }
.page-Main_Page .sj-pill.web { background-color: #111; }
/* Font Awesome icons in the pills */
.page-Main_Page .sj-pill i {
font-size: 1.1em; /* slightly larger so they read well */
line-height: 1; /* avoid vertical squish */
display: inline-block; /* stable box for vertical-align */
vertical-align: -0.05em;
}
/* Per-brand visual nudge so they feel optically balanced */
.page-Main_Page .sj-pill.youtube i { font-size: 1.18em; }
.page-Main_Page .sj-pill.discord i { font-size: 1.14em; }
.page-Main_Page .sj-pill.twitter i { font-size: 1.12em; }
/* ---------- PROJECTS ---------- */
.page-Main_Page .sj-projects {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
margin: 2rem auto;
}
.page-Main_Page .sj-card {
display: flex;
flex-direction: column;
align-items: center;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
overflow: hidden;
text-decoration: none;
width: 220px;
transition: transform 0.18s, box-shadow 0.18s;
}
.page-Main_Page .sj-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}
.page-Main_Page .sj-card img {
width: 100%;
height: auto;
display: block;
}
.page-Main_Page .sj-card h3 {
font-size: 1rem;
font-weight: 700;
margin: 0.7rem 0 1rem 0;
text-align: center;
color: #111;
}
/* ---------- FOOTER ---------- */
.page-Main_Page .sj-footer {
text-align: center;
color: #666;
font-size: 0.92rem;
margin-top: 2rem;
margin-bottom: 1rem;
}
/* ---------- LOGO ---------- */
.skin-vector .mw-wiki-logo {
width: 360px !important;
height: 228px !important;
background-size: contain !important;
background-repeat: no-repeat !important;
display: block !important;
}
.skin-vector #p-logo,
.skin-vector .mw-portlet-logo {
width: 180px !important;
}