Jump to content

MediaWiki:Common.css: Difference between revisions

From IITD Wiki
Fix hero image CSS specificity
Add DevClub neon theme CSS
Line 23: Line 23:
     overflow: hidden;
     overflow: hidden;
     border-radius: 6px;
     border-radius: 6px;
}
/* ── DevClub neon theme ─────────────────────────────────────────────── */
.dc-page {
    background: #0a0a1a;
    color: #e0e0e0;
    border-radius: 12px;
    padding: 2em 2.5em;
    margin: -1em -1em 1em -1em;
    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 20% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 170, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.dc-page > * {
    position: relative;
    z-index: 1;
}
/* Header */
.dc-header {
    text-align: center;
    padding: 1.5em 0 1em;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    margin-bottom: 1.5em;
}
.dc-title {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.15);
    margin: 0;
    line-height: 1.2;
}
.dc-tagline {
    color: #888;
    font-size: 1em;
    margin-top: 0.4em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
}
/* Links bar */
.dc-links {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1.2em;
    flex-wrap: wrap;
}
.dc-links a {
    color: #00aaff !important;
    text-decoration: none !important;
    padding: 0.35em 1em;
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.dc-links a:hover {
    background: rgba(0, 170, 255, 0.12);
    border-color: #00aaff;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
    color: #fff !important;
}
/* Section headings */
.dc-page h2 {
    color: #00ff88 !important;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15) !important;
    padding-bottom: 0.4em;
    margin-top: 2em;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}
.dc-page h3 {
    color: #00aaff !important;
    font-size: 1.1em;
    font-weight: 600;
    border: none !important;
    margin-top: 1.2em;
}
/* Intro text */
.dc-intro {
    font-size: 1.05em;
    line-height: 1.7;
    color: #c0c0c0;
    max-width: 700px;
    margin: 0 auto 1em;
    text-align: center;
}
/* Cards grid */
.dc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1em 0;
}
.dc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 10px;
    padding: 1.2em;
    transition: all 0.2s;
}
.dc-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.06);
}
.dc-card-title {
    color: #00ff88;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 0.4em;
}
.dc-card p, .dc-card div {
    color: #999;
    font-size: 0.88em;
    line-height: 1.5;
}
/* Event timeline */
.dc-timeline {
    border-left: 2px solid rgba(0, 255, 136, 0.2);
    margin: 1em 0 1em 0.5em;
    padding-left: 1.5em;
}
.dc-event {
    position: relative;
    margin-bottom: 1.5em;
}
.dc-event::before {
    content: '';
    position: absolute;
    left: -1.85em;
    top: 0.35em;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}
.dc-event-date {
    color: #00aaff;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.dc-event-title {
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1em;
    margin: 0.15em 0;
}
.dc-event-desc {
    color: #888;
    font-size: 0.88em;
    line-height: 1.5;
}
/* Stats bar */
.dc-stats {
    display: flex;
    justify-content: center;
    gap: 2.5em;
    margin: 1.5em 0;
    flex-wrap: wrap;
}
.dc-stat {
    text-align: center;
}
.dc-stat-num {
    color: #00ff88;
    font-size: 2em;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}
.dc-stat-label {
    color: #666;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.3em;
}
/* Bullet lists */
.dc-page ul {
    list-style: none;
    padding-left: 0;
}
.dc-page ul li {
    padding: 0.3em 0 0.3em 1.4em;
    position: relative;
    color: #b0b0b0;
}
.dc-page ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}
/* Collaborations / partners */
.dc-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin: 0.8em 0;
}
.dc-tag {
    background: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.2);
    color: #00aaff;
    padding: 0.25em 0.8em;
    border-radius: 15px;
    font-size: 0.82em;
    font-weight: 500;
}
/* Footer links */
.dc-footer {
    text-align: center;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}
.dc-footer a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.85em;
    margin: 0 0.8em;
    transition: color 0.2s;
}
.dc-footer a:hover {
    color: #00ff88 !important;
}
/* Override wiki table style inside dc-page */
.dc-page .wikitable {
    background: transparent !important;
    border: 1px solid rgba(0, 255, 136, 0.15) !important;
    color: #c0c0c0;
}
.dc-page .wikitable th {
    background: rgba(0, 255, 136, 0.08) !important;
    color: #00ff88 !important;
    border-color: rgba(0, 255, 136, 0.15) !important;
}
.dc-page .wikitable td {
    border-color: rgba(0, 255, 136, 0.1) !important;
    background: transparent !important;
}
/* Hide default heading inside dc-page since we use custom header */
.dc-page > .mw-heading2:first-child,
.dc-page > h2:first-child {
    display: none;
}
}

