Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Manual revert
Footer: hide bottom strip (tagline/poweredby/divider)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* =========================================================================
  GScripts theme — matches the main site (https://gscripts.co)
  Dark navy surfaces + gold (#d4af37) accent + Inter. Citizen is themeable
  via CSS custom properties, so we override its surface/link/text vars and
  then style the content (tables, code, headings, infobox, nav cards).
  ========================================================================= */


/* Script Infobox settings */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
.infobox {
 
     width: 210px; /* Fixed width for both mobile and desktop */
/* ---- Citizen colour + font variable overrides (force the brand dark theme) ---- */
     float: right;
:root,
     margin: 0 0 1em 1em;
html.skin-citizen-auto,
     background: #333;
html.skin-citizen-dark,
     color: #fff;
html.skin-citizen-light,
     padding: 1px;
.skin-citizen {
}
     color-scheme: dark;          /* dark-only: force dark UA controls/scrollbars regardless of OS or toggle */
    --color-surface-0: #0d0e12;  /* page background (near-black) */
    --color-surface-1: #141418;  /* raised panels / sidebar (neutral dark) */
    --color-surface-2: #1b1b20;  /* cards / raised / interactive (neutral dark) */
    --color-surface-3: #26262c;  /* hovers (neutral) */
    --color-surface-4: #26262c;
 
    --color-base: #e5e7eb;        /* body text */
    --color-emphasized: #ffffff;  /* strong text */
    --color-subtle: #9ca3af;      /* muted text */
 
    --color-progressive: #5e9eff;          /* links (blue, default-link style) */
    --color-progressive--hover: #d4af37;   /* gold on hover */
     --color-progressive--active: #d4af37;
    --color-progressive--focus: #5e9eff;
    --color-link: #5e9eff;
     --color-visited: #5e9eff;
 
    --border-color-base: #3a3d44;          /* gray outlines (not blue/navy) */
    --border-color-subtle: #2a2c31;
 
     --background-color-base: #0d0e12;
     --background-color-neutral: #1b1b20;
     --background-color-neutral-subtle: #141418;


/* Center infobox on mobile */
    --font-family-base: 'Inter', 'Inter Variable', -apple-system, system-ui, sans-serif;
@media (max-width: 767px) {
     --font-family-heading: 'Inter', 'Inter Variable', system-ui, sans-serif;
     .infobox {
    --border-radius-medium: 10px;
        float: none;
        margin: 0 auto 1em auto;
    }
}
}


/* Center the image and table */
/* Dark-only: hide the colour-scheme (theme) switcher in Citizen's preferences panel.
.center-content {
  Each client pref is a portlet #skin-client-prefs-<feature>; we hide only the theme one. */
     text-align: center;
#skin-client-prefs-skin-theme,
    padding-top: 5px; /* You can adjust this padding as needed */
.mw-portlet-skin-client-prefs-skin-theme {
     display: none !important;
}
}


/* Ensure the parameters table is also centered */
/* Footer cleanup: drop the bottom strip (tagline + Powered by + divider line),
.infobox table {
  the search dropdown's "Powered by", and the MobileFrontend "Mobile view" toggle. */
     width: 100%; /* Makes sure the table takes the full width of the infobox */
.citizen-footer__bottom,
.citizen-search__footer-start,
#footer-places-mobileview,
a[href*="toggle_view_mobile"] {
     display: none !important;
}
}


/* Discord Styling */
/* faint grid backdrop like the main site */
#discord-link-below-logo {
.mw-content-container,
     margin-top: 5px;
.citizen-page-container {
     line-height: 0;
     background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
     background-size: 44px 44px;
}
}


#discord-link-below-logo img {
/* ---- headings ---- */
     vertical-align: middle;
.mw-body .mw-parser-output h2,
.mw-body .mw-parser-output h3,
.mw-body .mw-parser-output h4 {
     color: #e8c869;
    border-bottom: 1px solid #3a3d44;
}
}
.vector-header-start {
.mw-body h1.firstHeading {
     display: flex;
     color: #ffffff;
    flex-direction: column; /* Forces children (logo, then Discord link) to stack vertically */
    align-items: flex-start; /* Aligns items to the left */
}
}


/* Base table styling */
/* ---- links: blue like a default link, gold on hover ---- */
.hover-table {
.mw-parser-output a:not(.image):not(.mw-selflink) {
     font-family: 'Arial', sans-serif; /* Fallback; ideally use a custom font below */
     color: #5e9eff;
}
}
 
