More actions
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 | 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; | |||
. | |||
} | } | ||
| Line 119: | Line 15: | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
background: var(-- | background: var(--background-color-neutral-subtle, #1e293b); | ||
border: 1px solid var(-- | border: 1px solid var(--border-color-base, #334155); | ||
border-radius: 4px; | border-radius: 4px; | ||
margin: 0.75em 0; | margin: 0.75em 0; | ||
} | } | ||
.table.table-sop th { | .table.table-sop th { | ||
background: var(-- | 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 | 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(-- | 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. | 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 | /* Operational positions — auto width */ | ||
.table.table-sop-operational-positions { | .table.table-sop-operational-positions { | ||
table-layout: auto; | table-layout: auto; | ||
} | } | ||
/* --- Tabber | /* --- Tabber Overrides (dark-aware) --- */ | ||
.tabber .tabbernav { | html.skin-theme-clientpref-night .tabber .tabbernav { | ||
border-bottom: 2px solid | border-bottom: 2px solid #334155; | ||
} | } | ||
html.skin-theme-clientpref-night .tabber .tabbernav li a { | |||
.tabber .tabbernav li a { | |||
background: transparent; | background: transparent; | ||
color: | 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; | ||
} | } | ||
html.skin-theme-clientpref-night .tabber .tabbernav li a:hover { | |||
.tabber .tabbernav li a:hover { | color: #4fc3f7; | ||
color: | |||
} | } | ||
html.skin-theme-clientpref-night .tabber .tabbernav li.tabberactive a { | |||
.tabber .tabbernav li.tabberactive a { | color: #4fc3f7; | ||
color: | border-bottom-color: #4fc3f7; | ||
border-bottom-color: | |||
} | } | ||
html.skin-theme-clientpref-night .tabber .tabbertab { | |||
.tabber .tabbertab { | background: #1e293b; | ||
background: | border: 1px solid #334155; | ||
border: 1px solid | |||
border-top: none; | border-top: none; | ||
padding: 1em; | padding: 1em; | ||
| Line 205: | Line 86: | ||
} | } | ||
/* --- | /* --- Accent bar at top of content area --- */ | ||
.mw-body::before { | .mw-body::before { | ||
content: ''; | content: ''; | ||
display: block; | display: block; | ||
height: 3px; | height: 3px; | ||
background: linear-gradient(90deg, | background: linear-gradient(90deg, #4fc3f7, #4dd0e1, #4fc3f7); | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
border-radius: 2px; | |||
} | } | ||
/* | /* --- Collapsible toggle styling --- */ | ||
html.skin-theme-clientpref-night .mw-collapsible-toggle { | |||
color: #4fc3f7 !important; | |||
. | |||
. | |||
color: | |||
} | } | ||
/* Stub | /* --- Stub placeholder styling --- */ | ||
.sop-stub { | .sop-stub { | ||
background: | background: #1e293b; | ||
border: 1px solid | border: 1px solid #334155; | ||
padding: 1em; | padding: 1em; | ||
border-radius: 4px; | border-radius: 4px; | ||
margin: 0.5em 0; | margin: 0.5em 0; | ||
color: | 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;
}