MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ===== SuperJoy Wiki Custom Styling ===== */ | /* ===== SuperJoy Wiki Custom Styling (Main Page) ===== */ | ||
.page-Main_Page { | .page-Main_Page { | ||
background: #fff; | background: #fff; | ||
font-family: | font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif; | ||
} | } | ||
| Line 29: | Line 29: | ||
} | } | ||
/* Social | /* Social Pills */ | ||
.page-Main_Page .sj-pill { | .page-Main_Page .sj-pill { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
gap: 0. | gap: 0.5rem; | ||
padding: 0.6rem 1.1rem; | padding: 0.6rem 1.1rem; | ||
border-radius: 9999px; | border-radius: 9999px; | ||
color: #fff; | color: #fff; | ||
font-weight: | font-weight: 700; | ||
font-size: 0. | font-size: 0.95rem; | ||
text-decoration: none; | text-decoration: none; | ||
line-height: 1; | |||
box-shadow: 0 3px 6px rgba(0,0,0,0.15); | box-shadow: 0 3px 6px rgba(0,0,0,0.15); | ||
transition: transform 0.2s, box-shadow 0.2s; | transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; | ||
will-change: transform; | |||
} | } | ||
.page-Main_Page .sj-pill:hover { | .page-Main_Page .sj-pill:hover { | ||
transform: translateY(-3px); | transform: translateY(-3px); | ||
box-shadow: 0 | box-shadow: 0 8px 16px rgba(0,0,0,0.25); | ||
} | } | ||
/* | /* Brand colors */ | ||
.page-Main_Page .sj-pill.discord { background-color: #5865F2; } | .page-Main_Page .sj-pill.discord { background-color: #5865F2; } | ||
.page-Main_Page .sj-pill.twitter { background-color: #1D9BF0; } | .page-Main_Page .sj-pill.twitter { background-color: #1D9BF0; } | ||
.page-Main_Page .sj-pill.youtube { background-color: # | .page-Main_Page .sj-pill.youtube { background-color: #FF0033; } | ||
.page-Main_Page .sj-pill.web { background-color: #111; } | .page-Main_Page .sj-pill.web { background-color: #111; } | ||
/* Icon | /* Icon wrapper + SVGs */ | ||
.page-Main_Page .sj-pill .ico { | .page-Main_Page .sj-pill .ico { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
width: 20px; | |||
height: 20px; | |||
} | } | ||
.page-Main_Page .sj-pill .ico | /* Ensure all inline SVGs render white and consistent size */ | ||
.page-Main_Page .sj-pill .ico svg { | |||
width: 18px; | width: 18px; | ||
height: 18px; | height: 18px; | ||
display: block; | display: block; | ||
fill: currentColor; /* <- forces white */ | |||
} | } | ||
| Line 88: | Line 92: | ||
overflow: hidden; | overflow: hidden; | ||
text-decoration: none; | text-decoration: none; | ||
width: | width: 220px; /* a bit larger to breathe */ | ||
transition: transform 0.2s, box-shadow 0.2s; | transition: transform 0.2s, box-shadow 0.2s; | ||
} | } | ||
| Line 104: | Line 108: | ||
.page-Main_Page .sj-card h3 { | .page-Main_Page .sj-card h3 { | ||
font-size: | font-size: 1rem; | ||
font-weight: | font-weight: 700; | ||
margin: 0. | margin: 0.65rem 0 1rem 0; | ||
text-align: center; | text-align: center; | ||
color: #111; | color: #111; | ||
| Line 115: | Line 119: | ||
text-align: center; | text-align: center; | ||
color: #666; | color: #666; | ||
font-size: 0. | font-size: 0.9rem; | ||
margin-top: 2rem; | margin-top: 2rem; | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
} | } | ||
Revision as of 21:16, 4 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.75rem;
margin: 1.5rem auto;
}
/* Social Pills */
.page-Main_Page .sj-pill {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1.1rem;
border-radius: 9999px;
color: #fff;
font-weight: 700;
font-size: 0.95rem;
text-decoration: none;
line-height: 1;
box-shadow: 0 3px 6px rgba(0,0,0,0.15);
transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
will-change: transform;
}
.page-Main_Page .sj-pill:hover {
transform: translateY(-3px);
box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
/* 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: #FF0033; }
.page-Main_Page .sj-pill.web { background-color: #111; }
/* Icon wrapper + SVGs */
.page-Main_Page .sj-pill .ico {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
}
/* Ensure all inline SVGs render white and consistent size */
.page-Main_Page .sj-pill .ico svg {
width: 18px;
height: 18px;
display: block;
fill: currentColor; /* <- forces white */
}
/* ---------- 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; /* a bit larger to breathe */
transition: transform 0.2s, box-shadow 0.2s;
}
.page-Main_Page .sj-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.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.65rem 0 1rem 0;
text-align: center;
color: #111;
}
/* ---------- FOOTER ---------- */
.page-Main_Page .sj-footer {
text-align: center;
color: #666;
font-size: 0.9rem;
margin-top: 2rem;
margin-bottom: 1rem;
}