.mw-parser-output a:not(.image):not(.mw-selflink):hover {
/* Header styling */
     color: #d4af37;
.hover-table caption {
     text-decoration: underline;
    font-size: 32px;
    font-weight: bold;
     text-shadow: 1px 1px 2px #8B6F35;
     padding-bottom: 15px;
}
}
.mw-parser-output a.new { color: #b06a6a; } /* red/dead links, muted */


/* Cell styling */
/* ---- wikitables: navy panels, gold heads, rounded ---- */
.hover-table td {
.mw-parser-output .wikitable {
     transition: all 0.3s ease;
     background: #161616;
     padding: 10px;
    color: #d1d5db;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
     overflow: hidden;
}
}
 
.mw-parser-output .wikitable > * > tr > th {
/* Text styling for links */
     background: #1e1e22;
.hover-table td a {
     color: #e8c869;
     font-size: 18px;
    border: 1px solid #2c2c2c;
     color: #E0C882;
     font-weight: 600;
     font-weight: 600;
     text-shadow: 0 0 3px rgba(139, 111, 53, 0.5);
}
    text-decoration: none; /* Removes underline for a cleaner look */
.mw-parser-output .wikitable > * > tr > td {
     background: transparent;
    border: 1px solid #2c2c2c;
}
.mw-parser-output .wikitable > * > tr:hover > td {
    background: rgba(255, 255, 255, .03);
}
}


/* Hover effect for the whole cell */
/* ---- code / pre ---- */
.hover-table td:hover {
.mw-parser-output code,
     transform: scale(1.05);
.mw-parser-output pre,
     box-shadow: 0 0 10px rgba(224, 200, 130, 0.7);
.mw-parser-output kbd {
     border-radius: 5px;
     background: #161616;
     background-color: rgba(224, 200, 130, 0.1);
     border: 1px solid #2c2c2c;
     color: #e5e7eb;
     border-radius: 6px;
}
}


/* Optional: Brighten text on hover */
/* ---- callout cards ----
.hover-table td:hover a {
  Auto-style any inline left-accent block into a readable card. The inline
     color: #FFD700; /* Slightly brighter gold for emphasis */
  `border-left:Npx solid <colour>` wins on the left edge, so each keeps its
     text-shadow: 0 0 5px rgba(139, 111, 53, 0.8);
  colour as an accent stripe; we add the dark bg, gray border and rounding.
  `.gs-card` is the same thing for explicit use. */
.mw-parser-output div[style*="border-left"],
.mw-parser-output .gs-card {
    background: #161616;
     border: 1px solid #2c2c2c;
     border-radius: 8px;
    padding: 12px 16px;
    margin: 14px 0;
}
}
 
/* code inside a card: lift it off the matching background */
/* Style for collapsed sections */
.mw-parser-output div[style*="border-left"] code,
/* Ensure no unwanted spacing on the first accordion */
.mw-parser-output .gs-card code {
.accordion-section:first-child {
     background: #0f0f12;
     margin-top: 0 !important;
}
}


/* =========================================================================
  Existing custom rules (palette refreshed to gold #d4af37 + navy)
  ========================================================================= */


.accordion-section {
/* Script Infobox */
     margin: 0;
.infobox {
    width: 210px;
    float: right;
     margin: 0 0 1em 1em;
    background: transparent;
     padding: 0;
     padding: 0;
    border: none;
}
@media (max-width: 767px) {
    .infobox { float: none; margin: 0 auto 1em auto; }
}
}
.center-content { text-align: center; padding-top: 5px; }
.infobox table { width: 100%; }


/* Header styling (collapsed by default) */
/* Discord styling */
.accordion-header {
#discord-link-below-logo { margin-top: 5px; line-height: 0; }
    background-color: #222; /* Dark background */
#discord-link-below-logo img { vertical-align: middle; }
    color: #ccc; /* Lighter text */
.vector-header-start { display: flex; flex-direction: column; align-items: flex-start; }
    font-weight: normal;
 
    padding: 15px;
/* Nav cards (Wildy / PVM / Combat / category pages) */
     border: 1px solid #444;
.hover-table { font-family: 'Inter', 'Arial', sans-serif; }
     cursor: pointer;
.hover-table caption {
     display: block;
     font-size: 32px;
     width: 100%;
     font-weight: 800;
    box-sizing: border-box;
     color: #d4af37;
     margin-bottom: 0;
     text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
     padding-bottom: 15px;
}
}
 
