More actions
No edit summary |
Footer: hide bottom strip (tagline/poweredby/divider) |
||
| (45 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). | |||
========================================================================= */ | |||
/* | @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: # | 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; | 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; } | ||
} | } | ||
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; }
}