MediaWiki:Common.css: Difference between revisions
Appearance
Prashantt492 (talk | contribs) Add DevClub neon theme CSS |
Prashantt492 (talk | contribs) Fix DevClub theme: hide default heading, improve spacing and polish |
||
| Line 25: | Line 25: | ||
} | } | ||
/* ── DevClub neon theme ─────────────────────────────────────────────── */ | |||
/* Hide the default page heading on DevClub page */ | |||
body.page-DevClub .mw-page-title-main, | |||
body.page-DevClub .firstHeading { | |||
display: none !important; | |||
} | |||
/* | /* Extend container to fill content area */ | ||
.dc-page { | .dc-page { | ||
background: #0a0a1a; | background: #0a0a1a; | ||
color: #e0e0e0; | color: #e0e0e0; | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: | padding: 2.5em 3em; | ||
margin: - | margin: -1.5em -1.5em 1em -1.5em; | ||
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; | font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; | ||
position: relative; | position: relative; | ||
| Line 43: | Line 50: | ||
top: 0; left: 0; right: 0; bottom: 0; | top: 0; left: 0; right: 0; bottom: 0; | ||
background: | background: | ||
radial-gradient(ellipse at | radial-gradient(ellipse at 15% 0%, rgba(0, 255, 136, 0.10) 0%, transparent 50%), | ||
radial-gradient(ellipse at | radial-gradient(ellipse at 85% 100%, rgba(0, 170, 255, 0.07) 0%, transparent 50%), | ||
radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.02) 0%, transparent 70%); | |||
pointer-events: none; | pointer-events: none; | ||
z-index: 0; | z-index: 0; | ||
} | } | ||
.dc-page > * { | .dc-page > * { position: relative; z-index: 1; } | ||
} | |||
/* Header */ | /* ── Header ── */ | ||
.dc-header { | .dc-header { | ||
text-align: center; | text-align: center; | ||
padding: 1.5em | padding: 2em 0 1.5em; | ||
border-bottom: 1px solid rgba(0, 255, 136, 0. | border-bottom: 1px solid rgba(0, 255, 136, 0.12); | ||
margin-bottom: | margin-bottom: 2em; | ||
} | } | ||
.dc-title { | .dc-title { | ||
font-size: | font-size: 3.2em; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0. | letter-spacing: 0.06em; | ||
color: #00ff88; | color: #00ff88; | ||
text-shadow: 0 0 | text-shadow: 0 0 30px rgba(0, 255, 136, 0.35), 0 0 80px rgba(0, 255, 136, 0.10); | ||
margin: 0; | margin: 0; | ||
line-height: 1.2; | line-height: 1.2; | ||
| Line 73: | Line 78: | ||
.dc-tagline { | .dc-tagline { | ||
color: # | color: #777; | ||
font-size: | font-size: 0.95em; | ||
margin-top: 0. | margin-top: 0.6em; | ||
letter-spacing: 0. | letter-spacing: 0.2em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
font-weight: 400; | font-weight: 400; | ||
} | } | ||
/* | /* ── Link pills ── */ | ||
.dc-links { | .dc-links { | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 0.8em; | ||
margin-top: 1. | margin-top: 1.5em; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
| Line 93: | Line 98: | ||
color: #00aaff !important; | color: #00aaff !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
padding: 0. | padding: 0.4em 1.2em; | ||
border: 1px solid rgba(0, 170, 255, 0. | border: 1px solid rgba(0, 170, 255, 0.25); | ||
border-radius: 20px; | border-radius: 20px; | ||
font-size: 0.85em; | font-size: 0.85em; | ||
font-weight: 600; | font-weight: 600; | ||
transition: all 0. | transition: all 0.25s; | ||
letter-spacing: 0. | letter-spacing: 0.02em; | ||
} | } | ||
| Line 105: | Line 110: | ||
background: rgba(0, 170, 255, 0.12); | background: rgba(0, 170, 255, 0.12); | ||
border-color: #00aaff; | border-color: #00aaff; | ||
box-shadow: 0 0 | box-shadow: 0 0 15px rgba(0, 170, 255, 0.15); | ||
color: #fff !important; | color: #fff !important; | ||
} | } | ||
/* Section headings */ | /* ── Section headings ── */ | ||
.dc-page h2 { | .dc-page h2, | ||
.dc-page .mw-heading2 h2 { | |||
color: #00ff88 !important; | color: #00ff88 !important; | ||
font-size: 1. | font-size: 1.2em !important; | ||
font-weight: 700; | font-weight: 700 !important; | ||
letter-spacing: 0. | letter-spacing: 0.12em !important; | ||
text-transform: uppercase; | text-transform: uppercase !important; | ||
border: none !important; | border: none !important; | ||
border-bottom: 1px solid rgba(0, 255, 136, 0. | border-bottom: 1px solid rgba(0, 255, 136, 0.12) !important; | ||
padding-bottom: 0. | padding-bottom: 0.5em !important; | ||
margin-top: | margin-top: 2.5em !important; | ||
text-shadow: 0 0 10px rgba(0, 255, 136, 0. | text-shadow: 0 0 10px rgba(0, 255, 136, 0.15); | ||
} | } | ||
.dc-page | .dc-page .mw-editsection a { | ||
color: | color: rgba(0, 255, 136, 0.3) !important; | ||
font-size: | font-size: 0.75em; | ||
} | |||
.dc-page .mw-editsection a:hover { | |||
color: #00ff88 !important; | |||
} | } | ||
/* Intro | /* ── Intro ── */ | ||
.dc-intro { | .dc-intro { | ||
font-size: 1.05em; | font-size: 1.05em; | ||
line-height: 1. | line-height: 1.8; | ||
color: # | color: #aaa; | ||
max-width: | max-width: 650px; | ||
margin: 0 auto | margin: 0 auto 0.5em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* Cards | /* ── Stats ── */ | ||
.dc-stats { | |||
display: flex; | |||
justify-content: center; | |||
gap: 3em; | |||
margin: 2em 0 0.5em; | |||
flex-wrap: wrap; | |||
} | |||
.dc-stat { text-align: center; } | |||
.dc-stat-num { | |||
color: #00ff88; | |||
font-size: 2.4em; | |||
font-weight: 800; | |||
line-height: 1; | |||
text-shadow: 0 0 20px rgba(0, 255, 136, 0.25); | |||
} | |||
.dc-stat-label { | |||
color: #555; | |||
font-size: 0.7em; | |||
text-transform: uppercase; | |||
letter-spacing: 0.15em; | |||
margin-top: 0.3em; | |||
} | |||
/* ── Cards ── */ | |||
.dc-cards { | .dc-cards { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | ||
gap: 1em; | gap: 1em; | ||
margin: | margin: 1.2em 0; | ||
} | } | ||
.dc-card { | .dc-card { | ||
background: rgba(255, 255, 255, 0. | background: rgba(255, 255, 255, 0.025); | ||
border: 1px solid rgba(0, 255, 136, 0. | border: 1px solid rgba(0, 255, 136, 0.08); | ||
border-radius: 10px; | border-radius: 10px; | ||
padding: 1. | padding: 1.4em; | ||
transition: all 0. | transition: all 0.25s; | ||
} | } | ||
.dc-card:hover { | .dc-card:hover { | ||
border-color: rgba(0, 255, 136, 0. | border-color: rgba(0, 255, 136, 0.3); | ||
background: rgba(0, 255, 136, 0. | background: rgba(0, 255, 136, 0.03); | ||
box-shadow: 0 0 | box-shadow: 0 0 25px rgba(0, 255, 136, 0.05); | ||
transform: translateY(-2px); | |||
} | } | ||
| Line 166: | Line 201: | ||
color: #00ff88; | color: #00ff88; | ||
font-weight: 700; | font-weight: 700; | ||
font-size: | font-size: 1.05em; | ||
margin-bottom: 0. | margin-bottom: 0.5em; | ||
} | } | ||
.dc-card div { | |||
color: # | color: #888; | ||
font-size: 0.88em; | font-size: 0.88em; | ||
line-height: 1. | line-height: 1.6; | ||
} | } | ||
/* | /* ── Timeline ── */ | ||
.dc-timeline { | .dc-timeline { | ||
border-left: 2px solid rgba(0, 255, 136, 0. | border-left: 2px solid rgba(0, 255, 136, 0.15); | ||
margin: | margin: 1.2em 0 1em 0.6em; | ||
padding-left: 1. | padding-left: 1.8em; | ||
} | } | ||
.dc-event { | .dc-event { | ||
position: relative; | position: relative; | ||
margin-bottom: 1. | margin-bottom: 1.8em; | ||
} | } | ||
| Line 191: | Line 226: | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
left: - | left: -2.15em; | ||
top: 0. | top: 0.4em; | ||
width: 10px; | width: 10px; | ||
height: 10px; | height: 10px; | ||
background: #00ff88; | background: #00ff88; | ||
border-radius: 50%; | border-radius: 50%; | ||
box-shadow: 0 0 | box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); | ||
} | } | ||
.dc-event-date { | .dc-event-date { | ||
color: #00aaff; | color: #00aaff; | ||
font-size: 0. | font-size: 0.78em; | ||
font-weight: | font-weight: 700; | ||
letter-spacing: 0. | letter-spacing: 0.1em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | } | ||
| Line 211: | Line 246: | ||
color: #e0e0e0; | color: #e0e0e0; | ||
font-weight: 700; | font-weight: 700; | ||
font-size: | font-size: 1.05em; | ||
margin: 0.15em 0; | margin: 0.15em 0; | ||
} | } | ||
.dc-event-desc { | .dc-event-desc { | ||
color: # | color: #777; | ||
font-size: 0.88em; | font-size: 0.88em; | ||
line-height: 1. | line-height: 1.6; | ||
} | } | ||
/* ── Partner tags ── */ | |||
/* | |||
.dc-partners { | .dc-partners { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0.6em; | gap: 0.6em; | ||
margin: | margin: 1em 0; | ||
} | } | ||
.dc-tag { | .dc-tag { | ||
background: rgba(0, 170, 255, 0. | background: rgba(0, 170, 255, 0.06); | ||
border: 1px solid rgba(0, 170, 255, 0. | border: 1px solid rgba(0, 170, 255, 0.18); | ||
color: #00aaff; | color: #00aaff; | ||
padding: 0. | padding: 0.3em 1em; | ||
border-radius: | border-radius: 16px; | ||
font-size: 0.82em; | font-size: 0.82em; | ||
font-weight: 500; | font-weight: 500; | ||
transition: all 0.2s; | |||
} | |||
.dc-tag:hover { | |||
background: rgba(0, 170, 255, 0.12); | |||
border-color: rgba(0, 170, 255, 0.4); | |||
} | } | ||
/* Footer | /* ── Footer ── */ | ||
.dc-footer { | .dc-footer { | ||
text-align: center; | text-align: center; | ||
margin-top: | margin-top: 2.5em; | ||
padding-top: | padding-top: 1.2em; | ||
border-top: 1px solid rgba(0, 255, 136, 0. | border-top: 1px solid rgba(0, 255, 136, 0.08); | ||
color: #444; | |||
font-size: 0.85em; | |||
} | } | ||
.dc-footer a { | .dc-footer a { | ||
color: # | color: #444 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
margin: 0 0.8em; | margin: 0 0.8em; | ||
transition: color 0.2s; | transition: color 0.2s; | ||
| Line 308: | Line 301: | ||
} | } | ||
/* | /* ── Bullet lists inside dc-page ── */ | ||
.dc-page ul { list-style: none; padding-left: 0; } | |||
.dc-page ul li { | |||
padding: 0.35em 0 0.35em 1.4em; | |||
position: relative; | |||
color: #999; | |||
} | |||
.dc-page ul li::before { | |||
content: '\25B9'; | |||
position: absolute; | |||
left: 0; | |||
color: #00ff88; | |||
font-weight: bold; | |||
} | |||
/* ── Wiki elements inside dc-page ── */ | |||
.dc-page .wikitable { | .dc-page .wikitable { | ||
background: transparent !important; | background: transparent !important; | ||
border: 1px solid rgba(0, 255, 136, 0. | border: 1px solid rgba(0, 255, 136, 0.12) !important; | ||
color: #c0c0c0; | color: #c0c0c0; | ||
} | } | ||
.dc-page .wikitable th { | .dc-page .wikitable th { | ||
background: rgba(0, 255, 136, 0. | background: rgba(0, 255, 136, 0.06) !important; | ||
color: #00ff88 !important; | color: #00ff88 !important; | ||
border-color: rgba(0, 255, 136, 0. | border-color: rgba(0, 255, 136, 0.12) !important; | ||
} | } | ||
.dc-page .wikitable td { | .dc-page .wikitable td { | ||
border-color: rgba(0, 255, 136, 0.08) !important; | |||
background: transparent !important; | |||
} | |||
/* ── Links inside dc-page (not in dc-links) ── */ | |||
.dc-page a:not(.dc-links a):not(.dc-footer a):not(.mw-editsection a) { | |||
color: #00aaff !important; | |||
} | |||
/* ── Table of contents override ── */ | |||
body.page-DevClub .vector-toc, | |||
body.page-DevClub #vector-toc-collapsed-button { | |||
background: #0f0f25 !important; | |||
border-color: rgba(0, 255, 136, 0.1) !important; | border-color: rgba(0, 255, 136, 0.1) !important; | ||
} | } | ||
body.page-DevClub .vector-toc .vector-toc-link { | |||
. | color: #aaa !important; | ||
. | } | ||
body.page-DevClub .vector-toc .vector-toc-link:hover { | |||
color: #00ff88 !important; | |||
} | } | ||
Revision as of 12:52, 16 April 2026
/* Constrain external images in article content to a reasonable size */
.mw-parser-output img:not(.mw-file-element) {
max-width: 200px;
max-height: 250px;
width: auto;
height: auto;
}
/* Hero banner image on Main Page - override the constraint above */
.mw-parser-output .cs-hero-banner img {
max-width: 100% !important;
max-height: 350px !important;
width: 100% !important;
height: auto !important;
object-fit: cover;
border-radius: 6px;
display: block;
}
.cs-hero-banner {
text-align: center;
margin-bottom: 1em;
overflow: hidden;
border-radius: 6px;
}
/* ── DevClub neon theme ─────────────────────────────────────────────── */
/* Hide the default page heading on DevClub page */
body.page-DevClub .mw-page-title-main,
body.page-DevClub .firstHeading {
display: none !important;
}
/* Extend container to fill content area */
.dc-page {
background: #0a0a1a;
color: #e0e0e0;
border-radius: 12px;
padding: 2.5em 3em;
margin: -1.5em -1.5em 1em -1.5em;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
position: relative;
overflow: hidden;
}
.dc-page::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background:
radial-gradient(ellipse at 15% 0%, rgba(0, 255, 136, 0.10) 0%, transparent 50%),
radial-gradient(ellipse at 85% 100%, rgba(0, 170, 255, 0.07) 0%, transparent 50%),
radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.02) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}
.dc-page > * { position: relative; z-index: 1; }
/* ── Header ── */
.dc-header {
text-align: center;
padding: 2em 0 1.5em;
border-bottom: 1px solid rgba(0, 255, 136, 0.12);
margin-bottom: 2em;
}
.dc-title {
font-size: 3.2em;
font-weight: 800;
letter-spacing: 0.06em;
color: #00ff88;
text-shadow: 0 0 30px rgba(0, 255, 136, 0.35), 0 0 80px rgba(0, 255, 136, 0.10);
margin: 0;
line-height: 1.2;
}
.dc-tagline {
color: #777;
font-size: 0.95em;
margin-top: 0.6em;
letter-spacing: 0.2em;
text-transform: uppercase;
font-weight: 400;
}
/* ── Link pills ── */
.dc-links {
display: flex;
justify-content: center;
gap: 0.8em;
margin-top: 1.5em;
flex-wrap: wrap;
}
.dc-links a {
color: #00aaff !important;
text-decoration: none !important;
padding: 0.4em 1.2em;
border: 1px solid rgba(0, 170, 255, 0.25);
border-radius: 20px;
font-size: 0.85em;
font-weight: 600;
transition: all 0.25s;
letter-spacing: 0.02em;
}
.dc-links a:hover {
background: rgba(0, 170, 255, 0.12);
border-color: #00aaff;
box-shadow: 0 0 15px rgba(0, 170, 255, 0.15);
color: #fff !important;
}
/* ── Section headings ── */
.dc-page h2,
.dc-page .mw-heading2 h2 {
color: #00ff88 !important;
font-size: 1.2em !important;
font-weight: 700 !important;
letter-spacing: 0.12em !important;
text-transform: uppercase !important;
border: none !important;
border-bottom: 1px solid rgba(0, 255, 136, 0.12) !important;
padding-bottom: 0.5em !important;
margin-top: 2.5em !important;
text-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}
.dc-page .mw-editsection a {
color: rgba(0, 255, 136, 0.3) !important;
font-size: 0.75em;
}
.dc-page .mw-editsection a:hover {
color: #00ff88 !important;
}
/* ── Intro ── */
.dc-intro {
font-size: 1.05em;
line-height: 1.8;
color: #aaa;
max-width: 650px;
margin: 0 auto 0.5em;
text-align: center;
}
/* ── Stats ── */
.dc-stats {
display: flex;
justify-content: center;
gap: 3em;
margin: 2em 0 0.5em;
flex-wrap: wrap;
}
.dc-stat { text-align: center; }
.dc-stat-num {
color: #00ff88;
font-size: 2.4em;
font-weight: 800;
line-height: 1;
text-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}
.dc-stat-label {
color: #555;
font-size: 0.7em;
text-transform: uppercase;
letter-spacing: 0.15em;
margin-top: 0.3em;
}
/* ── Cards ── */
.dc-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1em;
margin: 1.2em 0;
}
.dc-card {
background: rgba(255, 255, 255, 0.025);
border: 1px solid rgba(0, 255, 136, 0.08);
border-radius: 10px;
padding: 1.4em;
transition: all 0.25s;
}
.dc-card:hover {
border-color: rgba(0, 255, 136, 0.3);
background: rgba(0, 255, 136, 0.03);
box-shadow: 0 0 25px rgba(0, 255, 136, 0.05);
transform: translateY(-2px);
}
.dc-card-title {
color: #00ff88;
font-weight: 700;
font-size: 1.05em;
margin-bottom: 0.5em;
}
.dc-card div {
color: #888;
font-size: 0.88em;
line-height: 1.6;
}
/* ── Timeline ── */
.dc-timeline {
border-left: 2px solid rgba(0, 255, 136, 0.15);
margin: 1.2em 0 1em 0.6em;
padding-left: 1.8em;
}
.dc-event {
position: relative;
margin-bottom: 1.8em;
}
.dc-event::before {
content: '';
position: absolute;
left: -2.15em;
top: 0.4em;
width: 10px;
height: 10px;
background: #00ff88;
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.dc-event-date {
color: #00aaff;
font-size: 0.78em;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.dc-event-title {
color: #e0e0e0;
font-weight: 700;
font-size: 1.05em;
margin: 0.15em 0;
}
.dc-event-desc {
color: #777;
font-size: 0.88em;
line-height: 1.6;
}
/* ── Partner tags ── */
.dc-partners {
display: flex;
flex-wrap: wrap;
gap: 0.6em;
margin: 1em 0;
}
.dc-tag {
background: rgba(0, 170, 255, 0.06);
border: 1px solid rgba(0, 170, 255, 0.18);
color: #00aaff;
padding: 0.3em 1em;
border-radius: 16px;
font-size: 0.82em;
font-weight: 500;
transition: all 0.2s;
}
.dc-tag:hover {
background: rgba(0, 170, 255, 0.12);
border-color: rgba(0, 170, 255, 0.4);
}
/* ── Footer ── */
.dc-footer {
text-align: center;
margin-top: 2.5em;
padding-top: 1.2em;
border-top: 1px solid rgba(0, 255, 136, 0.08);
color: #444;
font-size: 0.85em;
}
.dc-footer a {
color: #444 !important;
text-decoration: none !important;
margin: 0 0.8em;
transition: color 0.2s;
}
.dc-footer a:hover {
color: #00ff88 !important;
}
/* ── Bullet lists inside dc-page ── */
.dc-page ul { list-style: none; padding-left: 0; }
.dc-page ul li {
padding: 0.35em 0 0.35em 1.4em;
position: relative;
color: #999;
}
.dc-page ul li::before {
content: '\25B9';
position: absolute;
left: 0;
color: #00ff88;
font-weight: bold;
}
/* ── Wiki elements inside dc-page ── */
.dc-page .wikitable {
background: transparent !important;
border: 1px solid rgba(0, 255, 136, 0.12) !important;
color: #c0c0c0;
}
.dc-page .wikitable th {
background: rgba(0, 255, 136, 0.06) !important;
color: #00ff88 !important;
border-color: rgba(0, 255, 136, 0.12) !important;
}
.dc-page .wikitable td {
border-color: rgba(0, 255, 136, 0.08) !important;
background: transparent !important;
}
/* ── Links inside dc-page (not in dc-links) ── */
.dc-page a:not(.dc-links a):not(.dc-footer a):not(.mw-editsection a) {
color: #00aaff !important;
}
/* ── Table of contents override ── */
body.page-DevClub .vector-toc,
body.page-DevClub #vector-toc-collapsed-button {
background: #0f0f25 !important;
border-color: rgba(0, 255, 136, 0.1) !important;
}
body.page-DevClub .vector-toc .vector-toc-link {
color: #aaa !important;
}
body.page-DevClub .vector-toc .vector-toc-link:hover {
color: #00ff88 !important;
}