.hover-table td { transition: all 0.2s ease; padding: 10px; }
/* Header when expanded */
.hover-table td a {
.accordion-section.expanded .accordion-header {
     font-size: 18px;
     background-color: #333; /* Slightly lighter dark */
     color: #d4af37;
     color: #fff; /* White text */
     font-weight: 600;
     font-weight: bold;
    text-decoration: none;
     border: 1px solid #00cc00;
}
.hover-table td:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
     border-radius: 10px;
    background-color: rgba(212, 175, 55, .08);
}
.hover-table td:hover a { color: #f0c75e; }
.hover-table img {
    width: 100px; height: 100px; object-fit: contain;
    transition: transform 0.2s ease-in-out;
}
.hover-table img:hover { transform: scale(1.08); }
@media (max-width: 768px) {
    .hover-table td { display: inline-block; width: 45%; box-sizing: border-box; text-align: center; vertical-align: top; padding: 10px; }
    .hover-table tr { display: block; }
}
}


/* Content styling */
/* Uniform icon sizing */
.accordion-content {
.icon-wrapper {
     border: 1px solid #444;
     width: 100px; height: 100px; display: inline-flex; align-items: center; justify-content: center;
    padding: 10px;
     overflow: hidden; transition: transform 0.2s ease-in-out;
    background-color: #111; /* Dark background */
    color: #ddd; /* Lighter text */
     width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}
}
.icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.icon-wrapper:hover { transform: scale(1.08); }
.hover-table td span { white-space: nowrap; display: inline-block; max-width: 100%; font-size: 15px; }


/* Ensure no extra spacing between sections */
@media screen and (max-width: 768px) {
.accordion-section + .accordion-section {
    .desktop-only-spacer { display: none !important; }
    margin-top: 5px;
}
}

Latest revision as of 19:10, 7 June 2026

/* CSS placed here will be applied to all skins */
/* =========================================================================
   GScripts theme — matches the main site (https://gscripts.co)
   Dark navy surfaces + gold (#d4af37) accent + Inter. Citizen is themeable
   via CSS custom properties, so we override its surface/link/text vars and
   then style the content (tables, code, headings, infobox, nav cards).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Citizen colour + font variable overrides (force the brand dark theme) ---- */
:root,
html.skin-citizen-auto,
html.skin-citizen-dark,
html.skin-citizen-light,
.skin-citizen {
    color-scheme: dark;           /* dark-only: force dark UA controls/scrollbars regardless of OS or toggle */
    --color-surface-0: #0d0e12;   /* page background (near-black) */
    --color-surface-1: #141418;   /* raised panels / sidebar (neutral dark) */
    --color-surface-2: #1b1b20;   /* cards / raised / interactive (neutral dark) */
    --color-surface-3: #26262c;   /* hovers (neutral) */
    --color-surface-4: #26262c;

    --color-base: #e5e7eb;        /* body text */
    --color-emphasized: #ffffff;  /* strong text */
    --color-subtle: #9ca3af;      /* muted text */

    --color-progressive: #5e9eff;          /* links (blue, default-link style) */
    --color-progressive--hover: #d4af37;   /* gold on hover */
    --color-progressive--active: #d4af37;
    --color-progressive--focus: #5e9eff;
    --color-link: #5e9eff;
    --color-visited: #5e9eff;

    --border-color-base: #3a3d44;          /* gray outlines (not blue/navy) */
    --border-color-subtle: #2a2c31;

    --background-color-base: #0d0e12;
    --background-color-neutral: #1b1b20;
    --background-color-neutral-subtle: #141418;

    --font-family-base: 'Inter', 'Inter Variable', -apple-system, system-ui, sans-serif;
    --font-family-heading: 'Inter', 'Inter Variable', system-ui, sans-serif;
    --border-radius-medium: 10px;
}

/* Dark-only: hide the colour-scheme (theme) switcher in Citizen's preferences panel.
   Each client pref is a portlet #skin-client-prefs-<feature>; we hide only the theme one. */
#skin-client-prefs-skin-theme,
.mw-portlet-skin-client-prefs-skin-theme {
    display: none !important;
}

/* Footer cleanup: drop the bottom strip (tagline + Powered by + divider line),
   the search dropdown's "Powered by", and the MobileFrontend "Mobile view" toggle. */
