MediaWiki:Common.css: Difference between revisions
From CKRAS Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================================================= | |||
CKRAS WIKI — GLOBAL + STARTPAGE + SUBPAGES UI KIT | |||
Skin: Medik (responsive) | |||
Goal: | |||
- Main_Page stays clean / light / SaaS-like (NO dark hero) | |||
- Subpages can use a dark hero kit via classes | |||
- Consistent CKRAS link hover + buttons + tables | |||
========================================================= */ | |||
/* ========================================================= | /* ========================================================= | ||
0) GLOBAL BASE (safe defaults) | |||
========================================================= */ | ========================================================= */ | ||
.mw-body-content{ | |||
color:#0F172A; | |||
} | |||
/* Links: single subtle underline (NOT double) */ | |||
.mw-body-content a{ | |||
color:#0B65E9; | |||
text-decoration:none !important; | |||
border-bottom:1px solid rgba(11,101,233,.18); | |||
transition: .15s ease; | |||
} | |||
.mw-body-content a:hover{ | |||
color:#094DB6; | |||
border-bottom-color: rgba(9,77,182,.55); | |||
} | |||
/* Never underline image/file links */ | |||
.mw-body-content a.image, | |||
.mw-body-content a.mw-file-description, | |||
.mw-body-content a.image:hover, | |||
.mw-body-content a.mw-file-description:hover{ | |||
border-bottom:none !important; | |||
} | |||
/* Medik headings sometimes add borders – keep default wiki look, | |||
but we will override in Startpage and in our components. */ | |||
.mw-body h1, .mw-body h2, .mw-body h3{ | |||
color:#0F172A; | |||
} | |||
| Line 19: | Line 56: | ||
margin-top: 18px; | margin-top: 18px; | ||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
border: none; | border: none !important; | ||
} | } | ||
| Line 33: | Line 70: | ||
color: #475569 !important; | color: #475569 !important; | ||
font-size: 14px; | font-size: 14px; | ||
text-decoration: none; | text-decoration: none !important; | ||
border-bottom: none !important; /* prevent global underline in sidebar */ | |||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
} | } | ||
| Line 75: | Line 113: | ||
/* ======================================================= | /* ======================================================= | ||
2) | 2) STARTPAGE (Main_Page) — CLEAN / LIGHT ONLY | ||
Hard-separated from subpages. | |||
======================================================= */ | ======================================================= */ | ||
.page-Main_Page #toc { display:none; } | .page-Main_Page #toc{ display:none !important; } | ||
/* Layout */ | /* Layout */ | ||
| Line 87: | Line 126: | ||
} | } | ||
/* | /* Hide default page title on Main Page */ | ||
.page-Main_Page #firstHeading{ | |||
display:none !important; | |||
} | |||
/* Startpage hero (LIGHT, no dark box) */ | |||
.page-Main_Page .ck-hero{ | |||
margin: 10px 0 10px; | |||
padding: 0; | |||
background: transparent !important; | |||
border: 0 !important; | |||
border-radius: 0 !important; | |||
color:#0F172A !important; | |||
} | |||
.page-Main_Page .ck-hero h1{ | .page-Main_Page .ck-hero h1{ | ||
font-size: 28px; | font-size: 28px; | ||
font-weight: | font-weight: 900; | ||
margin: 0 0 8px; | margin: 0 0 8px; | ||
color:#0F172A; | color:#0F172A; | ||
| Line 100: | Line 152: | ||
font-size:14px; | font-size:14px; | ||
color:#64748B; | color:#64748B; | ||
max-width: | max-width:860px; | ||
line-height:1.6; | line-height:1.6; | ||
} | } | ||
/* hero links subtle */ | /* Startpage hero links (subtle, like earlier) */ | ||
.page-Main_Page .ck-hero a{ | .page-Main_Page .ck-hero a{ | ||
color:#0F172A !important; | color:#0F172A !important; | ||
font-weight:600; | font-weight:600; | ||
text-decoration:none !important; | text-decoration:none !important; | ||
border-bottom:1px solid rgba(15,23,42,. | border-bottom:1px solid rgba(15,23,42,.14) !important; | ||
} | } | ||
.page-Main_Page .ck-hero a:hover{ | .page-Main_Page .ck-hero a:hover{ | ||
color:#0B65E9 !important; | color:#0B65E9 !important; | ||
border-bottom: | border-bottom-color:#0B65E9 !important; | ||
} | } | ||
/* | /* Section title */ | ||
.page-Main_Page .ck-section-title{ | .page-Main_Page .ck-section-title{ | ||
font-size:13px; | font-size:13px; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
letter-spacing:.6px; | letter-spacing:.6px; | ||
font-weight: | font-weight:900; | ||
color:#0B65E9; | color:#0B65E9; | ||
margin:34px 0 18px; | margin:34px 0 18px; | ||
} | } | ||
/* | /* Cards */ | ||
.page-Main_Page .ck-card{ margin-bottom:22px; } | .page-Main_Page .ck-card{ margin-bottom:22px; } | ||
| Line 144: | Line 194: | ||
.page-Main_Page .ck-card-inner:hover{ | .page-Main_Page .ck-card-inner:hover{ | ||
border-color:rgba(11,101,233,. | border-color:rgba(11,101,233,.22); | ||
} | } | ||
| Line 158: | Line 208: | ||
.page-Main_Page .ck-text{ flex:1; } | .page-Main_Page .ck-text{ flex:1; } | ||
/* | /* Remove MW wrappers on icon images */ | ||
.page-Main_Page .ck-icoimg .thumb, | .page-Main_Page .ck-icoimg .thumb, | ||
.page-Main_Page .ck-icoimg .thumbinner, | .page-Main_Page .ck-icoimg .thumbinner, | ||
| Line 172: | Line 222: | ||
} | } | ||
/* | /* Icon container */ | ||
.page-Main_Page .ck-icoimg{ | .page-Main_Page .ck-icoimg{ | ||
width:64px; | width:64px; | ||
| Line 193: | Line 243: | ||
height:100%; | height:100%; | ||
text-decoration:none !important; | text-decoration:none !important; | ||
border-bottom:none !important; | |||
} | } | ||
| Line 202: | Line 253: | ||
} | } | ||
/* | /* Text */ | ||
.page-Main_Page .ck-card h2{ | .page-Main_Page .ck-card h2{ | ||
margin:0 0 6px !important; | margin:0 0 6px !important; | ||
padding:0 !important; | padding:0 !important; | ||
font-size:17px; | font-size:17px; | ||
font-weight: | font-weight:800; | ||
letter-spacing:-0.2px; | letter-spacing:-0.2px; | ||
color:#0F172A; | color:#0F172A; | ||
border:0 !important; | border:0 !important; | ||
background:none !important; | background:none !important; | ||
} | } | ||
.page-Main_Page .ck-card h2:after, | .page-Main_Page .ck-card h2:after, | ||
.page-Main_Page .ck-card h2:before{ | .page-Main_Page .ck-card h2:before{ content:none !important; } | ||
} | |||
.page-Main_Page .ck-card h2 a{ | .page-Main_Page .ck-card h2 a{ | ||
text-decoration:none !important; | text-decoration:none !important; | ||
border-bottom:none !important; | |||
color:#0F172A !important; | color:#0F172A !important; | ||
} | } | ||
| Line 235: | Line 283: | ||
} | } | ||
/* | /* Meta chips */ | ||
.page-Main_Page .ck-meta{ | .page-Main_Page .ck-meta{ | ||
margin-top:14px; | margin-top:14px; | ||
| Line 251: | Line 299: | ||
border:1px solid #E2E8F0; | border:1px solid #E2E8F0; | ||
font-size:12.5px; | font-size:12.5px; | ||
font-weight: | font-weight:800; | ||
color:#0B65E9 !important; | color:#0B65E9 !important; | ||
text-decoration:none !important; | text-decoration:none !important; | ||
border-bottom:none !important; | |||
} | } | ||
.page-Main_Page .ck-meta a:hover{ | .page-Main_Page .ck-meta a:hover{ | ||
| Line 259: | Line 308: | ||
} | } | ||
/* | /* CTA button */ | ||
.page-Main_Page .ck-card-right{ | .page-Main_Page .ck-card-right{ | ||
width:220px; | width:220px; | ||
| Line 277: | Line 326: | ||
color:#FFFFFF !important; | color:#FFFFFF !important; | ||
font-size:14px; | font-size:14px; | ||
font-weight: | font-weight:800; | ||
text-decoration:none !important; | text-decoration:none !important; | ||
border-bottom:none !important; | |||
transition:.18s ease; | transition:.18s ease; | ||
} | } | ||
| Line 286: | Line 336: | ||
} | } | ||
/* | /* Mobile (Startpage) */ | ||
@media (max-width: 900px){ | @media (max-width: 900px){ | ||
| Line 374: | Line 350: | ||
} | } | ||
.page-Main_Page .ck-card-top{ | .page-Main_Page .ck-card-top{ | ||
flex-direction: column !important; | flex-direction: column !important; | ||
| Line 381: | Line 356: | ||
} | } | ||
.page-Main_Page .ck-card-right{ | .page-Main_Page .ck-card-right{ | ||
width: 100% !important; | width: 100% !important; | ||
margin-top: 6px !important; | margin-top: 6px !important; | ||
padding-top: 16px !important; | padding-top: 16px !important; | ||
border-top: 1px solid #F1F5F9; | border-top: 1px solid #F1F5F9; | ||
display: block !important; | display: block !important; | ||
} | } | ||
| Line 396: | Line 370: | ||
font-size: 15px !important; | font-size: 15px !important; | ||
} | } | ||
} | } | ||
/* ======================================================= | /* ======================================================= | ||
3) | 3) SUBPAGES UI KIT (REUSABLE) — NOT Main_Page | ||
Only applies on pages where you use ck-* classes. | |||
======================================================= */ | ======================================================= */ | ||
/* | /* Only subpages: allow dark hero */ | ||
:not(.page-Main_Page) .ck-hero{ | |||
.ck-hero{ | |||
margin: 14px 0 18px; | margin: 14px 0 18px; | ||
padding: 20px; | padding: 20px; | ||
| Line 494: | Line 388: | ||
} | } | ||
/* Make hero text readable, left aligned (your complaint) */ | |||
:not(.page-Main_Page) .ck-hero, | |||
:not(.page-Main_Page) .ck-hero *{ | |||
text-align:left !important; | |||
} | |||
/* prevent weird white bars: kill backgrounds inside hero by default */ | |||
:not(.page-Main_Page) .ck-hero *{ | |||
background: transparent !important; | |||
box-shadow:none !important; | |||
} | |||
/* Hero inner layout */ | |||
.ck-hero-inner{ | .ck-hero-inner{ | ||
display:flex; | display:flex; | ||
| Line 513: | Line 420: | ||
} | } | ||
/* | /* Remove MW wrappers inside hero logo */ | ||
.ck-hero-logo .thumb, | .ck-hero-logo .thumb, | ||
.ck-hero-logo .thumbinner, | .ck-hero-logo .thumbinner, | ||
| Line 545: | Line 452: | ||
line-height:1.1; | line-height:1.1; | ||
color:#38BDF8; | color:#38BDF8; | ||
border:0 !important; | |||
} | } | ||
| Line 558: | Line 466: | ||
font-size:13.5px; | font-size:13.5px; | ||
color:#E2E8F0; | color:#E2E8F0; | ||
line-height:1. | line-height:1.55; | ||
} | |||
.ck-hero-meta code{ | |||
background: rgba(255,255,255,.08) !important; | |||
border: 1px solid rgba(255,255,255,.10); | |||
padding: 2px 6px; | |||
border-radius: 8px; | |||
} | } | ||
| Line 568: | Line 483: | ||
} | } | ||
/* ----- | /* Buttons (wrap as: [url <span class="ck-btn ck-btn-primary">Text</span>] ) */ | ||
.ck-btn{ | |||
display:inline-flex; | |||
align-items:center; | |||
justify-content:center; | |||
padding:10px 16px; | |||
border-radius:12px; | |||
font-weight:900; | |||
font-size:13px; | |||
line-height:1; | |||
white-space:nowrap; | |||
border:1px solid transparent; | |||
text-decoration:none !important; | |||
} | |||
/* remove underline when a link contains our button span */ | |||
.mw-body-content a .ck-btn{ | |||
border-bottom:none !important; | |||
} | |||
.ck-btn-primary{ | |||
background:#0B65E9 !important; | |||
color:#FFFFFF !important; | |||
} | |||
.ck-btn-primary:hover{ | |||
background:#094DB6 !important; | |||
} | |||
.ck-btn-ghost{ | |||
background:#111827 !important; | |||
border-color:#334155 !important; | |||
color:#E2E8F0 !important; | |||
} | |||
.ck-btn-ghost:hover{ | |||
border-color: rgba(56,189,248,.55) !important; | |||
} | |||
/* Lead paragraph */ | |||
.ck-lead{ | .ck-lead{ | ||
margin: 10px 0 14px; | margin: 10px 0 14px; | ||
| Line 576: | Line 528: | ||
} | } | ||
/* | /* Callouts */ | ||
.ck-callout{ | .ck-callout{ | ||
margin: 14px 0; | margin: 14px 0; | ||
| Line 584: | Line 536: | ||
border:1px solid #E2E8F0; | border:1px solid #E2E8F0; | ||
border-left:5px solid #0EA5E9; | border-left:5px solid #0EA5E9; | ||
} | } | ||
| Line 599: | Line 550: | ||
} | } | ||
/* | /* Jump box */ | ||
.ck-jump{ | .ck-jump{ | ||
margin: 14px 0; | margin: 14px 0; | ||
| Line 607: | Line 558: | ||
border-radius: 12px; | border-radius: 12px; | ||
border: 1px solid #E2E8F0; | border: 1px solid #E2E8F0; | ||
} | } | ||
/* | /* "On this page" box */ | ||
.ck-tocbox{ | .ck-tocbox{ | ||
margin: 14px 0; | margin: 14px 0; | ||
| Line 617: | Line 567: | ||
background:#F1F5F9; | background:#F1F5F9; | ||
border:1px solid #E2E8F0; | border:1px solid #E2E8F0; | ||
} | } | ||
.ck-toc-title{ | .ck-toc-title{ | ||
| Line 623: | Line 572: | ||
font-weight: 900; | font-weight: 900; | ||
margin-bottom: 8px; | margin-bottom: 8px; | ||
} | } | ||
/* ======================================================= | /* ======================================================= | ||
4) CKRAS | 4) TABLES — CKRAS CI (global, but minimal-risk) | ||
Applies to .wikitable and optional .ck-table | |||
======================================================= */ | ======================================================= */ | ||
.wikitable, | |||
.ck-table{ | |||
border:1px solid #D7E3F8 !important; | |||
border-radius: 14px; | |||
overflow:hidden; | |||
border-collapse: separate !important; | border-collapse: separate !important; | ||
border-spacing: 0 !important; | border-spacing: 0 !important; | ||
width: 100% | width:100%; | ||
background:#FFFFFF; | |||
background: #FFFFFF; | |||
} | } | ||
.wikitable th, | |||
table | .ck-table th{ | ||
background: # | background:#EAF2FF !important; | ||
color: #0F172A; | color:#0F172A !important; | ||
font-weight: 900; | font-weight:900; | ||
border-bottom: 1px solid # | border-bottom:1px solid #D7E3F8 !important; | ||
padding:10px 12px !important; | |||
} | } | ||
.wikitable td, | |||
.ck-table td{ | |||
table | border-top:1px solid #EEF2F7 !important; | ||
padding:10px 12px !important; | |||
border- | |||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.wikitable tr:nth-child(even) td, | |||
.ck-table tr:nth-child(even) td{ | |||
table | background:#F8FAFF; | ||
} | } | ||
/* | /* Make code blocks inside tables readable */ | ||
.wikitable code, | |||
.ck-table code{ | |||
background:#F1F5F9 !important; | |||
table | |||
background:#F1F5F9; | |||
border:1px solid #E2E8F0; | border:1px solid #E2E8F0; | ||
padding:2px 6px; | padding:2px 6px; | ||
border-radius: 8px; | border-radius:8px; | ||
} | } | ||
/* | /* Mobile (subpages kit) */ | ||
@media (max-width: 900px){ | @media (max-width: 900px){ | ||
| Line 702: | Line 631: | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
text-align: center; | } | ||
:not(.page-Main_Page) .ck-hero, | |||
:not(.page-Main_Page) .ck-hero *{ | |||
text-align:center !important; | |||
} | } | ||
| Line 729: | Line 662: | ||
} | } | ||
} | } | ||
Revision as of 15:09, 3 March 2026
/* =========================================================
CKRAS WIKI — GLOBAL + STARTPAGE + SUBPAGES UI KIT
Skin: Medik (responsive)
Goal:
- Main_Page stays clean / light / SaaS-like (NO dark hero)
- Subpages can use a dark hero kit via classes
- Consistent CKRAS link hover + buttons + tables
========================================================= */
/* =========================================================
0) GLOBAL BASE (safe defaults)
========================================================= */
.mw-body-content{
color:#0F172A;
}
/* Links: single subtle underline (NOT double) */
.mw-body-content a{
color:#0B65E9;
text-decoration:none !important;
border-bottom:1px solid rgba(11,101,233,.18);
transition: .15s ease;
}
.mw-body-content a:hover{
color:#094DB6;
border-bottom-color: rgba(9,77,182,.55);
}
/* Never underline image/file links */
.mw-body-content a.image,
.mw-body-content a.mw-file-description,
.mw-body-content a.image:hover,
.mw-body-content a.mw-file-description:hover{
border-bottom:none !important;
}
/* Medik headings sometimes add borders – keep default wiki look,
but we will override in Startpage and in our components. */
.mw-body h1, .mw-body h2, .mw-body h3{
color:#0F172A;
}
/* =========================================================
1) CKRAS SIDEBAR REDESIGN (GLOBAL)
========================================================= */
/* Sidebar Headlines */
#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 !important;
}
/* Link Styling & Icon Alignment */
#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 !important;
border-bottom: none !important; /* prevent global underline in sidebar */
transition: all 0.2s ease;
}
#mw-panel .portal .body ul li a:hover {
color: #0B65E9 !important;
padding-left: 2px;
}
/* Icon Setup */
#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: "⏱️"; }
/* GUIDE ICONS */
#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: "🔑"; }
/* PRODUCT ICONS */
#n-Gameserver a::before { content: "🎮"; }
#n-Teamspeak a::before { content: "🎤"; }
#n-TV-Server a::before { content: "📺"; }
/* EXTERNAL & LANGUAGE ICONS */
#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) STARTPAGE (Main_Page) — CLEAN / LIGHT ONLY
Hard-separated from subpages.
======================================================= */
.page-Main_Page #toc{ display:none !important; }
/* Layout */
.page-Main_Page .mw-body-content{
max-width: 1700px;
margin: 0 auto;
padding: 0 40px;
}
/* Hide default page title on Main Page */
.page-Main_Page #firstHeading{
display:none !important;
}
/* Startpage hero (LIGHT, no dark box) */
.page-Main_Page .ck-hero{
margin: 10px 0 10px;
padding: 0;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
color:#0F172A !important;
}
.page-Main_Page .ck-hero h1{
font-size: 28px;
font-weight: 900;
margin: 0 0 8px;
color:#0F172A;
}
.page-Main_Page .ck-hero p{
margin:0;
font-size:14px;
color:#64748B;
max-width:860px;
line-height:1.6;
}
/* Startpage hero links (subtle, like earlier) */
.page-Main_Page .ck-hero a{
color:#0F172A !important;
font-weight:600;
text-decoration:none !important;
border-bottom:1px solid rgba(15,23,42,.14) !important;
}
.page-Main_Page .ck-hero a:hover{
color:#0B65E9 !important;
border-bottom-color:#0B65E9 !important;
}
/* Section title */
.page-Main_Page .ck-section-title{
font-size:13px;
text-transform:uppercase;
letter-spacing:.6px;
font-weight:900;
color:#0B65E9;
margin:34px 0 18px;
}
/* Cards */
.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,.22);
}
/* LEFT */
.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; }
/* Remove MW wrappers on icon images */
.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;
}
/* Icon container */
.page-Main_Page .ck-icoimg{
width:64px;
height:64px;
border-radius:20px;
background:#F8FAFC;
border:1px solid #E2E8F0;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
flex-shrink:0;
}
.page-Main_Page .ck-icoimg a{
display:flex;
align-items:center;
justify-content:center;
width:100%;
height:100%;
text-decoration:none !important;
border-bottom:none !important;
}
.page-Main_Page .ck-icoimg img{
width:50px !important;
height:50px !important;
object-fit:contain !important;
display:block !important;
}
/* Text */
.page-Main_Page .ck-card h2{
margin:0 0 6px !important;
padding:0 !important;
font-size:17px;
font-weight:800;
letter-spacing:-0.2px;
color:#0F172A;
border: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;
border-bottom: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;
}
/* Meta chips */
.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:800;
color:#0B65E9 !important;
text-decoration:none !important;
border-bottom:none !important;
}
.page-Main_Page .ck-meta a:hover{
background:#EAF2FF;
}
/* CTA button */
.page-Main_Page .ck-card-right{
width:220px;
flex-shrink:0;
display:flex;
justify-content:flex-end;
}
.page-Main_Page .ck-card-right a{
width:220px;
height:48px;
display:flex;
align-items:center;
justify-content:center;
border-radius:16px;
background:#0B65E9;
color:#FFFFFF !important;
font-size:14px;
font-weight:800;
text-decoration:none !important;
border-bottom:none !important;
transition:.18s ease;
}
.page-Main_Page .ck-card-right a:hover{
background:#094DB6;
transform:translateY(-1px);
}
/* Mobile (Startpage) */
@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;
gap: 22px !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;
font-size: 15px !important;
}
}
/* =======================================================
3) SUBPAGES UI KIT (REUSABLE) — NOT Main_Page
Only applies on pages where you use ck-* classes.
======================================================= */
/* Only subpages: allow dark hero */
:not(.page-Main_Page) .ck-hero{
margin: 14px 0 18px;
padding: 20px;
border-radius: 18px;
background: linear-gradient(135deg,#0f172a,#1e293b);
border: 1px solid rgba(255,255,255,.08);
color: #E2E8F0;
}
/* Make hero text readable, left aligned (your complaint) */
:not(.page-Main_Page) .ck-hero,
:not(.page-Main_Page) .ck-hero *{
text-align:left !important;
}
/* prevent weird white bars: kill backgrounds inside hero by default */
:not(.page-Main_Page) .ck-hero *{
background: transparent !important;
box-shadow:none !important;
}
/* Hero inner layout */
.ck-hero-inner{
display:flex;
gap:18px;
align-items:center;
}
.ck-hero-logo{
width:110px;
height:110px;
flex:0 0 auto;
display:flex;
align-items:center;
justify-content:center;
border-radius:22px;
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.10);
overflow:hidden;
}
/* Remove MW wrappers inside hero logo */
.ck-hero-logo .thumb,
.ck-hero-logo .thumbinner,
.ck-hero-logo figure,
.ck-hero-logo figcaption,
.ck-hero-logo .image,
.ck-hero-logo .mw-file-element{
background:transparent !important;
border:none !important;
padding:0 !important;
margin:0 !important;
box-shadow:none !important;
}
.ck-hero-logo img{
width:96px !important;
height:96px !important;
object-fit:contain !important;
display:block !important;
}
.ck-hero-content{
flex:1 1 auto;
min-width:0;
}
.ck-hero-title{
margin:0;
font-size:28px;
font-weight:900;
line-height:1.1;
color:#38BDF8;
border:0 !important;
}
.ck-hero-sub{
margin:6px 0 0;
font-size:14.5px;
color:#94A3B8;
line-height:1.5;
}
.ck-hero-meta{
margin-top:10px;
font-size:13.5px;
color:#E2E8F0;
line-height:1.55;
}
.ck-hero-meta code{
background: rgba(255,255,255,.08) !important;
border: 1px solid rgba(255,255,255,.10);
padding: 2px 6px;
border-radius: 8px;
}
.ck-hero-actions{
margin-top:12px;
display:flex;
gap:10px;
flex-wrap:wrap;
}
/* Buttons (wrap as: [url <span class="ck-btn ck-btn-primary">Text</span>] ) */
.ck-btn{
display:inline-flex;
align-items:center;
justify-content:center;
padding:10px 16px;
border-radius:12px;
font-weight:900;
font-size:13px;
line-height:1;
white-space:nowrap;
border:1px solid transparent;
text-decoration:none !important;
}
/* remove underline when a link contains our button span */
.mw-body-content a .ck-btn{
border-bottom:none !important;
}
.ck-btn-primary{
background:#0B65E9 !important;
color:#FFFFFF !important;
}
.ck-btn-primary:hover{
background:#094DB6 !important;
}
.ck-btn-ghost{
background:#111827 !important;
border-color:#334155 !important;
color:#E2E8F0 !important;
}
.ck-btn-ghost:hover{
border-color: rgba(56,189,248,.55) !important;
}
/* Lead paragraph */
.ck-lead{
margin: 10px 0 14px;
font-size: 14px;
color: #0F172A;
line-height: 1.65;
}
/* Callouts */
.ck-callout{
margin: 14px 0;
padding: 12px 14px;
border-radius: 12px;
background:#F8FAFC;
border:1px solid #E2E8F0;
border-left:5px solid #0EA5E9;
}
.ck-callout-warn{
background:#FFF7ED;
border-color:#FED7AA;
border-left-color:#F59E0B;
}
.ck-callout-ok{
background:#ECFDF5;
border-color:#D1FAE5;
border-left-color:#10B981;
}
/* Jump box */
.ck-jump{
margin: 14px 0;
padding: 12px 14px;
border-left: 5px solid #0EA5E9;
background:#F8FAFC;
border-radius: 12px;
border: 1px solid #E2E8F0;
}
/* "On this page" box */
.ck-tocbox{
margin: 14px 0;
padding: 14px;
border-radius: 14px;
background:#F1F5F9;
border:1px solid #E2E8F0;
}
.ck-toc-title{
font-size: 16px;
font-weight: 900;
margin-bottom: 8px;
}
/* =======================================================
4) TABLES — CKRAS CI (global, but minimal-risk)
Applies to .wikitable and optional .ck-table
======================================================= */
.wikitable,
.ck-table{
border:1px solid #D7E3F8 !important;
border-radius: 14px;
overflow:hidden;
border-collapse: separate !important;
border-spacing: 0 !important;
width:100%;
background:#FFFFFF;
}
.wikitable th,
.ck-table th{
background:#EAF2FF !important;
color:#0F172A !important;
font-weight:900;
border-bottom:1px solid #D7E3F8 !important;
padding:10px 12px !important;
}
.wikitable td,
.ck-table td{
border-top:1px solid #EEF2F7 !important;
padding:10px 12px !important;
vertical-align: top;
}
.wikitable tr:nth-child(even) td,
.ck-table tr:nth-child(even) td{
background:#F8FAFF;
}
/* Make code blocks inside tables readable */
.wikitable code,
.ck-table code{
background:#F1F5F9 !important;
border:1px solid #E2E8F0;
padding:2px 6px;
border-radius:8px;
}
/* Mobile (subpages kit) */
@media (max-width: 900px){
.ck-hero{
padding: 16px;
border-radius: 16px;
}
.ck-hero-inner{
flex-direction: column;
align-items: center;
}
:not(.page-Main_Page) .ck-hero,
:not(.page-Main_Page) .ck-hero *{
text-align:center !important;
}
.ck-hero-logo{
width:96px;
height:96px;
border-radius:20px;
}
.ck-hero-logo img{
width:84px !important;
height:84px !important;
}
.ck-hero-title{
font-size:22px;
}
.ck-hero-actions{
justify-content:center;
}
.ck-btn{
padding: 11px 16px;
border-radius: 14px;
}
}