MediaWiki:Common.css

From CKRAS Wiki

Revision as of 11:35, 2 March 2026 by Ckras (talk | contribs)

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: "🇩🇪"; }


/* =========================================================
   2) STARTPAGE HERO + 3 CORE CARDS (SCOPED)
   IMPORTANT: Replace page selector to your real start page.
   Examples:
   - .page-Main_Page
   - .page-CKRAS_WIKI
   - .page-Startseite
   ========================================================= */

.page-Main_Page .mw-parser-output,
.page-CKRAS_WIKI .mw-parser-output {
    /* nice spacing without changing whole wiki */
    padding-top: 10px;
}

/* optional: hide the first H1 if you want only hero title */
.page-Main_Page #firstHeading,
.page-CKRAS_WIKI #firstHeading {
    display: none;
}

/* Hero container */
.page-Main_Page .ckras-hero,
.page-CKRAS_WIKI .ckras-hero {
    background: linear-gradient(135deg, #0b1220, #0f1f4a);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    padding: 56px 26px 42px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* Hero title + subtext */
.page-Main_Page .ckras-hero h1,
.page-CKRAS_WIKI .ckras-hero h1 {
    margin: 0 0 10px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #e2e8f0;
}

.page-Main_Page .ckras-hero p,
.page-CKRAS_WIKI .ckras-hero p {
    margin: 0 0 34px;
    font-size: 16px;
    color: rgba(226, 232, 240, 0.78);
}

/* Grid for cards */
.page-Main_Page .ckras-core-grid,
.page-CKRAS_WIKI .ckras-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

/* Card */
.page-Main_Page .ckras-core-card,
.page-CKRAS_WIKI .ckras-core-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 22px 18px 18px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.page-Main_Page .ckras-core-card:hover,
.page-CKRAS_WIKI .ckras-core-card:hover {
    transform: translateY(-4px);
    background: rgba(51, 65, 85, 0.60);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* Card title/desc */
.page-Main_Page .ckras-core-card .card-title,
.page-CKRAS_WIKI .ckras-core-card .card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #e2e8f0;
}

.page-Main_Page .ckras-core-card .card-desc,
.page-CKRAS_WIKI .ckras-core-card .card-desc {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.70);
    margin-bottom: 14px;
    line-height: 1.35;
}

/* Make the link look like a button (works with internal wiki link too) */
.page-Main_Page .ckras-core-card a,
.page-CKRAS_WIKI .ckras-core-card a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: #0B65E9;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.page-Main_Page .ckras-core-card a:hover,
.page-CKRAS_WIKI .ckras-core-card a:hover {
    background: #0958c8;
    transform: translateY(-1px);
}

/* Highlight card (PLAY) */
.page-Main_Page .ckras-core-card.highlight,
.page-CKRAS_WIKI .ckras-core-card.highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.65), rgba(11, 101, 233, 0.70));
    border: 1px solid rgba(226, 232, 240, 0.20);
}

/* Status bar */
.page-Main_Page .ckras-status,
.page-CKRAS_WIKI .ckras-status {
    margin: 18px auto 0;
    max-width: 980px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    color: rgba(226, 232, 240, 0.75);
    font-size: 14px;
}