MediaWiki:Common.css: Difference between revisions

From CKRAS Wiki

No edit summary
No edit summary
Line 71: Line 71:
#mw-panel a[href*="wiki.ckras.com"]::before { content: "🇩🇪"; }
#mw-panel a[href*="wiki.ckras.com"]::before { content: "🇩🇪"; }


/* ===== CKRAS Wiki UI Kit (Dashboard-like) ===== */
/* ===== CKRAS Wiki Dashboard Style ===== */


/* Full-width content on Main Page (up to 1920) */
/* Full width */
.page-Main_Page .mw-body-content{
.page-Main_Page .mw-body-content {
   max-width: 1920px;
   max-width: 1800px;
   margin: 0 auto;
   margin: 0 auto;
}
   padding: 0 28px;
.page-Main_Page .mw-body-content,
.page-Main_Page .mw-parser-output{
   padding-left: 22px;
  padding-right: 22px;
}
}


/* Remove TOC on Main Page (recommended) */
/* Remove TOC */
.page-Main_Page #toc{ display:none; }
.page-Main_Page #toc { display:none; }


/* Section title like "main-title-row" */
/* Titles */
.ckui-title{
.ckui-title h1 {
   margin: 14px 0 14px;
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
   margin-bottom: 4px;
}
}
.ckui-title h1{
.ckui-sub {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 6px;
}
.ckui-sub{
  margin: 0;
   font-size: 14px;
   font-size: 14px;
   color: #64748b;
   color: #64748B;
}
}


/* Section header like menu-title */
/* Section label */
.ckui-sectionbar{
.ckui-section {
   display:flex;
   margin-top: 30px;
  align-items:center;
  justify-content:space-between;
  margin: 18px 0 10px;
}
}
.ckui-sectionbar h2{
.ckui-section h2 {
  margin: 0;
   font-size: 13px;
   font-size: 13px;
  letter-spacing: .6px;
   text-transform: uppercase;
   text-transform: uppercase;
   font-weight: 900;
  letter-spacing: .5px;
   font-weight: 800;
   color: #0B65E9;
   color: #0B65E9;
  margin-bottom: 14px;
}
}


/* Badge like onlinebx */
/* Grid */
.ckui-badge{
.ckui-grid {
   display:inline-flex;
   display: grid;
   align-items:center;
   grid-template-columns: repeat(3, 1fr);
   padding: 6px 10px;
   gap: 22px;
  border-radius: 999px;
}
   font-size: 12px;
@media (max-width: 1200px){
  font-weight: 900;
   .ckui-grid { grid-template-columns: repeat(2, 1fr); }
  background: #f1f5f9;
  color: #0f172a;
}
}
.ckui-badge-online{
@media (max-width: 800px){
   background: rgba(34,197,94,.12);
   .ckui-grid { grid-template-columns: 1fr; }
  color: #15803d;
}
}