.citizen-footer__bottom,
.citizen-search__footer-start,
#footer-places-mobileview,
a[href*="toggle_view_mobile"] {
    display: none !important;
}

/* faint grid backdrop like the main site */
.mw-content-container,
.citizen-page-container {
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ---- headings ---- */
.mw-body .mw-parser-output h2,
.mw-body .mw-parser-output h3,
.mw-body .mw-parser-output h4 {
    color: #e8c869;
    border-bottom: 1px solid #3a3d44;
}
.mw-body h1.firstHeading {
    color: #ffffff;
}

/* ---- links: blue like a default link, gold on hover ---- */
.mw-parser-output a:not(.image):not(.mw-selflink) {
    color: #5e9eff;
}
.mw-parser-output a:not(.image):not(.mw-selflink):hover {
    color: #d4af37;
    text-decoration: underline;
}
.mw-parser-output a.new { color: #b06a6a; } /* red/dead links, muted */

/* ---- wikitables: navy panels, gold heads, rounded ---- */
.mw-parser-output .wikitable {
    background: #161616;
    color: #d1d5db;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.mw-parser-output .wikitable > * > tr > th {
    background: #1e1e22;
    color: #e8c869;
    border: 1px solid #2c2c2c;
    font-weight: 600;
}
.mw-parser-output .wikitable > * > tr > td {
    background: transparent;
    border: 1px solid #2c2c2c;
}
.mw-parser-output .wikitable > * > tr:hover > td {
    background: rgba(255, 255, 255, .03);
}

/* ---- code / pre ---- */
.mw-parser-output code,
.mw-parser-output pre,
.mw-parser-output kbd {
    background: #161616;
    border: 1px solid #2c2c2c;
    color: #e5e7eb;
    border-radius: 6px;
}

/* ---- callout cards ----
   Auto-style any inline left-accent block into a readable card. The inline
   `border-left:Npx solid <colour>` wins on the left edge, so each keeps its
   colour as an accent stripe; we add the dark bg, gray border and rounding.
   `.gs-card` is the same thing for explicit use. */
.mw-parser-output div[style*="border-left"],
.mw-parser-output .gs-card {
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 14px 0;
}
/* code inside a card: lift it off the matching background */
.mw-parser-output div[style*="border-left"] code,
.mw-parser-output .gs-card code {
    background: #0f0f12;
}

/* =========================================================================
   Existing custom rules (palette refreshed to gold #d4af37 + navy)
   ========================================================================= */

/* Script Infobox */
.infobox {
    width: 210px;
    float: right;
    margin: 0 0 1em 1em;
    background: transparent;
    padding: 0;
    border: none;
}
@media (max-width: 767px) {
    .infobox { float: none; margin: 0 auto 1em auto; }
}
.center-content { text-align: center; padding-top: 5px; }
.infobox table { width: 100%; }

/* Discord styling */
#discord-link-below-logo { margin-top: 5px; line-height: 0; }
#discord-link-below-logo img { vertical-align: middle; }
.vector-header-start { display: flex; flex-direction: column; align-items: flex-start; }

/* Nav cards (Wildy / PVM / Combat / category pages) */
.hover-table { font-family: 'Inter', 'Arial', sans-serif; }
.hover-table caption {
    font-size: 32px;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    padding-bottom: 15px;
}
.hover-table td { transition: all 0.2s ease; padding: 10px; }
.hover-table td a {
    font-size: 18px;
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
}
.hover-table td:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    border-radius: 10px;
    background-color: rgba(212, 175, 55, .08);
}
.hover-table td:hover a { color: #f0c75e; }
.hover-table img {
    width: 100px; height: 100px; object-fit: contain;
    transition: transform 0.2s ease-in-out;
}
.hover-table img:hover { transform: scale(1.08); }
@media (max-width: 768px) {
    .hover-table td { display: inline-block; width: 45%; box-sizing: border-box; text-align: center; vertical-align: top; padding: 10px; }
    .hover-table tr { display: block; }
}

/* Uniform icon sizing */
.icon-wrapper {
    width: 100px; height: 100px; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; transition: transform 0.2s ease-in-out;
}
.icon-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.icon-wrapper:hover { transform: scale(1.08); }
.hover-table td span { white-space: nowrap; display: inline-block; max-width: 100%; font-size: 15px; }

@media screen and (max-width: 768px) {
    .desktop-only-spacer { display: none !important; }
}