MediaWiki:Common.css: Difference between revisions
From The CPPS Lore Wiki
No edit summary |
No edit summary |
||
Line 287: | Line 287: | ||
box-shadow: 0 -4px 30px #00eaff22 !important; | box-shadow: 0 -4px 30px #00eaff22 !important; | ||
max-width: 1080px !important; | max-width: 1080px !important; | ||
} | |||
/* --- FINAL NAVBAR LOGO + SEARCH ALIGNMENT FIX --- */ | |||
/* Navbar logo: vertically center perfectly */ | |||
.chameleon-logo img, | |||
.skin-chameleon .logo img, | |||
.navbar-brand img, | |||
.navbar-header img { | |||
display: inline-block !important; | |||
height: 48px !important; | |||
max-height: 48px !important; | |||
width: auto !important; | |||
margin: 0 28px 0 12px !important; | |||
padding: 0 !important; | |||
border-radius: 10px !important; | |||
background: transparent !important; | |||
object-fit: contain !important; | |||
vertical-align: middle !important; | |||
box-shadow: none !important; | |||
position: relative !important; | |||
top: 3px !important; /* Subtle nudge upward */ | |||
} | |||
/* Make sure nav links align with logo */ | |||
.chameleon-navbar .navbar-nav, | |||
.chameleon-header .navbar-nav, | |||
.navbar .navbar-nav { | |||
display: flex !important; | |||
align-items: center !important; | |||
} | |||
/* Search bar input and button: perfect match */ | |||
.chameleon-search input[type="search"], | |||
.chameleon-search .form-control { | |||
height: 38px !important; | |||
border-radius: 8px 0 0 8px !important; | |||
border: 1.5px solid #42baff !important; | |||
border-right: none !important; | |||
padding: 6px 14px !important; | |||
font-size: 1.08rem !important; | |||
font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important; | |||
background: #16293c !important; | |||
color: #e5f9ff !important; | |||
box-shadow: none !important; | |||
outline: none !important; | |||
margin: 0 !important; | |||
} | |||
.chameleon-search button, | |||
.chameleon-search .input-group-btn > button { | |||
height: 38px !important; | |||
border-radius: 0 8px 8px 0 !important; | |||
border: 1.5px solid #42baff !important; | |||
border-left: none !important; | |||
background: #23a3ce !important; | |||
color: #fff !important; | |||
font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important; | |||
font-size: 1.18em !important; | |||
box-shadow: none !important; | |||
padding: 0 16px !important; | |||
margin: 0 !important; | |||
display: flex !important; | |||
align-items: center !important; | |||
outline: none !important; | |||
} | |||
.chameleon-search button:hover, | |||
.chameleon-search .input-group-btn > button:hover { | |||
background: #19cfff !important; | |||
border-color: #1ebaff !important; | |||
color: #fff !important; | |||
} | |||
.chameleon-search button .fa-search, | |||
.chameleon-search button [class*="icon-"] { | |||
color: #fff !important; | |||
font-size: 1.1em !important; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.chameleon-search input[type="search"]:focus, | |||
.chameleon-search .form-control:focus { | |||
border-color: #1ebaff !important; | |||
background: #17334d !important; | |||
color: #fff !important; | |||
outline: none !important; | |||
} | } |
Revision as of 04:14, 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: crisp, no glow, spaced --- */ .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: 10px 32px 10px 12px !important; padding: 2px !important; border-radius: 12px !important; background: transparent !important; object-fit: contain !important; vertical-align: middle !important; box-shadow: none !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 #00415d33, 0 1px 0 #26e8ff22; } /* 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 PAGE TITLE ON 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 #5dfaff22; 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: 2px solid #67edff !important; border-radius: 18px !important; box-shadow: none !important; padding: 11px 26px !important; margin: 8px 12px 8px 0; font-size: 1.02em !important; text-shadow: 0 2px 4px #fff2, 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: none !important; } /* --- 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 #00eaff11, 0 1.5px 0 #fff1; border: 2px solid #5dfaff33; 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 #99ebff07; z-index: 0; } .mw-parser-output .twisted-hero-logo { flex: 0 0 auto; } .mw-parser-output .twisted-hero-main { flex: 1 1 auto; } /* --- SEARCH BAR: no glow, clean alignment, CPPS blue --- */ .chameleon-search { display: flex !important; align-items: center !important; gap: 0 !important; background: none !important; } .chameleon-search input[type="search"], .chameleon-search .form-control { background: #16293c !important; color: #e5f9ff !important; border: 2px solid #42baff !important; border-right: none !important; border-radius: 11px 0 0 11px !important; padding: 7px 16px !important; height: 44px !important; font-size: 1.08rem !important; font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important; box-shadow: none !important; outline: none !important; } .chameleon-search button, .chameleon-search .input-group-btn > button { height: 44px !important; padding: 0 18px !important; margin: 0 !important; border-radius: 0 11px 11px 0 !important; border: 2px solid #42baff !important; border-left: none !important; background: #23a3ce !important; color: #fff !important; font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important; font-size: 1.2em !important; box-shadow: none !important; display: flex !important; align-items: center !important; transition: background 0.18s, border-color 0.18s; } .chameleon-search button:hover, .chameleon-search .input-group-btn > button:hover { background: #19cfff !important; border-color: #1ebaff !important; color: #fff !important; } .chameleon-search button .fa-search, .chameleon-search button [class*="icon-"] { color: #fff !important; font-size: 1.18em !important; margin: 0; padding: 0; } .chameleon-search input[type="search"]:focus, .chameleon-search .form-control:focus { border-color: #1ebaff !important; background: #17334d !important; color: #fff !important; outline: none !important; } .chameleon-search button:focus { outline: none !important; } .chameleon-search input[type="search"]:focus { z-index: 1; } input[type="search"]::placeholder, .form-control::placeholder, textarea::placeholder { color: #7feaff !important; opacity: 1 !important; } /* --- INPUTS / FORMS --- */ input[type="text"], .form-control, textarea { background: #18293d !important; color: #e5f9ff !important; border: 2px solid #5dfaff !important; border-radius: 11px !important; box-shadow: none !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="text"]:focus, .form-control:focus, textarea:focus { outline: none !important; border-color: #00eaff !important; background: #163757 !important; color: #fff !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; } /* --- FINAL NAVBAR LOGO + SEARCH ALIGNMENT FIX --- */ /* Navbar logo: vertically center perfectly */ .chameleon-logo img, .skin-chameleon .logo img, .navbar-brand img, .navbar-header img { display: inline-block !important; height: 48px !important; max-height: 48px !important; width: auto !important; margin: 0 28px 0 12px !important; padding: 0 !important; border-radius: 10px !important; background: transparent !important; object-fit: contain !important; vertical-align: middle !important; box-shadow: none !important; position: relative !important; top: 3px !important; /* Subtle nudge upward */ } /* Make sure nav links align with logo */ .chameleon-navbar .navbar-nav, .chameleon-header .navbar-nav, .navbar .navbar-nav { display: flex !important; align-items: center !important; } /* Search bar input and button: perfect match */ .chameleon-search input[type="search"], .chameleon-search .form-control { height: 38px !important; border-radius: 8px 0 0 8px !important; border: 1.5px solid #42baff !important; border-right: none !important; padding: 6px 14px !important; font-size: 1.08rem !important; font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important; background: #16293c !important; color: #e5f9ff !important; box-shadow: none !important; outline: none !important; margin: 0 !important; } .chameleon-search button, .chameleon-search .input-group-btn > button { height: 38px !important; border-radius: 0 8px 8px 0 !important; border: 1.5px solid #42baff !important; border-left: none !important; background: #23a3ce !important; color: #fff !important; font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif !important; font-size: 1.18em !important; box-shadow: none !important; padding: 0 16px !important; margin: 0 !important; display: flex !important; align-items: center !important; outline: none !important; } .chameleon-search button:hover, .chameleon-search .input-group-btn > button:hover { background: #19cfff !important; border-color: #1ebaff !important; color: #fff !important; } .chameleon-search button .fa-search, .chameleon-search button [class*="icon-"] { color: #fff !important; font-size: 1.1em !important; margin: 0; padding: 0; } .chameleon-search input[type="search"]:focus, .chameleon-search .form-control:focus { border-color: #1ebaff !important; background: #17334d !important; color: #fff !important; outline: none !important; }