MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ===== SuperJoy minimal polish (safe, readable) ===== */ | ||
/* | /* Typography */ | ||
html, body { | |||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif; | |||
line-height: 1.55; | |||
color: #1f2937; /* slate-800 */ | |||
background: #fafafa; | |||
color: # | |||
} | } | ||
/* | /* Headings */ | ||
#firstHeading { | |||
font-weight: 800; | |||
color: #0f172a; /* slate-900 */ | |||
border-bottom: 1px solid #e5e7eb; | |||
padding-bottom: .25rem; | |||
} | } | ||
/* | /* Content width stays default; add a little breathing room */ | ||
. | .mw-body-content p { margin: .6rem 0 1rem; } | ||
} | |||
/* | /* Links */ | ||
a { color: #2563eb; } /* blue-600 */ | |||
a:visited { color: #4f46e5; } /* indigo-600 */ | |||
a:hover { color: #1d4ed8; text-decoration: none; } | |||
/* | /* Subtle buttons (used on main-page links) */ | ||
. | .sj-btn { | ||
display:inline-block; | |||
padding: 8px 14px; | |||
margin: 0 | border-radius: 10px; | ||
background:#1d4ed8; | |||
color:#fff!important; | |||
font-weight:700; | |||
margin:4px; | |||
box-shadow: 0 2px 6px rgba(0,0,0,.08); | |||
} | } | ||
.sj-btn:hover { background:#1844c6; } | |||
/* | /* ---- Main Page only (lightweight) ---- */ | ||
.sj-hero { | .page-Main_Page .sj-hero { | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
border-radius: | border-radius: 12px; | ||
box-shadow: 0 | box-shadow: 0 6px 20px rgba(0,0,0,.08); | ||
background:#111; | |||
} | } | ||
.sj-hero img { | .page-Main_Page .sj-hero img { | ||
width: 100%; max-height: | width:100%; | ||
filter: brightness( | max-height: 340px; | ||
object-fit: cover; | |||
filter: brightness(72%); | |||
} | } | ||
.sj-hero .sj-hero-text { | .page-Main_Page .sj-hero .sj-hero-text { | ||
position: absolute; inset: 0; | position:absolute; inset:0; | ||
display: grid; place-items: center; | display:grid; place-items:center; | ||
text-align: center; color: #fff; padding: 24px; | text-align:center; color:#fff; | ||
padding:24px; | |||
} | } | ||
.sj-hero h1 { | .page-Main_Page .sj-hero h1 { | ||
font-size: clamp(28px, 5vw, | margin:0 0 6px 0; | ||
font-weight:900; | |||
font-size: clamp(28px, 4.5vw, 44px); | |||
} | } | ||
.sj-hero p { margin: 0 | .page-Main_Page .sj-hero p { margin:0; opacity:.95; } | ||
/* | /* Project cards grid */ | ||
.sj-grid { | .page-Main_Page .sj-grid { | ||
display: grid; | display:grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); | ||
gap: | gap: 18px; | ||
margin-top: | margin-top: 16px; | ||
} | |||
.page-Main_Page .sj-card { | |||
position:relative; | |||
border-radius:12px; | |||
overflow:hidden; | |||
background:#0b1220; | |||
color:#fff; | |||
box-shadow: 0 8px 22px rgba(0,0,0,.10); | |||
transition: transform .15s ease, box-shadow .15s ease; | |||
} | |||
.page-Main_Page .sj-card:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 12px 26px rgba(0,0,0,.14); | |||
} | } | ||
.sj-card { | .page-Main_Page .sj-card img { | ||
width:100%; height:200px; object-fit:cover; filter:brightness(78%); | |||
} | } | ||
. | .page-Main_Page .sj-card .sj-card-title { | ||
position:absolute; left:0; right:0; bottom:0; | |||
.sj-card .sj-card-title { | padding:10px 12px; text-align:center; | ||
position: absolute; | background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); | ||
padding: 12px | font-weight:800; font-size:18px; | ||
} | } | ||
/* Page | /* Section title on Main Page */ | ||
.page-Main_Page h2.section-title { | .page-Main_Page h2.section-title { | ||
text-align:center; | text-align:center; | ||
border: 0; color:# | margin: 26px 0 6px; | ||
border:0; | |||
color:#0f172a; | |||
} | } | ||
Revision as of 04:29, 4 October 2025
/* ===== SuperJoy minimal polish (safe, readable) ===== */
/* Typography */
html, body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
line-height: 1.55;
color: #1f2937; /* slate-800 */
background: #fafafa;
}
/* Headings */
#firstHeading {
font-weight: 800;
color: #0f172a; /* slate-900 */
border-bottom: 1px solid #e5e7eb;
padding-bottom: .25rem;
}
/* Content width stays default; add a little breathing room */
.mw-body-content p { margin: .6rem 0 1rem; }
/* Links */
a { color: #2563eb; } /* blue-600 */
a:visited { color: #4f46e5; } /* indigo-600 */
a:hover { color: #1d4ed8; text-decoration: none; }
/* Subtle buttons (used on main-page links) */
.sj-btn {
display:inline-block;
padding: 8px 14px;
border-radius: 10px;
background:#1d4ed8;
color:#fff!important;
font-weight:700;
margin:4px;
box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.sj-btn:hover { background:#1844c6; }
/* ---- Main Page only (lightweight) ---- */
.page-Main_Page .sj-hero {
position: relative;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 6px 20px rgba(0,0,0,.08);
background:#111;
}
.page-Main_Page .sj-hero img {
width:100%;
max-height: 340px;
object-fit: cover;
filter: brightness(72%);
}
.page-Main_Page .sj-hero .sj-hero-text {
position:absolute; inset:0;
display:grid; place-items:center;
text-align:center; color:#fff;
padding:24px;
}
.page-Main_Page .sj-hero h1 {
margin:0 0 6px 0;
font-weight:900;
font-size: clamp(28px, 4.5vw, 44px);
}
.page-Main_Page .sj-hero p { margin:0; opacity:.95; }
/* Project cards grid */
.page-Main_Page .sj-grid {
display:grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 18px;
margin-top: 16px;
}
.page-Main_Page .sj-card {
position:relative;
border-radius:12px;
overflow:hidden;
background:#0b1220;
color:#fff;
box-shadow: 0 8px 22px rgba(0,0,0,.10);
transition: transform .15s ease, box-shadow .15s ease;
}
.page-Main_Page .sj-card:hover {
transform: translateY(-2px);
box-shadow: 0 12px 26px rgba(0,0,0,.14);
}
.page-Main_Page .sj-card img {
width:100%; height:200px; object-fit:cover; filter:brightness(78%);
}
.page-Main_Page .sj-card .sj-card-title {
position:absolute; left:0; right:0; bottom:0;
padding:10px 12px; text-align:center;
background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
font-weight:800; font-size:18px;
}
/* Section title on Main Page */
.page-Main_Page h2.section-title {
text-align:center;
margin: 26px 0 6px;
border:0;
color:#0f172a;
}