MediaWiki:Common.css
From CKRAS Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================================================
CKRAS WIKI — GLOBAL SIDEBAR + MAIN PAGE + SUBPAGE UI KIT
Skin: Medik (responsive)
========================================================= */
/* =========================================================
1) CKRAS SIDEBAR REDESIGN (GLOBAL)
========================================================= */
#mw-panel .portal h3 {
font-size: 0.85em;
text-transform: uppercase;
color: #0B65E9 !important;
font-weight: 800;
margin-top: 18px;
letter-spacing: 0.5px;
border: none;
}
#mw-panel .portal .body ul li {
list-style: none !important;
padding: 3px 0;
}
#mw-panel .portal .body ul li a {
display: flex !important;
align-items: center;
color: #475569 !important;
font-size: 14px;
text-decoration: none;
transition: all 0.2s ease;
}
#mw-panel .portal .body ul li a:hover {
color: #0B65E9 !important;
padding-left: 2px;
}
#mw-panel .portal .body ul li a::before {
margin-right: 12px;
font-size: 16px;
width: 20px;
text-align: center;
display: inline-block;
}
/* NAVIGATION ICONS */
#n-mainpage a::before, #n-Home a::before { content: "🏠"; }
#n-recentchanges a::before, #n-Recent-changes a::before { content: "⏱️"; }
#n-Counterstrike-2 a::before { content: "🔫"; }
#n-MatchZy a::before { content: "🎮"; }
#n-PreFire a::before { content: "🔥"; }
#n-CKRAS-BOT a::before { content: "🤖"; }
#n-Gameserver-Token a::before { content: "🔑"; }
#n-Gameserver a::before { content: "🎮"; }
#n-Teamspeak a::before { content: "🎤"; }
#n-TV-Server a::before { content: "📺"; }
#mw-panel a[href*="ckras.com/en/"]::before { content: "🌐"; }
#mw-panel a[href*="play.ckras.com"]::before { content: "☁️"; }
#mw-panel a[href*="iface.ckras.com"]::before { content: "🧩"; }
#mw-panel a[href*="wiki.ckras.com"]::before { content: "🇩🇪"; }
/* =======================================================
2) MAIN PAGE — CLEAN SAAS (STRICTLY SCOPED)
======================================================= */
.page-Main_Page #toc { display:none; }
.page-Main_Page .mw-body-content{
max-width: 1700px;
margin: 0 auto;
padding: 0 40px;
}
/* HERO */
.page-Main_Page .ck-hero h1{
font-size: 28px;
font-weight: 800;
margin: 0 0 8px;
color:#0F172A;
}
.page-Main_Page .ck-hero p{
margin:0;
font-size:14px;
color:#64748B;
max-width:820px;
line-height:1.6;
}
.page-Main_Page .ck-hero a{
color:#0F172A !important;
font-weight:600;
text-decoration:none !important;
border-bottom:1px solid rgba(15,23,42,.15);
}
.page-Main_Page .ck-hero a:hover{
color:#0B65E9 !important;
border-bottom-color:#0B65E9;
}
.page-Main_Page .ck-section-title{
font-size:13px;
text-transform:uppercase;
letter-spacing:.6px;
font-weight:800;
color:#0B65E9;
margin:34px 0 18px;
}
/* CARD */
.page-Main_Page .ck-card{ margin-bottom:22px; }
.page-Main_Page .ck-card-inner{
background:#FFFFFF;
border:1px solid #E2E8F0;
border-radius:22px;
padding:26px 32px;
display:flex;
align-items:center;
justify-content:space-between;
gap:40px;
transition:.18s ease;
}
.page-Main_Page .ck-card-inner:hover{
border-color:rgba(11,101,233,.25);
}
.page-Main_Page .ck-card-left{ flex:1; }
.page-Main_Page .ck-card-top{
display:flex;
align-items:center;
gap:22px;
}
.page-Main_Page .ck-text{ flex:1; }
.page-Main_Page .ck-icoimg .thumb,
.page-Main_Page .ck-icoimg .thumbinner,
.page-Main_Page .ck-icoimg .image,
.page-Main_Page .ck-icoimg .mw-file-element,
.page-Main_Page .ck-icoimg figure,
.page-Main_Page .ck-icoimg figcaption{
background:transparent !important;
border:none !important;
padding:0 !important;
margin:0 !important;
box-shadow:none !important;
}
/* STARTSEITE ICON CONTAINER */
.page-Main_Page .ck-icoimg{
width: 56px;
height: 56px;
border-radius: 16px;
background: #F8FAFC;
border: 1px solid #E2E8F0;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
padding: 8px;
box-sizing: border-box;
}
.page-Main_Page .ck-icoimg a{
display:flex; align-items:center; justify-content:center;
width:100%; height:100%; text-decoration:none !important;
}
.page-Main_Page .ck-icoimg img{
width: 36px !important;
height: 36px !important;
object-fit: contain !important;
display: block !important;
}
.page-Main_Page .ck-card h2{
margin:0 0 6px !important; padding:0 !important;
font-size:17px; font-weight:700; letter-spacing:-0.2px;
color:#0F172A; border:0 !important; border-bottom:0 !important;
background:none !important;
}
.page-Main_Page .ck-card h2:after, .page-Main_Page .ck-card h2:before{ content:none !important; }
.page-Main_Page .ck-card h2 a{ text-decoration:none !important; color:#0F172A !important; }
.page-Main_Page .ck-card h2 a:hover{ color:#0B65E9 !important; }
.page-Main_Page .ck-card p{ margin:0; font-size:13.5px; color:#64748B; line-height:1.55; }
.page-Main_Page .ck-meta{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.page-Main_Page .ck-meta a{
display:inline-flex; align-items:center; padding:8px 14px;
border-radius:16px; background:#F1F5F9; border:1px solid #E2E8F0;
font-size:12.5px; font-weight:700; color:#0B65E9 !important;
text-decoration:none !important;
}
.page-Main_Page .ck-meta a:hover{ background:#EAF2FF; }
/* STARTSEITE CTA BUTTONS */
.page-Main_Page .ck-card-right{ width:220px; flex-shrink:0; display:flex; justify-content:flex-end; align-items: center; }
.page-Main_Page .ck-card-right p { margin: 0 !important; padding: 0 !important; }
.page-Main_Page .ck-card-right a,
.page-Main_Page .ck-card-right p a {
width:220px; height:48px; display:flex; align-items:center; justify-content:center;
border-radius:16px; background:#0B65E9 !important; color:#FFFFFF !important;
font-size:14px; font-weight:700; text-decoration:none !important; transition:.18s ease;
border-bottom: none !important;
}
.page-Main_Page .ck-card-right a:hover,
.page-Main_Page .ck-card-right p a:hover,
.page-Main_Page .ck-card-right a:hover *,
.page-Main_Page .ck-card-right p a:hover * {
background: #094DB6 !important;
color: #FFFFFF !important;
border-bottom: none !important;
text-decoration: none !important;
transform: translateY(-1px);
}
/* PLAY */
.page-Main_Page .ck-play{
margin:40px 0 24px; padding:36px 32px; border-radius:22px;
background:#0F172A; color:#FFFFFF; text-align:center;
border:1px solid rgba(255,255,255,.06);
}
.page-Main_Page .ck-play *{ background: transparent !important; box-shadow: none !important; }
.page-Main_Page .ck-play h3{ margin:0 0 10px; font-size:17px; font-weight:800; color:#FFFFFF; }
.page-Main_Page .ck-play p{ margin:0 auto 22px; font-size:13.5px; opacity:.85; line-height:1.6; max-width:720px; color:#E2E8F0; }
.page-Main_Page .ck-play-btn{ display:inline-block; }
.page-Main_Page .ck-play-btn a{
width:220px; height:48px; display:inline-flex; align-items:center; justify-content:center;
border-radius:16px; background:#0B65E9 !important; color:#FFFFFF !important;
font-size:14px; font-weight:700; text-decoration:none !important; transition:.18s ease;
border-bottom: none !important;
}
.page-Main_Page .ck-play-btn a:hover{ background:#094DB6 !important; color:#FFFFFF !important; transform:translateY(-1px); border-bottom: none !important; }
.page-Main_Page .ck-footer-logo{ margin: 60px 0 10px; text-align:center; opacity:.9; }
.page-Main_Page .ck-footer-logo img{ border-radius:14px; }
.page-Main_Page .ck-established{ text-align:center; font-size:12px; color:#64748B; margin-top:20px; }
.page-Main_Page #firstHeading { display: none !important; }
/* =======================================================
3) SUBPAGES — CKRAS UI KIT (ONLY INSIDE .ck-page)
======================================================= */
/* Medik: Content-Wrapper nicht begrenzen */
.mw-body-content,
.mw-body,
#content{
max-width: none !important;
width: auto !important;
}
/* SUBPAGES — full width */
.ck-page{
max-width: none !important;
width: 100% !important;
margin: 0 !important; /* nicht zentrieren */
}
/* GLOBAL LINK HOVER - DUNKEL ZU BLAU MIT UNTERSTRICH FÜR UNTERSEITEN */
.ck-page .mw-parser-output a {
color: #0F172A;
text-decoration: none !important;
border-bottom: 1px solid rgba(15,23,42,0.15);
transition: all 0.2s ease;
}
.ck-page .mw-parser-output a:hover {
color: #0B65E9 !important;
border-bottom: 1px solid #0B65E9 !important;
}
/* AUSNAHMEN FÜR BILDER UND BUTTONS (Nie ein Unterstrich) */
.ck-page .mw-parser-output a.image,
.ck-page .mw-parser-output a.mw-file-description,
.ck-page .mw-parser-output a:has(img),
.ck-page a .ck-btn,
.ck-page .ck-hero-actions a {
border-bottom: none !important;
}
.ck-page .mw-parser-output a.image:hover,
.ck-page .mw-parser-output a.mw-file-description:hover,
.ck-page .mw-parser-output a:has(img):hover,
.ck-page a:hover .ck-btn,
.ck-page .ck-hero-actions a:hover {
border-bottom: none !important;
background: transparent !important;
}
/* BUTTONS */
.ck-btn{
display:inline-flex; align-items:center; justify-content:center;
padding:10px 16px; border-radius:12px; font-weight:800; font-size:13px;
line-height:1; white-space:nowrap; border:1px solid transparent; text-decoration:none !important;
}
.ck-btn-primary{ background:#0B65E9 !important; color:#FFFFFF !important; border-bottom: none !important; }
.ck-btn-primary:hover{ background:#094DB6 !important; color:#FFFFFF !important; border-bottom: none !important; }
.ck-btn-ghost{ background:#111827 !important; border-color:#334155 !important; color:#E2E8F0 !important; border-bottom: none !important; }
.ck-btn-ghost:hover{ border-color: rgba(56,189,248,.55) !important; color:#FFFFFF !important; border-bottom: none !important; }
/* LEAD & CALLOUTS & BOXES */
.ck-page .ck-lead{ margin: 10px 0 14px; font-size: 14px; color: #0F172A; line-height: 1.65; }
.ck-page .ck-callout{ margin: 14px 0; padding: 12px 14px; border-radius: 12px; background:#F8FAFC; border:1px solid #E2E8F0; border-left:5px solid #0EA5E9; }
.ck-page .ck-callout--amber{ background:#FFF7ED; border-color:#FED7AA; border-left-color:#F59E0B; }
.ck-page .ck-callout--ok{ background:#ECFDF5; border-color:#D1FAE5; border-left-color:#10B981; }
.ck-page .ck-jump{ margin: 14px 0; padding: 12px 14px; border-left: 5px solid #0EA5E9; background:#F8FAFC; border-radius: 12px; border: 1px solid #E2E8F0; }
.ck-page .ck-tocbox{ margin: 14px 0; padding: 14px; border-radius: 14px; background:#F1F5F9; border:1px solid #E2E8F0; }
.ck-page .ck-toc-title{ font-size: 16px; font-weight: 900; margin-bottom: 8px; }
/* TABLES */
.ck-page table.wikitable{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid #DBEAFE; border-radius:14px; overflow:hidden; background:#FFFFFF; }
.ck-page table.wikitable th{ background:#EFF6FF; color:#0F172A; font-weight:900; border-bottom:1px solid #DBEAFE; padding:10px 12px; text-align:left; }
.ck-page table.wikitable td{ border-bottom:1px solid #EFF6FF; padding:10px 12px; vertical-align:top; color:#0F172A; }
.ck-page table.wikitable th, .ck-page table.wikitable td{ border-left:none !important; border-right:none !important; }
.ck-page table.wikitable tr:nth-child(even) td{ background:#F8FAFF; }
.ck-page table.wikitable tr:last-child td{ border-bottom:none; }
.ck-page table.wikitable code{ background:#EAF2FF; border:1px solid #DBEAFE; padding:2px 6px; border-radius:8px; }
/* HEADINGS */
.ck-page h2, .ck-page h3, .ck-page h4{ border-bottom: none !important; padding-bottom: 0 !important; }
.ck-page h2{ margin-top: 26px; font-size: 22px; font-weight: 900; color:#0F172A; }
.ck-page h3{ margin-top: 18px; font-size: 18px; font-weight: 900; color:#0F172A; }
/* =======================================================
4) FIX: SUBPAGE HERO (MATCHZY) - VOLLE BREITE, LINKSBÜNDIG
======================================================= */
.ck-page .ck-hero--dark {
display: block;
width: 100% !important;
border-radius: 16px !important;
padding: 32px !important;
background: #FFFFFF !important; /* Weißer Hintergrund */
border: 1px solid #E2E8F0 !important;
border-left: 8px solid #0F172A !important; /* Dicker blauer Balken links */
box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
margin-bottom: 24px !important;
box-sizing: border-box !important;
}
/* WICHTIG: Setzt die MediaWiki Tabelle innerhalb des Heros zurück */
.ck-page .ck-hero--dark table {
width: 100% !important;
border: none !important;
background: transparent !important;
margin: 0 !important;
border-collapse: collapse !important;
}
.ck-page .ck-hero--dark table td {
border: none !important;
background: transparent !important;
padding: 0 !important;
vertical-align: middle !important;
}
/* Die rechte Tabellenzelle bekommt die volle Breite für Links-Ausrichtung */
.ck-page .ck-hero--dark table td:last-child {
width: 100% !important;
text-align: left !important;
}
/* LOGO FIX: Kein Rand, kein Hintergrund, mittig in der Zelle */
.ck-page .ck-hero-logo {
width: 120px !important;
height: auto !important;
background: transparent !important; /* KEIN HINTERGRUND */
border: none !important; /* KEIN STRICH */
display: flex !important;
align-items: center !important;
justify-content: center !important;
margin: 0 auto !important; /* PERFEKT MITTIG */
padding: 0 !important;
box-shadow: none !important;
}
.ck-page .ck-hero-logo img {
width: 100px !important;
height: auto !important;
object-fit: contain !important;
}
/* MEDIAWIKI KILLER: Zerstört alle heimlichen <pre> / <p> Boxen im Header */
.ck-page .ck-hero--dark pre,
.ck-page .ck-hero--dark p {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
box-shadow: none !important;
white-space: normal !important;
text-align: left !important;
font-family: inherit !important;
}
/* Content Links Bündig */
.ck-page .ck-hero-content {
width: 100% !important;
display: block !important;
text-align: left !important;
padding-left: 15px !important; /* Abstand zum Logo */
}
.ck-page .ck-hero-title {
color: #0B65E9 !important;
font-weight: 900 !important;
font-size: 28px !important;
letter-spacing: -0.3px !important;
margin: 0 0 8px 0 !important;
display: block !important;
text-align: left !important;
}
.ck-page .ck-hero-sub {
color: #475569 !important;
font-size: 15px !important;
line-height: 1.6 !important;
margin: 0 0 12px 0 !important;
text-align: left !important;
display: block !important;
}
/* Quick Start Box */
.ck-page .ck-hero-meta {
color: #0F172A !important;
background: #F8FAFC !important;
border: 1px solid #E2E8F0 !important;
font-size: 13.5px !important;
padding: 8px 14px !important;
border-radius: 8px !important;
display: inline-block !important;
margin: 0 0 16px 0 !important;
text-align: left !important;
}
.ck-page .ck-hero-meta code {
background: transparent !important;
border: none !important;
color: #0B65E9 !important;
font-weight: 700 !important;
padding: 0 !important;
}
/* Aktionen (Buttons) entpacken und linksbündig */
.ck-page .ck-hero-actions {
display: flex !important;
flex-direction: row !important;
gap: 12px !important;
flex-wrap: wrap !important;
justify-content: flex-start !important;
align-items: center !important;
margin-top: 4px !important;
width: 100% !important;
}
/* Zwingt das umschließende <p> von MediaWiki unsichtbar zu werden, damit Flexbox klappt */
.ck-page .ck-hero-actions p {
display: contents !important;
}
.mw-parser-output img[alt*="MatchZy"]{ margin: 8px 0 14px 18px; }
/* MOBILE */
@media (max-width: 900px){
.page-Main_Page .mw-body-content{ padding: 0 16px !important; }
.page-Main_Page .ck-card-inner{ flex-direction: column !important; align-items: stretch !important; padding: 22px 18px !important; }
.page-Main_Page .ck-card-top{ flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
.page-Main_Page .ck-card-right{ width: 100% !important; margin-top: 6px !important; padding-top: 16px !important; border-top: 1px solid #F1F5F9; display: block !important; }
.page-Main_Page .ck-card-right a{ width: 100% !important; height: 52px !important; border-radius: 14px !important; }
/* Mobile Tabellen-Fix im Header */
.ck-page .ck-hero--dark table td { display: block !important; width: 100% !important; text-align: left !important; }
.ck-page .ck-hero-content { padding-left: 0 !important; margin-top: 15px !important; }
}