MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→=== SuperJoy Studios Global Wiki Theme ===: →General layout: body { background-color: #fafafa; font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; color: #1b1b1b; } →Page title: #firstHeading { font-weight: 700; color: #0a2342; border-bottom: 2px solid #e0e0e0; } →Header / navbar: .vector-header, .vector-menu-content { background: linear-gradient(90deg, #0a2342, #102b57); color: #fff; } .vector-menu-content a, .vector-header a { c..." |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ---------------- SuperJoy base polish ---------------- */ | ||
body { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; } | |||
a { text-decoration: none; } | |||
a:hover { text-decoration: underline; } | |||
/* | /* Header/nav colors for Vector 2010/2022 */ | ||
.vector-header, .mw-footer-container { | |||
background | background: linear-gradient(90deg, #0a2342, #102b57); | ||
color: #fff; | |||
color: # | |||
} | } | ||
#footer, .mw-footer-container a { color: #cfe0ff !important; } | |||
/* | /* Buttons (used in main-page links) */ | ||
.sj-btn { | |||
display: inline-block; | |||
padding: 10px 18px; | |||
border-radius: 10px; | |||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #fff !important; | ||
margin: 6px; | |||
} | } | ||
.sj-btn.discord { background:#5865F2; } | |||
.sj-btn.feedback { background:#31a870; } | |||
.sj-btn.twitter { background:#1DA1F2; } | |||
.sj-btn:hover { filter: brightness(0.95); } | |||
/* | /* ---------------- Main Page ONLY ---------------- */ | ||
. | .page-Main_Page #siteSub, | ||
. | .page-Main_Page .mw-indicators, | ||
.page-Main_Page .mw-portlet-lang, | |||
.page-Main_Page .vector-toc, | |||
.page-Main_Page .vector-pagelanguage-variant-selector { | |||
display: none !important; | |||
} | } | ||
.vector- | /* Hide sidebar ONLY on Main Page (covers Vector 2010 + 2022) */ | ||
.vector- | .page-Main_Page #mw-panel, | ||
.page-Main_Page .vector-sidebar-container, | |||
.page-Main_Page .vector-main-menu { | |||
display: none !important; | |||
} | } | ||
.vector- | /* Expand content to full width when sidebar hidden */ | ||
.vector- | .page-Main_Page #content, | ||
.page-Main_Page .mw-content-container, | |||
.page-Main_Page .vector-column-start, | |||
.page-Main_Page .vector-column-end { | |||
margin: 0 !important; | |||
} | } | ||
.page-Main_Page .vector-column-start { display:none !important; } | |||
/* | /* Center the main body and add breathing room */ | ||
.page-Main_Page .mw-body, | |||
.page-Main_Page .mw-body-content { | |||
max-width: 1100px; | |||
margin: 0 auto; | |||
} | } | ||
/* Hero */ | |||
.sj-hero { | |||
position: relative; | |||
overflow: hidden; | |||
border-radius: 14px; | |||
box-shadow: 0 10px 30px rgba(0,0,0,.15); | |||
} | |||
.sj-hero img { | |||
width: 100%; max-height: 360px; object-fit: cover; | |||
filter: brightness(65%); | |||
} | } | ||
.sj-hero .sj-hero-text { | |||
position: absolute; inset: 0; | |||
display: grid; place-items: center; | |||
text- | text-align: center; color: #fff; padding: 24px; | ||
} | } | ||
.sj-hero h1 { | |||
font-size: clamp(28px, 5vw, 48px); | |||
. | line-height: 1.05; margin: 0 0 6px 0; font-weight: 800; | ||
} | } | ||
.sj-hero p { margin: 0; font-size: 18px; opacity: .95; } | |||
. | /* Projects grid */ | ||
.sj-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | |||
gap: 22px; | |||
margin-top: 18px; | |||
} | } | ||
.sj-card { | |||
position: relative; border-radius: 14px; overflow: hidden; | |||
box-shadow: 0 8px 24px rgba(0,0,0,.12); | |||
background: #0b1220; color: #fff; | |||
transition: transform .18s ease, box-shadow .18s ease; | |||
transition: | |||
} | } | ||
.sj-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); } | |||
.sj-card img { width: 100%; height: 210px; object-fit: cover; filter: brightness(78%); } | |||
.sj-card .sj-card-title { | |||
background: | position: absolute; bottom: 0; left: 0; right: 0; | ||
padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); | |||
font-size: 20px; font-weight: 800; text-align: center; | |||
} | } | ||
# | /* Page headings (nicer) */ | ||
color: # | .page-Main_Page #firstHeading { display:none; } /* hide the literal “Main Page” title */ | ||
.page-Main_Page h2.section-title { | |||
text-align:center; font-size: 26px; margin: 28px 0 8px; | |||
border: 0; color:#0a2342; | |||
} | } | ||
Revision as of 04:27, 4 October 2025
/* ---------------- SuperJoy base polish ---------------- */
body { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
/* Header/nav colors for Vector 2010/2022 */
.vector-header, .mw-footer-container {
background: linear-gradient(90deg, #0a2342, #102b57);
color: #fff;
}
#footer, .mw-footer-container a { color: #cfe0ff !important; }
/* Buttons (used in main-page links) */
.sj-btn {
display: inline-block;
padding: 10px 18px;
border-radius: 10px;
font-weight: 700;
color: #fff !important;
margin: 6px;
}
.sj-btn.discord { background:#5865F2; }
.sj-btn.feedback { background:#31a870; }
.sj-btn.twitter { background:#1DA1F2; }
.sj-btn:hover { filter: brightness(0.95); }
/* ---------------- Main Page ONLY ---------------- */
.page-Main_Page #siteSub,
.page-Main_Page .mw-indicators,
.page-Main_Page .mw-portlet-lang,
.page-Main_Page .vector-toc,
.page-Main_Page .vector-pagelanguage-variant-selector {
display: none !important;
}
/* Hide sidebar ONLY on Main Page (covers Vector 2010 + 2022) */
.page-Main_Page #mw-panel,
.page-Main_Page .vector-sidebar-container,
.page-Main_Page .vector-main-menu {
display: none !important;
}
/* Expand content to full width when sidebar hidden */
.page-Main_Page #content,
.page-Main_Page .mw-content-container,
.page-Main_Page .vector-column-start,
.page-Main_Page .vector-column-end {
margin: 0 !important;
}
.page-Main_Page .vector-column-start { display:none !important; }
/* Center the main body and add breathing room */
.page-Main_Page .mw-body,
.page-Main_Page .mw-body-content {
max-width: 1100px;
margin: 0 auto;
}
/* Hero */
.sj-hero {
position: relative;
overflow: hidden;
border-radius: 14px;
box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.sj-hero img {
width: 100%; max-height: 360px; object-fit: cover;
filter: brightness(65%);
}
.sj-hero .sj-hero-text {
position: absolute; inset: 0;
display: grid; place-items: center;
text-align: center; color: #fff; padding: 24px;
}
.sj-hero h1 {
font-size: clamp(28px, 5vw, 48px);
line-height: 1.05; margin: 0 0 6px 0; font-weight: 800;
}
.sj-hero p { margin: 0; font-size: 18px; opacity: .95; }
/* Projects grid */
.sj-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 22px;
margin-top: 18px;
}
.sj-card {
position: relative; border-radius: 14px; overflow: hidden;
box-shadow: 0 8px 24px rgba(0,0,0,.12);
background: #0b1220; color: #fff;
transition: transform .18s ease, box-shadow .18s ease;
}
.sj-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.sj-card img { width: 100%; height: 210px; object-fit: cover; filter: brightness(78%); }
.sj-card .sj-card-title {
position: absolute; bottom: 0; left: 0; right: 0;
padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
font-size: 20px; font-weight: 800; text-align: center;
}
/* Page headings (nicer) */
.page-Main_Page #firstHeading { display:none; } /* hide the literal “Main Page” title */
.page-Main_Page h2.section-title {
text-align:center; font-size: 26px; margin: 28px 0 8px;
border: 0; color:#0a2342;
}