Toggle menu
7
505
3
1.1K
New York ARTCC
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
Dark theme + SOP table styling to match new wiki
 
v2: Work with Vector night mode, ZNY accent colors + SOP table styling
Line 1: Line 1:
/* ============================================
/* ============================================
   ZNY Wiki Dark Theme + SOP Table Styling
   ZNY Wiki SOP Styling + Night Mode Tweaks
   Matches wiki.nyartcc.org dark theme
   Vector 2022 built-in night mode handles base dark theme
   ============================================ */
   ============================================ */


/* --- Global Dark Theme --- */
/* --- Accent color overrides (ZNY blue instead of Vector purple) --- */
:root {
html.skin-theme-clientpref-night {
    --zny-bg: #0f172a;
     --color-progressive: #4fc3f7;
    --zny-bg-surface: #1e293b;
     --color-progressive--hover: #81d4fa;
    --zny-bg-elevated: #334155;
     --color-progressive--active: #29b6f6;
    --zny-text: #e2e8f0;
    --zny-text-muted: #94a3b8;
    --zny-accent: #4fc3f7;
    --zny-accent-hover: #81d4fa;
    --zny-border: #334155;
    --zny-link: #4fc3f7;
    --zny-link-visited: #80cbc4;
    --zny-link-hover: #81d4fa;
    --zny-header-bg: #1a1a2e;
    --zny-tab-active-bg: #1e293b;
}
 
/* Page background */
body, .mw-page-container {
    background-color: var(--zny-bg) !important;
    color: var(--zny-text) !important;
}
 
.mw-body, .vector-body {
    background-color: var(--zny-bg) !important;
    color: var(--zny-text) !important;
}
 
/* Content area */
.mw-body-content {
    color: var(--zny-text);
}
 
/* Links */
.mw-body-content a:not(.new) {
    color: var(--zny-link);
}
.mw-body-content a:visited {
    color: var(--zny-link-visited);
}
.mw-body-content a:hover {
     color: var(--zny-link-hover);
}
.mw-body-content a.new {
    color: #ef5350;
}
 
/* Headings */
.mw-body-content h1, .mw-body-content h2, .mw-body-content h3,
.mw-body-content h4, .mw-body-content h5 {
    color: #fff;
     border-bottom-color: var(--zny-border);
}
 
.mw-first-heading {
    color: #fff !important;
}
 
/* --- Vector 2022 specific overrides --- */
.vector-header-container,
.vector-header,
.mw-header {
    background-color: var(--zny-bg) !important;
    border-bottom-color: var(--zny-border) !important;
}
 
/* Sidebar / TOC */
.vector-toc, .vector-toc-landmark,
.sidebar-toc,
.vector-column-start {
    background-color: var(--zny-bg) !important;
}
 
.vector-toc .vector-toc-text,
.sidebar-toc .sidebar-toc-text,
.vector-toc a {
     color: var(--zny-text-muted) !important;
}
.vector-toc a:hover,
.sidebar-toc a:hover {
    color: var(--zny-accent) !important;
}
.vector-toc .vector-toc-list-item-active > .vector-toc-link .vector-toc-text {
    color: var(--zny-accent) !important;
}
 
/* Search */
.vector-search-box-input, .cdx-text-input__input {
    background-color: var(--zny-bg-surface) !important;
    color: var(--zny-text) !important;
    border-color: var(--zny-border) !important;
}
 
/* Tabs (Page / Discussion / Read / Edit) */
.mw-portlet-views a,
.mw-portlet-namespaces a,
.vector-tabs a {
    color: var(--zny-text-muted) !important;
}
.vector-tabs .selected a,
.mw-portlet-views .selected a {
    color: var(--zny-accent) !important;
}
 
/* Footer */
.mw-footer {
    background-color: var(--zny-bg) !important;
    color: var(--zny-text-muted) !important;
    border-top-color: var(--zny-border) !important;
}
}


Line 119: Line 15:
     width: 100%;
     width: 100%;
     border-collapse: collapse;
     border-collapse: collapse;
     background: var(--zny-bg-surface);
     background: var(--background-color-neutral-subtle, #1e293b);
     border: 1px solid var(--zny-border);
     border: 1px solid var(--border-color-base, #334155);
     border-radius: 4px;
     border-radius: 4px;
     margin: 0.75em 0;
     margin: 0.75em 0;
    color: var(--zny-text);
}
}


