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)
 
(11 intermediate revisions by the same user 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;
 
    --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;
}
}


/* Center infobox on mobile */
/* Footer cleanup: drop the bottom strip (tagline + Powered by + divider line),
@media (max-width: 767px) {
  the search dropdown's "Powered by", and the MobileFrontend "Mobile view" toggle. */
    .infobox {
.citizen-footer__bottom,
        float: none;
.citizen-search__footer-start,
        margin: 0 auto 1em auto;
#footer-places-mobileview,
    }
a[href*="toggle_view_mobile"] {
    display: none !important;
}
}


/* Center the image and table */
/* faint grid backdrop like the main site */
.center-content {
.mw-content-container,
     text-align: center;
.citizen-page-container {
     padding-top: 5px; /* You can adjust this padding as needed */
     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;
}
}


/* Ensure the parameters table is also centered */
/* ---- headings ---- */
.infobox table {
.mw-body .mw-parser-output h2,
     width: 100%; /* Makes sure the table takes the full width of the infobox */
.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;
}
}


/* Discord Styling */
/* ---- links: blue like a default link, gold on hover ---- */
#discord-link-below-logo {
.mw-parser-output a:not(.image):not(.mw-selflink) {
     margin-top: 5px;
    color: #5e9eff;
     line-height: 0;
}
.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 */


#discord-link-below-logo img {
/* ---- wikitables: navy panels, gold heads, rounded ---- */
     vertical-align: middle;
.mw-parser-output .wikitable {
     background: #161616;
    color: #d1d5db;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
}
.vector-header-start {
.mw-parser-output .wikitable > * > tr > th {
     display: flex;
     background: #1e1e22;
     flex-direction: column; /* Forces children (logo, then Discord link) to stack vertically */
    color: #e8c869;
     align-items: flex-start; /* Aligns items to the left */
     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);
}
}


/* Base table styling */
/* ---- code / pre ---- */
.hover-table {
.mw-parser-output code,
     font-family: 'Arial', sans-serif; /* Fallback; ideally use a custom font below */
.mw-parser-output pre,
.mw-parser-output kbd {
     background: #161616;
    border: 1px solid #2c2c2c;
    color: #e5e7eb;
    border-radius: 6px;
}
}


/* Header styling */
/* ---- 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 {
.hover-table caption {
     font-size: 32px;
     font-size: 32px;
     font-weight: bold;
     font-weight: 800;
     text-shadow: 1px 1px 2px #8B6F35;
    color: #d4af37;
     text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
     padding-bottom: 15px;
     padding-bottom: 15px;
}
}
 
.hover-table td { transition: all 0.2s ease; padding: 10px; }
/* Cell styling */
.hover-table td {
    transition: all 0.3s ease;
    padding: 10px;
}
 
/* Text styling for links */
.hover-table td a {
.hover-table td a {
     font-size: 18px;
     font-size: 18px;
     color: #E0C882;
     color: #d4af37;
     font-weight: 600;
     font-weight: 600;
    text-shadow: 0 0 3px rgba(139, 111, 53, 0.5);
     text-decoration: none;
     text-decoration: none; /* Removes underline for a cleaner look */
}
}
/* Hover effect for the whole cell */
.hover-table td:hover {
.hover-table td:hover {
     transform: scale(1.05);
     transform: translateY(-2px);
     box-shadow: 0 0 10px rgba(224, 200, 130, 0.7);
     box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
     border-radius: 5px;
     border-radius: 10px;
     background-color: rgba(224, 200, 130, 0.1);
     background-color: rgba(212, 175, 55, .08);
}
 
/* Optional: Brighten text on hover */
.hover-table td:hover a {
    color: #FFD700; /* Slightly brighter gold for emphasis */
    text-shadow: 0 0 5px rgba(139, 111, 53, 0.8);
}
}
 
.hover-table td:hover a { color: #f0c75e; }
/* Fix image sizing and hover effect for Main Page icons */
.hover-table img {
.hover-table img {
     width: 100px;
     width: 100px; height: 100px; object-fit: contain;
    height: 100px;
    object-fit: contain;
     transition: transform 0.2s ease-in-out;
     transition: transform 0.2s ease-in-out;
}
}
 
.hover-table img:hover { transform: scale(1.08); }
.hover-table img:hover {
    transform: scale(1.1);
}
 
/* Mobile Responsive adjustments */
@media (max-width: 768px) {
@media (max-width: 768px) {
  .hover-table td {
    .hover-table td { display: inline-block; width: 45%; box-sizing: border-box; text-align: center; vertical-align: top; padding: 10px; }
    display: inline-block;
    .hover-table tr { display: block; }
    width: 45%;
    box-sizing: border-box;
    text-align: center;
    vertical-align: top;
    padding: 10px;
  }
  .hover-table tr {
    display: block;
  }
}
}


/* Uniform icon sizing and hover fix */
/* Uniform icon sizing */
.icon-wrapper {
.icon-wrapper {
     width: 100px;
     width: 100px; height: 100px; display: inline-flex; align-items: center; justify-content: center;
    height: 100px;
     overflow: hidden; transition: transform 0.2s ease-in-out;
    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;
}
 
/* Hover effect on the wrapper */
.icon-wrapper:hover {
    transform: scale(1.1);
}
 
.hover-table td span {
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    font-size: 15px; /* or scale down just a bit */
}
}
.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; }


/* Hide template spacer on mobile */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
  .desktop-only-spacer {
    .desktop-only-spacer { display: none !important; }
    display: none !important;
  }
}
}

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; }
}