MediaWiki:Common.css: Difference between revisions

From The CPPS Lore Wiki
No edit summary
No edit summary
Line 1: Line 1:
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');


/* --- GENERAL LAYOUT --- */
/* --- GENERAL LAYOUT --- */
Line 9: Line 9:
     background: linear-gradient(135deg, #151e2c 0%, #16364d 100%) !important;
     background: linear-gradient(135deg, #151e2c 0%, #16364d 100%) !important;
     color: #e5f9ff !important;
     color: #e5f9ff !important;
     font-family: 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}
}


Line 28: Line 28:
}
}


/* Remove ugly border/padding from Chameleon header/footer wrappers */
.skin-chameleon .chameleon-header, .skin-chameleon .chameleon-footer {
.skin-chameleon .chameleon-header, .skin-chameleon .chameleon-footer {
     border: none !important;
     border: none !important;
Line 51: Line 50:
}
}


/* --- LOGO --- */
/* --- LOGO: fixed, centered, glassy, crisp --- */
.chameleon-logo img,
.chameleon-logo img,
.skin-chameleon .logo img,
.skin-chameleon .logo img,
.navbar-brand img,
.navbar-brand img,
.navbar-header img {
.navbar-header img {
    display: block;
     max-height: 64px !important;
     max-height: 64px !important;
     height: 64px !important;
     height: 64px !important;
     width: auto !important;
     width: auto !important;
     margin: 4px 30px 4px 0 !important;
     margin: 6px 32px 6px 0 !important;
     box-shadow: 0 0 32px #5dfaff44, 0 2px 8px #00203f55;
     box-shadow: 0 0 32px #5dfaff44, 0 2px 8px #00203f55;
     border-radius: 12px !important;
     border-radius: 12px !important;
     background: #07213011 !important;
     background: #07213011 !important;
     padding: 0 !important;
     padding: 0 !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}
}


/* --- HEADINGS --- */
/* --- HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
     font-family: 'Press Start 2P', 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     color: #fffbe0 !important;
     color: #fffbe0 !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
Line 75: Line 77:
}
}


/* Use Nunito for body (for better readability) */
/* Use Inter everywhere else for body/content */
.mw-body, .mw-body-content, p, li, td, th, .mw-parser-output {
.mw-body, .mw-body-content, p, li, td, th, .mw-parser-output {
     font-family: 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     font-size: 1.07em;
     font-size: 1.07em;
     color: #e5f9ff !important;
     color: #e5f9ff !important;
Line 104: Line 106:
button, input[type="button"], input[type="submit"], .chameleon-search button {
button, input[type="button"], input[type="submit"], .chameleon-search button {
     display: inline-block;
     display: inline-block;
     font-family: 'Press Start 2P', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
     background: linear-gradient(90deg, #2fd2fd 0%, #38f9d7 100%);
     background: linear-gradient(90deg, #2fd2fd 0%, #38f9d7 100%);
Line 136: Line 138:
     color: #f1fdff !important;
     color: #f1fdff !important;
     max-width: 1100px;
     max-width: 1100px;
     font-family: 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     position: relative;
     position: relative;
     backdrop-filter: blur(6px);
     backdrop-filter: blur(6px);
Line 162: Line 164:
     box-shadow: 0 8px 40px #5dfaff22, 0 1px 0 #fff2 !important;
     box-shadow: 0 8px 40px #5dfaff22, 0 1px 0 #fff2 !important;
}
}
.mw-parser-output .twisted-hero-logo { flex: 0 0 auto; }
.mw-parser-output .twisted-hero-main { flex: 1 1 auto; }


/* --- SEARCH BAR --- */
/* --- SEARCH BAR --- */
Line 171: Line 176:
     box-shadow: 0 1px 10px #00eaff22 !important;
     box-shadow: 0 1px 10px #00eaff22 !important;
     font-size: 1.08rem !important;
     font-size: 1.08rem !important;
     font-family: 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}
}


Line 183: Line 188:
     padding: 0 18px !important;
     padding: 0 18px !important;
     color: #fff !important;
     color: #fff !important;
     font-family: 'Press Start 2P', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     font-size: 1.05rem !important;
     font-size: 1.05rem !important;
     box-shadow: 0 0 18px #5dfaff55 !important;
     box-shadow: 0 0 18px #5dfaff55 !important;
Line 204: Line 209:
}
}


/* Remove outline on button click for clean look */
.chameleon-search button:focus { outline: none !important; }
.chameleon-search button:focus { outline: none !important; }
.chameleon-search input[type="search"]:focus { z-index: 1; }
.chameleon-search input[type="search"]:focus { z-index: 1; }