.table.table-sop th {
.table.table-sop th {
     background: var(--zny-bg-elevated);
     background: var(--background-color-interactive, #334155);
     color: #fff;
     color: var(--color-inverted, #fff);
     padding: 0.6em 0.75em;
     padding: 0.6em 0.75em;
     text-align: left;
     text-align: left;
     font-weight: 600;
     font-weight: 600;
     border-bottom: 2px solid var(--zny-accent);
     border-bottom: 2px solid #4fc3f7;
     font-size: 0.9em;
     font-size: 0.9em;
}
}
Line 138: Line 33:
.table.table-sop td {
.table.table-sop td {
     padding: 0.5em 0.75em;
     padding: 0.5em 0.75em;
     border-bottom: 1px solid var(--zny-border);
     border-bottom: 1px solid var(--border-color-base, #334155);
     vertical-align: top;
     vertical-align: top;
}
}
Line 147: Line 42:


.table.table-sop tr:hover td {
.table.table-sop tr:hover td {
     background: rgba(79, 195, 247, 0.05);
     background: rgba(79, 195, 247, 0.06);
}
}


Line 154: Line 49:
     font-size: 0.9em;
     font-size: 0.9em;
}
}
.table.table-sop-compact td,
.table.table-sop-compact td,
.table.table-sop-compact th {
.table.table-sop-compact th {
Line 160: Line 54:
}
}


/* Operational positions table (wider) */
/* Operational positions — auto width */
.table.table-sop-operational-positions {
.table.table-sop-operational-positions {
     table-layout: auto;
     table-layout: auto;
}
}


/* --- Tabber Dark Styling --- */
/* --- Tabber Overrides (dark-aware) --- */
.tabber .tabbernav {
html.skin-theme-clientpref-night .tabber .tabbernav {
     border-bottom: 2px solid var(--zny-border);
     border-bottom: 2px solid #334155;
    margin-bottom: 0;
    padding: 0;
}
 
.tabber .tabbernav li {
    margin: 0;
}
}
 
html.skin-theme-clientpref-night .tabber .tabbernav li a {
.tabber .tabbernav li a {
     background: transparent;
     background: transparent;
     color: var(--zny-text-muted);
     color: #94a3b8;
     border: none;
     border: none;
     border-bottom: 2px solid transparent;
     border-bottom: 2px solid transparent;
     padding: 0.5em 1em;
     padding: 0.5em 1em;
     margin-bottom: -2px;
     margin-bottom: -2px;
    font-size: 0.9em;
}
}
 
html.skin-theme-clientpref-night .tabber .tabbernav li a:hover {
.tabber .tabbernav li a:hover {
     color: #4fc3f7;
     color: var(--zny-accent);
    background: rgba(79, 195, 247, 0.05);
}
}
 
html.skin-theme-clientpref-night .tabber .tabbernav li.tabberactive a {
.tabber .tabbernav li.tabberactive a {
     color: #4fc3f7;
     color: var(--zny-accent);
     border-bottom-color: #4fc3f7;
     border-bottom-color: var(--zny-accent);
    background: transparent;
}
}
 
html.skin-theme-clientpref-night .tabber .tabbertab {
.tabber .tabbertab {
     background: #1e293b;
     background: var(--zny-bg-surface);
     border: 1px solid #334155;
     border: 1px solid var(--zny-border);
     border-top: none;
     border-top: none;
     padding: 1em;
     padding: 1em;
Line 205: Line 86:
}
}


/* --- Collapsible (mw-collapsible) Dark Styling --- */
/* --- Accent bar at top of content area --- */
.mw-collapsible-toggle {
    color: var(--zny-accent) !important;
}
 
/* --- Section edit links --- */
.mw-editsection a {
    color: var(--zny-text-muted) !important;
}
 
/* --- Infoboxes / notice boxes --- */
.mw-message-box, .warningbox, .errorbox, .successbox {
    background: var(--zny-bg-surface) !important;
    color: var(--zny-text) !important;
    border-color: var(--zny-border) !important;
}
 
/* --- Category links --- */
.catlinks {
    background: var(--zny-bg-surface) !important;
    border-color: var(--zny-border) !important;
    color: var(--zny-text-muted) !important;
}
 
/* Standard wiki tables (wikitable) */
.wikitable {
    background: var(--zny-bg-surface) !important;
    color: var(--zny-text) !important;
    border-color: var(--zny-border) !important;
}
.wikitable th {
    background: var(--zny-bg-elevated) !important;
    color: #fff !important;
    border-color: var(--zny-border) !important;
}
.wikitable td {
    border-color: var(--zny-border) !important;
}
 
/* User menu + tools */
.vector-menu-content, .vector-dropdown-content {
    background: var(--zny-bg-surface) !important;
    border-color: var(--zny-border) !important;
}
.vector-menu-content a,
.vector-dropdown-content a {
    color: var(--zny-text) !important;
}
.vector-menu-content a:hover,
.vector-dropdown-content a:hover {
    background: var(--zny-bg-elevated) !important;
    color: var(--zny-accent) !important;
}
 
/* Logo / site name */
.mw-logo-wordmark, .vector-menu-heading {
    color: var(--zny-text) !important;
}
 
/* Progress bar (top accent line from new wiki) */
.mw-body::before {
.mw-body::before {
     content: '';
     content: '';
     display: block;
     display: block;
     height: 3px;
     height: 3px;
     background: linear-gradient(90deg, var(--zny-accent), #4dd0e1, var(--zny-accent));
     background: linear-gradient(90deg, #4fc3f7, #4dd0e1, #4fc3f7);
     margin-bottom: 1em;
     margin-bottom: 1em;
    border-radius: 2px;
}
}


/* Scrollbar for dark theme */
/* --- Collapsible toggle styling --- */
::-webkit-scrollbar { width: 8px; }
html.skin-theme-clientpref-night .mw-collapsible-toggle {
::-webkit-scrollbar-track { background: var(--zny-bg); }
     color: #4fc3f7 !important;
::-webkit-scrollbar-thumb { background: var(--zny-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--zny-text-muted); }
 
/* --- Sticky header dark --- */
.vector-sticky-header {
    background: var(--zny-bg) !important;
    border-bottom-color: var(--zny-border) !important;
}
.vector-sticky-header a {
     color: var(--zny-text) !important;
}
}


/* Stub template placeholders */
/* --- Stub placeholder styling --- */
.sop-stub {
.sop-stub {
     background: var(--zny-bg-surface);
     background: #1e293b;
     border: 1px solid var(--zny-border);
     border: 1px solid #334155;
     padding: 1em;
     padding: 1em;
     border-radius: 4px;
     border-radius: 4px;
     margin: 0.5em 0;
     margin: 0.5em 0;
     color: var(--zny-text-muted);
     color: #94a3b8;
     font-style: italic;
     font-style: italic;
}
}

Revision as of 23:18, 26 March 2026

/* ============================================
   ZNY Wiki — SOP Styling + Night Mode Tweaks
   Vector 2022 built-in night mode handles base dark theme
   ============================================ */

/* --- Accent color overrides (ZNY blue instead of Vector purple) --- */
html.skin-theme-clientpref-night {
    --color-progressive: #4fc3f7;
    --color-progressive--hover: #81d4fa;
    --color-progressive--active: #29b6f6;
}

/* --- SOP Table Styling --- */
.table.table-sop {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-color-neutral-subtle, #1e293b);
    border: 1px solid var(--border-color-base, #334155);
    border-radius: 4px;
    margin: 0.75em 0;
}

.table.table-sop th {
    background: var(--background-color-interactive, #334155);
    color: var(--color-inverted, #fff);
    padding: 0.6em 0.75em;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #4fc3f7;
    font-size: 0.9em;
}

.table.table-sop td {
    padding: 0.5em 0.75em;
    border-bottom: 1px solid var(--border-color-base, #334155);
    vertical-align: top;
}

.table.table-sop tr:last-child td {
    border-bottom: none;
}

.table.table-sop tr:hover td {
    background: rgba(79, 195, 247, 0.06);
}

/* Compact variant */
.table.table-sop-compact {
    font-size: 0.9em;
}
.table.table-sop-compact td,
.table.table-sop-compact th {
    padding: 0.35em 0.6em;
}

/* Operational positions — auto width */
.table.table-sop-operational-positions {
    table-layout: auto;
}

/* --- Tabber Overrides (dark-aware) --- */
html.skin-theme-clientpref-night .tabber .tabbernav {
    border-bottom: 2px solid #334155;
}
html.skin-theme-clientpref-night .tabber .tabbernav li a {
    background: transparent;
    color: #94a3b8;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5em 1em;
    margin-bottom: -2px;
}
html.skin-theme-clientpref-night .tabber .tabbernav li a:hover {
    color: #4fc3f7;
}
html.skin-theme-clientpref-night .tabber .tabbernav li.tabberactive a {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
}
html.skin-theme-clientpref-night .tabber .tabbertab {
    background: #1e293b;
    border: 1px solid #334155;
    border-top: none;
    padding: 1em;
    border-radius: 0 0 4px 4px;
}

/* --- Accent bar at top of content area --- */
.mw-body::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #4fc3f7, #4dd0e1, #4fc3f7);
    margin-bottom: 1em;
    border-radius: 2px;
}

/* --- Collapsible toggle styling --- */
html.skin-theme-clientpref-night .mw-collapsible-toggle {
    color: #4fc3f7 !important;
}

/* --- Stub placeholder styling --- */
.sop-stub {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 1em;
    border-radius: 4px;
    margin: 0.5em 0;
    color: #94a3b8;
    font-style: italic;
}