Revision as of 12:49, 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 ─────────────────────────────────────────────── */
.dc-page {
    background: #0a0a1a;
    color: #e0e0e0;
    border-radius: 12px;
    padding: 2em 2.5em;
    margin: -1em -1em 1em -1em;
    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 20% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 170, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.dc-page > * {
    position: relative;
    z-index: 1;
}

/* Header */
.dc-header {
    text-align: center;
    padding: 1.5em 0 1em;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    margin-bottom: 1.5em;
}

.dc-title {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.15);
    margin: 0;
    line-height: 1.2;
}

.dc-tagline {
    color: #888;
    font-size: 1em;
    margin-top: 0.4em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Links bar */
.dc-links {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1.2em;
    flex-wrap: wrap;
}

.dc-links a {
    color: #00aaff !important;
    text-decoration: none !important;
    padding: 0.35em 1em;
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.dc-links a:hover {
    background: rgba(0, 170, 255, 0.12);
    border-color: #00aaff;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
    color: #fff !important;
}

/* Section headings */
.dc-page h2 {
    color: #00ff88 !important;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none !important;
    border-bottom: 1px solid rgba(0, 255, 136, 0.15) !important;
    padding-bottom: 0.4em;
    margin-top: 2em;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.dc-page h3 {
    color: #00aaff !important;
    font-size: 1.1em;
    font-weight: 600;
    border: none !important;
    margin-top: 1.2em;
}

/* Intro text */
.dc-intro {
    font-size: 1.05em;
    line-height: 1.7;
    color: #c0c0c0;
    max-width: 700px;
    margin: 0 auto 1em;
    text-align: center;
}

/* Cards grid */
.dc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1em 0;
}

.dc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 10px;
    padding: 1.2em;
    transition: all 0.2s;
}

.dc-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.06);
}

.dc-card-title {
    color: #00ff88;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 0.4em;
}

.dc-card p, .dc-card div {
    color: #999;
    font-size: 0.88em;
    line-height: 1.5;
}

/* Event timeline */
.dc-timeline {
    border-left: 2px solid rgba(0, 255, 136, 0.2);
    margin: 1em 0 1em 0.5em;
    padding-left: 1.5em;
}

.dc-event {
    position: relative;
    margin-bottom: 1.5em;
}

.dc-event::before {
    content: '';
    position: absolute;
    left: -1.85em;
    top: 0.35em;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.dc-event-date {
    color: #00aaff;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dc-event-title {
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1em;
    margin: 0.15em 0;
}

.dc-event-desc {
    color: #888;
    font-size: 0.88em;
    line-height: 1.5;
}

/* Stats bar */
.dc-stats {
    display: flex;
    justify-content: center;
    gap: 2.5em;
    margin: 1.5em 0;
    flex-wrap: wrap;
}

.dc-stat {
    text-align: center;
}

.dc-stat-num {
    color: #00ff88;
    font-size: 2em;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.dc-stat-label {
    color: #666;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.3em;
}

/* Bullet lists */
.dc-page ul {
    list-style: none;
    padding-left: 0;
}

.dc-page ul li {
    padding: 0.3em 0 0.3em 1.4em;
    position: relative;
    color: #b0b0b0;
}

.dc-page ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

/* Collaborations / partners */
.dc-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin: 0.8em 0;
}

.dc-tag {
    background: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.2);
    color: #00aaff;
    padding: 0.25em 0.8em;
    border-radius: 15px;
    font-size: 0.82em;
    font-weight: 500;
}

/* Footer links */
.dc-footer {
    text-align: center;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.dc-footer a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.85em;
    margin: 0 0.8em;
    transition: color 0.2s;
}

.dc-footer a:hover {
    color: #00ff88 !important;
}

/* Override wiki table style inside dc-page */
.dc-page .wikitable {
    background: transparent !important;
    border: 1px solid rgba(0, 255, 136, 0.15) !important;
    color: #c0c0c0;
}

.dc-page .wikitable th {
    background: rgba(0, 255, 136, 0.08) !important;
    color: #00ff88 !important;
    border-color: rgba(0, 255, 136, 0.15) !important;
}

.dc-page .wikitable td {
    border-color: rgba(0, 255, 136, 0.1) !important;
    background: transparent !important;
}

/* Hide default heading inside dc-page since we use custom header */
.dc-page > .mw-heading2:first-child,
.dc-page > h2:first-child {
    display: none;
}