/* Grid: big tiles, not crowded */
/* Card */
.ckui-grid{
.ckui-card {
   display:grid;
   background: #FFFFFF;
  grid-template-columns: repeat(3, minmax(0, 1fr));
   border: 1px solid #E2E8F0;
   gap: 18px;
   border-radius: 16px;
}
   padding: 20px;
@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 */
/* Card Header */
.ckui-card{
.ckui-cardhead {
   background: #fff;
   display: flex;
  border: 1px solid #e2e8f0;
   gap: 14px;
   border-radius: 18px;
   align-items: center;
   box-shadow: 0 10px 24px rgba(15,23,42,.08);
   margin-bottom: 14px;
  padding: 18px;
   min-height: 170px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
}
}


/* Card head like server-head */
.ckui-ico {
.ckui-cardhead{
   width: 42px;
   display:flex;
   height: 42px;
   align-items:flex-start;
   border-radius: 12px;
   gap: 12px;
   background: #0B65E9;
   margin-bottom: 10px;
   color: #fff;
}
.ckui-ico{
  width: 44px;
   height: 44px;
  border-radius: 14px;
   display:flex;
   display:flex;
   align-items:center;
   align-items:center;
   justify-content:center;
   justify-content:center;
  background: #0b1220;
   font-size:18px;
  color:#fff;
   font-size: 18px;
}
}
.ckui-cardhead h3{
 
   margin: 0 0 4px;
.ckui-cardhead h3 {
   font-size: 18px;
   margin:0;
   font-weight: 900;
   font-size:18px;
   color:#0f172a;
   font-weight:800;
   color:#0F172A;
}
}
.ckui-cardhead p{
 
   margin: 0;
.ckui-cardhead p {
   font-size: 13px;
   margin:2px 0 0;
   color:#64748b;
   font-size:13px;
  line-height: 1.35;
   color:#64748B;
}
}


/* Actions: 1 primary button max */
/* Buttons */
.ckui-actions{
.ckui-btn {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ckui-btn{
   display:inline-block;
   display:inline-block;
   padding: 11px 14px;
   padding:11px 16px;
  border-radius: 14px;
   background:#0B65E9;
   background: #0B65E9;
   color:#fff !important;
   color:#fff !important;
   font-weight: 900;
  border-radius:14px;
   font-weight:800;
  font-size:13px;
   text-decoration:none !important;
   text-decoration:none !important;
  font-size: 13px;
}
}
.ckui-btn:hover{ background:#0958c8; }
.ckui-btn:hover {
  background:#0958C8;
}


.ckui-link{
/* Secondary link */
   display:inline-block;
.ckui-link {
   margin-top: 10px;
   display:block;
   font-size: 13px;
   margin-top:10px;
   font-weight: 800;
   font-size:13px;
   font-weight:700;
   color:#0B65E9 !important;
   color:#0B65E9 !important;
   text-decoration:none !important;
   text-decoration:none !important;
}
}
.ckui-link:hover{ text-decoration:underline !important; }
.ckui-link:hover {
  text-decoration:underline !important;
}


/* External platform strip (PLAY) */
/* PLAY strip */
.ckui-strip{
.ckui-strip {
   margin-top: 18px;
   margin-top: 30px;
  background: #0F172A;
   border-radius: 18px;
   border-radius: 18px;
   padding: 16px 18px;
   padding: 20px;
  background: linear-gradient(135deg,#0b1220,#0f1f4a);
   color:#fff;
   color:#e2e8f0;
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
   display:flex;
   display:flex;
  justify-content:space-between;
   align-items:center;
   align-items:center;
  justify-content:space-between;
  gap: 12px;
}
}
.ckui-strip h3{
.ckui-strip h3 {
   margin: 0 0 4px;
   margin:0 0 4px;
   font-size: 16px;
   font-size:16px;
   font-weight: 900;
   font-weight:800;
}
}
.ckui-strip p{
.ckui-strip p {
   margin: 0;
   margin:0;
   font-size: 13px;
   font-size:13px;
   color: rgba(226,232,240,.78);
   opacity:.7;
}
}

Revision as of 11:49, 2 March 2026

/* =========================================================
   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 Dashboard Style ===== */

/* Full width */
.page-Main_Page .mw-body-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Remove TOC */
.page-Main_Page #toc { display:none; }

/* Titles */
.ckui-title h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}
.ckui-sub {
  font-size: 14px;
  color: #64748B;
}

/* Section label */
.ckui-section {
  margin-top: 30px;
}
.ckui-section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 800;
  color: #0B65E9;
  margin-bottom: 14px;
}

/* Grid */
.ckui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1200px){
  .ckui-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px){
  .ckui-grid { grid-template-columns: 1fr; }
}

/* Card */
.ckui-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
}

/* Card Header */
.ckui-cardhead {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.ckui-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0B65E9;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.ckui-cardhead h3 {
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#0F172A;
}

.ckui-cardhead p {
  margin:2px 0 0;
  font-size:13px;
  color:#64748B;
}

/* Buttons */
.ckui-btn {
  display:inline-block;
  padding:11px 16px;
  background:#0B65E9;
  color:#fff !important;
  border-radius:14px;
  font-weight:800;
  font-size:13px;
  text-decoration:none !important;
}
.ckui-btn:hover {
  background:#0958C8;
}

/* Secondary link */
.ckui-link {
  display:block;
  margin-top:10px;
  font-size:13px;
  font-weight:700;
  color:#0B65E9 !important;
  text-decoration:none !important;
}
.ckui-link:hover {
  text-decoration:underline !important;
}

/* PLAY strip */
.ckui-strip {
  margin-top: 30px;
  background: #0F172A;
  border-radius: 18px;
  padding: 20px;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.ckui-strip h3 {
  margin:0 0 4px;
  font-size:16px;
  font-weight:800;
}
.ckui-strip p {
  margin:0;
  font-size:13px;
  opacity:.7;
}