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 — SIDEBAR + STARTPAGE (Gaming SaaS)
Scope: Sidebar global, Startpage scoped.
========================================================= */
/* =========================================================
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;
}
/* 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;
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: "🇩🇪"; }
/* ===== CKRAS Wiki UI Kit (Dashboard-like) ===== */
/* Full-width content on Main Page (up to 1920) */
.page-Main_Page .mw-body-content{
max-width: 1920px;
margin: 0 auto;
}
.page-Main_Page .mw-body-content,
.page-Main_Page .mw-parser-output{
padding-left: 22px;
padding-right: 22px;
}
/* Remove TOC on Main Page (recommended) */
.page-Main_Page #toc{ display:none; }
/* Section title like "main-title-row" */
.ckui-title{
margin: 14px 0 14px;
}
.ckui-title h1{
font-size: 34px;
font-weight: 900;
margin: 0 0 6px;
}
.ckui-sub{
margin: 0;
font-size: 14px;
color: #64748b;
}
/* Section header like menu-title */
.ckui-sectionbar{
display:flex;
align-items:center;
justify-content:space-between;
margin: 18px 0 10px;
}
.ckui-sectionbar h2{
margin: 0;
font-size: 13px;
letter-spacing: .6px;
text-transform: uppercase;
font-weight: 900;
color: #0B65E9;
}
/* Badge like onlinebx */
.ckui-badge{
display:inline-flex;
align-items:center;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 900;
background: #f1f5f9;
color: #0f172a;
}
.ckui-badge-online{
background: rgba(34,197,94,.12);
color: #15803d;
}
/* Grid: big tiles, not crowded */
.ckui-grid{
display:grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
@media (max-width: 1280px){
.ckui-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px){
.ckui-grid{ grid-template-columns: 1fr; }
}
/* Card like server-block */
.ckui-card{
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 18px;
box-shadow: 0 10px 24px rgba(15,23,42,.08);
padding: 18px;
min-height: 170px;
display:flex;
flex-direction: column;
justify-content: space-between;
}
/* Card head like server-head */
.ckui-cardhead{
display:flex;
align-items:flex-start;
gap: 12px;
margin-bottom: 10px;
}
.ckui-ico{
width: 44px;
height: 44px;
border-radius: 14px;
display:flex;
align-items:center;
justify-content:center;
background: #0b1220;
color:#fff;
font-size: 18px;
}
.ckui-cardhead h3{
margin: 0 0 4px;
font-size: 18px;
font-weight: 900;
color:#0f172a;
}
.ckui-cardhead p{
margin: 0;
font-size: 13px;
color:#64748b;
line-height: 1.35;
}
/* Actions: 1 primary button max */
.ckui-actions{
display:flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 10px;
}
.ckui-btn{
display:inline-block;
padding: 11px 14px;
border-radius: 14px;
background: #0B65E9;
color:#fff !important;
font-weight: 900;
text-decoration:none !important;
font-size: 13px;
}
.ckui-btn:hover{ background:#0958c8; }
.ckui-link{
display:inline-block;
margin-top: 10px;
font-size: 13px;
font-weight: 800;
color:#0B65E9 !important;
text-decoration:none !important;
}
.ckui-link:hover{ text-decoration:underline !important; }
/* External platform strip (PLAY) */
.ckui-strip{
margin-top: 18px;
border-radius: 18px;
padding: 16px 18px;
background: linear-gradient(135deg,#0b1220,#0f1f4a);
color:#e2e8f0;
box-shadow: 0 16px 36px rgba(0,0,0,.18);
display:flex;
align-items:center;
justify-content:space-between;
gap: 12px;
}
.ckui-strip h3{
margin: 0 0 4px;
font-size: 16px;
font-weight: 900;
}
.ckui-strip p{
margin: 0;
font-size: 13px;
color: rgba(226,232,240,.78);
}