Line 218: Line 221:
     padding: 8px 16px !important;
     padding: 8px 16px !important;
     font-size: 1.05rem !important;
     font-size: 1.05rem !important;
     font-family: 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     transition: border-color 0.18s, box-shadow 0.18s;
     transition: border-color 0.18s, box-shadow 0.18s;
}
}
Line 241: Line 244:
     border-color: #193047 !important;
     border-color: #193047 !important;
     border-radius: 7px !important;
     border-radius: 7px !important;
     font-family: 'Nunito Sans', Arial, sans-serif !important;
     font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
     padding: 4px 10px !important;
     padding: 4px 10px !important;
}
}
Line 248: Line 251:
     background: #21272e !important;
     background: #21272e !important;
     color: #5dfaff !important;
     color: #5dfaff !important;
     font-family: 'Press Start 2P', 'JetBrains Mono', 'monospace' !important;
     font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'monospace' !important;
     border-radius: 8px;
     border-radius: 8px;
     padding: 0.6em;
     padding: 0.6em;

Revision as of 04:04, 31 August 2025

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* --- GENERAL LAYOUT --- */
body,
.skin-chameleon,
.skin-chameleon .container,
.skin-chameleon .row,
.skin-chameleon .col {
    background: linear-gradient(135deg, #151e2c 0%, #16364d 100%) !important;
    color: #e5f9ff !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}

.mw-body,
.mw-body-content {
    background: rgba(22,49,78,0.96) !important;
    border-radius: 18px !important;
    margin: 38px auto 24px auto !important;
    padding: 42px 48px !important;
    max-width: 1080px !important;
    min-height: 520px;
    box-shadow: 0 8px 40px #3dfaff15, 0 1px 0 #fff2 !important;
    position: relative;
}

@media (max-width: 900px) {
    .mw-body, .mw-body-content { padding: 18px !important; }
}

.skin-chameleon .chameleon-header, .skin-chameleon .chameleon-footer {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- NAVBAR --- */
.navbar, .chameleon-navbar, .chameleon-header {
    background: linear-gradient(90deg, #0c2336cc 0%, #187fcfcc 100%) !important;
    color: #e5f9ff !important;
    border: none !important;
    box-shadow: 0 6px 24px #00203f33;
    padding: 0 16px 0 16px !important;
    min-height: 72px;
}

#mw-head, #mw-panel, .navbar-header {
    background: rgba(20,34,52,0.98) !important;
    border-radius: 0 0 22px 22px !important;
    box-shadow: 0 6px 28px #00203f40;
}

/* --- LOGO: fixed, centered, glassy, crisp --- */
.chameleon-logo img,
.skin-chameleon .logo img,
.navbar-brand img,
.navbar-header img {
    display: block;
    max-height: 64px !important;
    height: 64px !important;
    width: auto !important;
    margin: 6px 32px 6px 0 !important;
    box-shadow: 0 0 32px #5dfaff44, 0 2px 8px #00203f55;
    border-radius: 12px !important;
    background: #07213011 !important;
    padding: 0 !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* --- HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    color: #fffbe0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px #00415d77, 0 1px 0 #26e8ffbb;
}

/* Use Inter everywhere else for body/content */
.mw-body, .mw-body-content, p, li, td, th, .mw-parser-output {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    font-size: 1.07em;
    color: #e5f9ff !important;
}

/* Hide the page title on the Home page */
body.page-Home h1.firstHeading { display: none !important; }
body.page-Home .mw-redirectedfrom { display: none !important; }

/* --- LINK COLORS --- */
a, a:visited, .navbar a, .footer a {
    color: #45eaff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.2s;
}

a:hover, .navbar a:hover, .footer a:hover {
    color: #a8ff0b !important;
    text-shadow: 0 0 10px #5dfaff77;
    text-decoration: underline !important;
}

/* --- BUTTONS --- */
.mw-parser-output .twisted-btn, 
button, input[type="button"], input[type="submit"], .chameleon-search button {
    display: inline-block;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg, #2fd2fd 0%, #38f9d7 100%);
    color: #123c5d !important;
    border: 2.5px solid #67edff !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 32px #00eaff22, 0 1px 0 #fff;
    padding: 11px 26px !important;
    margin: 8px 12px 8px 0;
    font-size: 1.02em !important;
    text-shadow: 0 2px 4px #fff6, 0 1px 0 #dffeffcc;
    transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}

.mw-parser-output .twisted-btn:hover, 
button:hover, input[type="button"]:hover, input[type="submit"]:hover, .chameleon-search button:hover {
    background: linear-gradient(90deg, #7efcff 0%, #b6ffe7 100%);
    color: #17486b !important;
    box-shadow: 0 0 28px #00eaff88, 0 1px 0 #fff;
}

/* --- CARDS/HERO --- */
.mw-parser-output .twisted-hero,
.mw-parser-output .twisted-card {
    background: rgba(22, 49, 78, 0.85);
    border-radius: 18px;
    box-shadow: 0 4px 28px #00eaff33, 0 1.5px 0 #fff6;
    border: 2.5px solid #5dfaff55;
    padding: 28px 32px 16px 32px;
    margin: 0 auto 28px auto;
    color: #f1fdff !important;
    max-width: 1100px;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    position: relative;
    backdrop-filter: blur(6px);
}

.mw-parser-output .twisted-card:before,
.mw-parser-output .twisted-hero:before {
    content: "";
    display: block;
    position: absolute;
    left: -7px; right: -7px; top: -7px; bottom: -7px;
    border-radius: 22px;
    pointer-events: none;
    box-shadow: 0 0 44px 16px #fff1, 0 0 0 8px #99ebff11;
    z-index: 0;
}

/* Penguin style cards with snow effect (override) */
.mw-parser-output .twisted-card,
.mw-parser-output .twisted-hero {
    position: relative;
    overflow: visible;
    border: 2.5px solid #5dfaff99;
    background: linear-gradient(135deg, #182f4c 60%, #1e4476 100%) !important;
    box-shadow: 0 8px 40px #5dfaff22, 0 1px 0 #fff2 !important;
}

.mw-parser-output .twisted-hero-logo { flex: 0 0 auto; }
.mw-parser-output .twisted-hero-main { flex: 1 1 auto; }

/* --- SEARCH BAR --- */
.chameleon-search, .chameleon-search input[type="search"], .chameleon-search .form-control {
    background: #152539 !important;
    color: #e7f9ff !important;
    border-radius: 11px 0 0 11px !important;
    border-right: none !important;
    box-shadow: 0 1px 10px #00eaff22 !important;
    font-size: 1.08rem !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}

.chameleon-search button,
.chameleon-search .input-group-btn > button {
    border-radius: 0 11px 11px 0 !important;
    border: 2.5px solid #5dfaff !important;
    border-left: none !important;
    background: linear-gradient(135deg, #00eaff 0%, #063d52 100%) !important;
    height: 44px !important;
    padding: 0 18px !important;
    color: #fff !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    font-size: 1.05rem !important;
    box-shadow: 0 0 18px #5dfaff55 !important;
    transition: background 0.18s, border-color 0.18s;
}

.chameleon-search button:hover,
.chameleon-search .input-group-btn > button:hover {
    background: linear-gradient(90deg, #2fd2fd 0%, #00eaff 100%) !important;
    border-color: #a8ff0b !important;
    color: #1c262e !important;
}

.chameleon-search button .fa-search,
.chameleon-search button [class*="icon-"] {
    color: #a8ff0b !important;
    font-size: 1.18em !important;
    margin: 0;
    padding: 0;
}

.chameleon-search button:focus { outline: none !important; }
.chameleon-search input[type="search"]:focus { z-index: 1; }

/* --- INPUTS / FORMS --- */
input[type="search"], input[type="text"], .form-control, textarea {
    background: #18293d !important;
    color: #e5f9ff !important;
    border: 2.5px solid #5dfaff !important;
    border-radius: 11px !important;
    box-shadow: 0 1px 10px #33f0ff22 !important;
    padding: 8px 16px !important;
    font-size: 1.05rem !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    transition: border-color 0.18s, box-shadow 0.18s;
}

input[type="search"]:focus, .form-control:focus, textarea:focus {
    outline: none !important;
    border-color: #00eaff !important;
    box-shadow: 0 0 0 4px #0befff33 !important;
    background: #163757 !important;
    color: #fff !important;
}

input[type="search"]::placeholder, .form-control::placeholder, textarea::placeholder {
    color: #88deff !important;
    opacity: 1 !important;
}

/* --- TABLES --- */
table, th, td {
    background: #122339 !important;
    color: #e7f9ff !important;
    border-color: #193047 !important;
    border-radius: 7px !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    padding: 4px 10px !important;
}

pre, code, .mw-code, .mw-highlight pre {
    background: #21272e !important;
    color: #5dfaff !important;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'monospace' !important;
    border-radius: 8px;
    padding: 0.6em;
    font-size: 0.95em !important;
}

/* --- SCROLLBAR: ICEY --- */
::-webkit-scrollbar {
    background: #162139;
    width: 12px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3fdfff 0%, #123c5d 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px #00313f44;
}

/* --- FOOTER --- */
.skin-chameleon .chameleon-footer, .footer, #footer {
    background: linear-gradient(90deg, #102c43 0%, #153952 100%) !important;
    color: #75eaff !important;
    border-top: 2px solid #18bcf9 !important;
    font-size: 0.97em !important;
    border-radius: 18px 18px 0 0 !important;
    margin: 20px auto 0 auto !important;
    padding: 16px 24px !important;
    box-shadow: 0 -4px 30px #00eaff22 !important;
    max-width: 1080px !important;
}