Jump to content

MediaWiki:Common.css: Difference between revisions

From Archive
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* EJ Fox MediaWiki Theme - Consistent with main site */
/* EJ Fox Archive - Matched to website2 */


/* ==================== VARIABLES ==================== */
:root {
:root {
   /* Typography - Match main site exactly */
   /* Typography - Match website2 exactly */
   --font-primary: Georgia, serif;
   --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
   --font-mono: ui-monospace, 'SF Mono', Monaco, monospace;
   --font-mono: ui-monospace, 'SF Mono', Monaco, monospace;
 
  /* Spacing - Minimal set */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
 
  /* Layout */
  --max-width: 48rem;
 
  /* Transitions */
  --transition: 200ms ease-out;
}


/* Colors - Tailwind zinc scale matching main site */
  /* Colors - Tailwind zinc, warm tones */
:root {
   --bg: #fafafa;
   --bg-primary: #fafafa;     /* zinc-50 */
   --bg-alt: #f4f4f5;
   --bg-secondary: #f4f4f5;   /* zinc-100 */
   --fg: #1a1a1a;           /* warm near-black */
 
   --fg-secondary: #52525b; /* zinc-600 */
   --border-light: #e4e4e7;   /* zinc-200 */
   --fg-muted: #71717a;     /* zinc-500 */
   --border-medium: #d4d4d8;   /* zinc-300 */
   --border: #e4e4e7;       /* zinc-200 */
 
   --red: #dc2626;
   --text-primary: #27272a;   /* zinc-800 */
 
   --text-secondary: #52525b; /* zinc-600 */
   --max-w: 65ch;
   --text-muted: #a1a1aa;     /* zinc-400 */
 
   --accent-error: #dc2626;   /* red-600 */
}
}


/* Dark mode */
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
   :root {
   :root {
     --bg-primary: #18181b;     /* zinc-900 */
     --bg: #0a0a0a;           /* warm near-black */
     --bg-secondary: #27272a;   /* zinc-800 */
     --bg-alt: #18181b;       /* zinc-900 */
      
     --fg: #f5f5f4;           /* warmer off-white */
    --border-light: #3f3f46;   /* zinc-700 */
     --fg-secondary: #a1a1aa; /* zinc-400 */
     --border-medium: #52525b;   /* zinc-600 */
     --fg-muted: #71717a;    /* zinc-500 */
   
     --border: #3f3f46;       /* zinc-700 */
     --text-primary: #f4f4f5;   /* zinc-100 */
     --red: #f87171;
     --text-secondary: #d4d4d8;  /* zinc-300 */
     --text-muted: #71717a;     /* zinc-500 */
   
     --accent-error: #f87171;   /* red-400 */
   }
   }
}
}


/* ==================== BASE ==================== */
/* === BASE === */
/* Typography - Match main site exactly */
body, html,
#mw-page-base, #mw-head, #mw-panel, #content, #bodyContent,
.mw-body, .mw-body-content, .mw-content,
#p-logo, #p-navigation, #p-search, #p-tb, #p-lang,
.vectorTabs, .vectorMenu, .vectorMenuCheckbox,
#ca-edit, #ca-history, #ca-talk, #ca-viewsource,
.oo-ui-widget, .oo-ui-element, .oo-ui-layout,
#mw-head-base, .mw-wiki-logo, .vector-menu,
.mw-portlet, .mw-portlet-body, .mw-list-item,
input, select, textarea, button,
.suggestions, .suggestions-result,
.vector-menu-content,
.vector-menu-heading,
.vector-menu-content-list {
  font-family: var(--font-primary) !important;
}
 
/* Headings use same Georgia font as body */
h1, h2, h3, h4, h5, h6,
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6,
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6,
.firstHeading {
  font-family: var(--font-primary) !important;
}
 
/* Monospace elements */
code, pre, kbd, samp, tt,
.mw-code, .mw-pre, .codehilite,
.mw-changeslist-time, .mw-diff-bytes,
#searchInput {
  font-family: var(--font-mono) !important;
}
 
body {
body {
   background: var(--bg-primary) !important;
   background: var(--bg);
   color: var(--text-primary) !important;
  color: var(--fg);
   font-size: 1rem !important;
   font-family: var(--font-body);
   line-height: 1.6 !important;
   font-size: 1rem;
   margin: 0 !important;
   line-height: 1.6;
   padding: 0 !important;
   /* Match website2 OpenType features */
   transition: background-color var(--transition), color var(--transition) !important;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
   font-variant-ligatures: common-ligatures contextual;
   font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}
}


/* ==================== LAYOUT ==================== */
@media (prefers-color-scheme: dark) {
/* Hide unnecessary elements */
  body { font-weight: 375; }
#p-search,
#p-logo,
.mw-wiki-logo,
#footer,
.printfooter,
#catlinks,
#f-poweredbyico,
#f-copyrightico {
    display: none !important;
}
}


/* Edit buttons - minimal styling */
/* === LAYOUT === */
#p-views, #p-cactions {
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
    margin: var(--space-3) 0 !important;
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
    padding: 0 !important;
  display: none;
    background: transparent !important;
    border: none !important;
}
}


#p-views ul, #p-cactions ul {
.mw-body {
    display: flex !important;
  max-width: var(--max-w);
    gap: var(--space-4) !important;
  margin: 0 auto;
    list-style: none !important;
  padding: 1.5rem 1rem;
    margin: 0 !important;
  background: transparent;
    padding: 0 !important;
  border: none;
}
}


#p-views li, #p-cactions li {
#content {
    margin: 0 !important;
  margin-left: 0;
  background: transparent;
  border: none;
}
}


#p-views a, #p-cactions a {
/* === TYPOGRAPHY - Match website2 optical sizing === */
    color: var(--text-muted) !important;
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono) !important;
  font-family: var(--font-body);
    font-size: 0.875rem !important;
  font-weight: 400;
    text-decoration: none !important;
  color: var(--fg);
    border-bottom: 1px dotted var(--border-medium) !important;
    padding: 1px 2px !important;
    transition: all var(--transition) !important;
    background: transparent !important;
}
}


#p-views a:hover, #p-cactions a:hover {
.mw-body h1, .firstHeading {
    color: var(--text-primary) !important;
  font-size: 2rem;
    border-bottom-color: var(--text-primary) !important;
  letter-spacing: -0.025em;
}
  line-height: 1.2;
 
  margin: 0 0 1.5rem;
/* Content layout */
  border: none;
.mw-body {
    margin: 0 auto !important;
    border: none !important;
    padding: var(--space-6) !important;
    background: transparent !important;
    max-width: var(--max-width) !important;
}
 
#content {
    margin-left: 0 !important;
    background: transparent !important;
    border: none !important;
}
 
/* ==================== TYPOGRAPHY ==================== */
.mw-body h1 {
    color: var(--text-primary) !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 var(--space-6) 0 !important;
    border-bottom: none !important;
}
}


.mw-body h2 {
.mw-body h2 {
    color: var(--text-primary) !important;
  font-size: 1.25rem;
    font-size: 1.5rem !important;
  letter-spacing: -0.015em;
    font-weight: 400 !important;
  margin: 2.5rem 0 0.75rem;
    line-height: 1.3 !important;
  padding-bottom: 0.25rem;
    margin: var(--space-8) 0 var(--space-4) 0 !important;
  border-bottom: 1px dotted var(--border);
    border-bottom: 1px dotted var(--border-medium) !important;
    padding-bottom: var(--space-2) !important;
}
}


.mw-body h3 {
.mw-body h3 {
    color: var(--text-primary) !important;
  font-size: 1rem;
    font-size: 1.125rem !important;
  font-weight: 600;
    font-weight: 600 !important;
  margin: 1.5rem 0 0.5rem;
    margin: var(--space-6) 0 var(--space-3) 0 !important;
}
}


.mw-body p {
.mw-body p {
    color: var(--text-primary) !important;
  margin-bottom: 1rem;
    line-height: 1.6 !important;
  line-height: 1.6;
    margin-bottom: var(--space-4) !important;
}
}


/* ==================== LINKS ==================== */
/* === LINKS === */
.mw-body a:not(.external) {
.mw-body a {
    color: var(--text-primary) !important;
  color: var(--fg);
    text-decoration: none !important;
  text-decoration: none;
    border-bottom: 1px solid var(--border-medium) !important;
  border-bottom: 1px solid var(--border);
    padding: 1px 2px !important;
  transition: border-color 200ms ease-out;
    transition: all var(--transition) !important;
}
}


.mw-body a:not(.external):hover {
.mw-body a:hover {
    border-bottom-color: var(--text-primary) !important;
  border-color: var(--fg);
}
}


/* External links */
.mw-body a.new {
.mw-body a.external {
  color: var(--red);
    color: var(--text-secondary) !important;
  border-color: var(--red);
    text-decoration: none !important;
  opacity: 0.7;
    border-bottom: 1px solid var(--text-secondary) !important;
    padding: 1px 15px 1px 2px !important;
    transition: all var(--transition) !important;
}
}


.mw-body a.external:hover {
.mw-body a.new:hover { opacity: 1; }
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-primary) !important;
}


.mw-body .external {
.mw-body a.external {
    background-position: right center !important;
  color: var(--fg-secondary);
    background-repeat: no-repeat !important;
  border-color: var(--fg-secondary);
}
}


/* ==================== TABLES ==================== */
/* === CODE - Mono with tabular nums === */
.wikitable {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-collapse: collapse !important;
    font-family: var(--font-mono) !important;
    font-size: var(--text-sm) !important;
    margin: var(--space-5) 0 !important; /* Reduced from space-6 */
    width: 100% !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
 
.wikitable th {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--text-primary) !important;
    padding: var(--space-3) !important; /* Reduced from space-4 */
    font-weight: 600 !important;
    text-align: left !important;
}
 
.wikitable td {
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    padding: var(--space-3) !important; /* Reduced from space-4 */
}
 
.wikitable tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02) !important;
}
 
@media (prefers-color-scheme: dark) {
    .wikitable tr:nth-child(even) td {
        background: rgba(255, 255, 255, 0.02) !important;
    }
}
 
/* ==================== CODE ==================== */
code, pre {
code, pre {
    font-family: var(--font-mono) !important;
  font-family: var(--font-mono);
    font-feature-settings: "tnum", "zero" !important;
  font-size: 0.875rem;
    background: var(--bg-secondary) !important;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    border: 1px solid var(--border-light) !important;
  background: var(--bg-alt);
    border-radius: 4px !important;
  border: 1px solid var(--border);
    color: var(--text-primary) !important;
  border-radius: 2px;
}
}


code {
code { padding: 1px 4px; }
    padding: 2px 4px !important;
    font-size: var(--text-sm) !important;
}


pre {
pre {
    padding: var(--space-4) !important;
  padding: 1rem;
    margin: var(--space-5) 0 !important; /* Reduced from space-6 */
  margin: 1rem 0;
    overflow-x: auto !important;
  overflow-x: auto;
    line-height: 1.5 !important;
  line-height: 1.4;
}
}


/* ==================== LISTS ==================== */
/* === TABLES === */
.mw-body ul, .mw-body ol {
.wikitable {
    margin: var(--space-3) 0 !important; /* Reduced from space-4 */
  width: 100%;
    padding-left: var(--space-6) !important;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  margin: 1rem 0;
}
}


.mw-body li {
.wikitable th, .wikitable td {
    margin-bottom: var(--space-1) !important; /* Reduced from space-2 */
  border: 1px solid var(--border);
    color: var(--text-primary) !important;
  padding: 0.375rem 0.5rem;
  text-align: left;
}
}


/* ==================== SPECIAL PAGES - Basic fixes only ==================== */
.wikitable th {
/* Fix overlapping issues on special pages */
  background: var(--bg-alt);
.ns-special .mw-body {
  font-weight: 600;
    padding: var(--space-4) !important;
  text-transform: uppercase;
    line-height: 1.4 !important;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}
}


.ns-special .mw-body p {
/* === LISTS === */
    margin-bottom: var(--space-3) !important;
.mw-body ul, .mw-body ol {
    line-height: 1.4 !important;
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
}


/* Recent Changes specific fixes */
.mw-body li { margin-bottom: 0.25rem; }
.mw-changeslist-line {
    margin-bottom: var(--space-2) !important;
    line-height: 1.3 !important;
    clear: both !important;
}


.mw-changeslist .mw-title {
/* === TOC - Compact, mono labels === */
    display: inline !important;
#toc, .toc {
    margin-right: var(--space-2) !important;
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  max-width: 260px;
}
}


.mw-changeslist-date {
.toctitle h2 {
    margin-bottom: var(--space-3) !important;
  font-family: var(--font-mono);
    font-weight: 600 !important;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}
}


/* Fix timestamps and metadata */
.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.mw-changeslist-time {
.tocnumber {
    font-family: var(--font-mono) !important;
  font-family: var(--font-mono);
    font-size: var(--text-sm) !important;
  font-size: 0.6rem;
    margin-right: var(--space-2) !important;
  color: var(--fg-muted);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
}


.mw-usertoollinks {
/* === EDIT LINKS - Mono, muted === */
    font-size: var(--text-xs) !important;
#p-views, #p-cactions {
    margin-left: var(--space-1) !important;
  margin: 0.5rem 0;
  background: transparent;
  border: none;
}
}


/* Fix diff links and counters */
#p-views ul, #p-cactions ul {
.mw-diff-bytes {
  display: flex;
    font-family: var(--font-mono) !important;
  gap: 1rem;
    font-size: var(--text-xs) !important;
  list-style: none;
    margin: 0 var(--space-1) !important;
  margin: 0;
  padding: 0;
}
}


/* Fix summary text */
#p-views a, #p-cactions a {
.comment {
  font-family: var(--font-mono);
    font-style: italic !important;
  font-size: 0.7rem;
    color: var(--text-tertiary) !important;
  text-transform: uppercase;
    margin-left: var(--space-2) !important;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border-bottom: 1px dotted var(--border);
  background: transparent;
}
}


/* ==================== RESPONSIVE ==================== */
#p-views a:hover, #p-cactions a:hover {
@media (max-width: 768px) {
  color: var(--fg);
    :root {
  border-color: var(--fg);
        --text-base: 0.95rem; /* Slightly smaller on mobile */
    }
   
    .mw-body {
        padding: var(--space-4) !important;
        margin-left: 0 !important;
    }
   
    #mw-panel {
        position: relative !important;
        width: 100% !important;
        margin: 0 0 var(--space-4) 0 !important; /* Reduced from space-6 */
        backdrop-filter: blur(16px) !important;
        background: rgba(var(--bg-secondary), 0.8) !important;
    }
   
    .mw-body h1 {
        font-size: var(--text-3xl) !important;
    }
   
    .mw-body h2 {
        font-size: var(--text-lg) !important;
    }
   
    /* Simple mobile edit buttons */
    #p-views ul, #p-cactions ul {
        flex-direction: column !important;
        gap: var(--space-2) !important;
    }
   
    /* Mobile fixes for special pages */
    .ns-special .mw-changeslist-line {
        font-size: var(--text-sm) !important;
        padding: var(--space-1) 0 !important;
    }
   
    .ns-special .mw-changeslist-time {
        display: block !important;
        margin-bottom: var(--space-1) !important;
    }
}
}


/* ==================== SEARCH (if you want to show it) ==================== */
.mw-editsection {
#searchform {
  font-family: var(--font-mono);
    background: var(--bg-secondary) !important;
  font-size: 0.6rem;
    border: 1px solid var(--border-light) !important;
  text-transform: uppercase;
    border-radius: 4px !important;
  letter-spacing: 0.1em;
    margin: var(--space-4) 0 !important;
  opacity: 0.3;
    overflow: hidden !important;
  margin-left: 0.5rem;
}
}


#searchInput {
.mw-editsection:hover { opacity: 0.6; }
    background: transparent !important;
.mw-editsection a { border: none; color: var(--fg-muted); }
    border: none !important;
    color: var(--text-primary) !important;
    font-family: var(--font-mono) !important;
    font-size: var(--text-sm) !important;
    padding: var(--space-2) var(--space-4) !important;
    width: calc(100% - var(--space-8)) !important;
}


#searchInput::placeholder {
/* === CATEGORIES - label-uppercase-mono style === */
    color: var(--text-muted) !important;
#catlinks {
  display: block;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}
}


#searchInput:focus {
#catlinks a {
    outline: none !important;
  color: var(--fg-muted);
    box-shadow: 0 0 0 1px var(--focus-ring) !important;
  border: none;
}
}


/* ==================== GEOMETRIC ACCENTS ==================== */
#catlinks a:hover {
.mw-body::before {
  color: var(--fg-secondary);
    content: "";
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 1000;
}
}


/* === SPECIAL PAGES === */
.ns-special .mw-body { line-height: 1.4; }


/* ==================== UNCREATED PAGES (RED LINKS) ==================== */
.mw-changeslist-line {
/* Override styles for non-existent pages */
  margin-bottom: 0.25rem;
.mw-body a.new,
  line-height: 1.3;
.mw-body a.new:visited {
    color: var(--accent-error) !important;
    border-bottom-color: var(--accent-error) !important;
    opacity: 0.8;
}
}


.mw-body a.new:hover {
.mw-changeslist-time {
    color: var(--accent-error) !important;
  font-family: var(--font-mono);
    border-bottom-color: var(--accent-error) !important;
  font-size: 0.75rem;
    background: var(--hover-bg) !important;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    opacity: 1;
}
}


/* Question mark indicator for uncreated pages */
.mw-diff-bytes {
.mw-body a.new::after {
  font-family: var(--font-mono);
    content: "?";
  font-size: 0.65rem;
    font-size: 0.75em;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    margin-left: 2px;
    opacity: 0.6;
    font-weight: 400;
}
}


/* Special styling for uncreated user/talk pages */
.comment {
.mw-body a.new.mw-userlink,
  font-style: italic;
.mw-body a.new[title*="User:"],
  color: var(--fg-muted);
.mw-body a.new[title*="User talk:"] {
  margin-left: 0.25rem;
    font-style: italic;
}
}


 
/* === VECTOR SKIN CLEANUP === */
/* FPV part infobox styling */
.vector-page-titlebar,
/* FPV Part Infobox Styling - Light & Dark Mode Compatible */
.vector-page-toolbar,
.fpvpart-infobox {
.vector-menu-tabs,
    float: right;
.vector-menu-content,
    width: 300px;
#p-views, #p-namespaces, #p-cactions,
    margin: 0 0 1em 1em;
.mw-portlet, .vector-tabs, .vector-menu {
    border: 1px solid #555;
  border: none;
    background: #2a2a2a;
  box-shadow: none;
    color: #e0e0e0;
    padding: 5px;
    font-size: 88%;
    clear: right;
}
}


/* Light mode overrides */
.vector-menu-tabs li, .vector-tabs li, #p-views li {
body.skin-light .fpvpart-infobox,
  border: none;
body.mw-light-mode .fpvpart-infobox,
  background: transparent;
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-infobox {
    border: 1px solid #aaa;
    background: #f9f9f9;
    color: #000;
}
}


.fpvpart-header {
/* === NAVBOXES === */
    background: #555;
.wikitable[style*="margin-top"] {
    color: white;
  font-size: 0.75rem;
    padding: 5px;
  margin-top: 2rem;
    font-weight: bold;
    text-align: center;
    font-size: 110%;
}
}


.fpvpart-type {
.wikitable[style*="margin-top"] th {
    background: #666;
  font-size: 0.7rem;
    color: white;
    padding: 3px;
    text-align: center;
    font-size: 90%;
}
}


.fpvpart-specs {
/* === SEARCH === */
    width: 100%;
#searchInput {
    margin: 5px 0;
  font-family: var(--font-mono);
    border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  color: var(--fg);
}
}


.fpvpart-specs th {
#searchInput::placeholder { color: var(--fg-muted); }
    background: #3a3a3a;
    color: #e0e0e0;
    padding: 3px 5px;
    text-align: left;
    width: 40%;
    font-weight: bold;
    border: 1px solid #555;
}


.fpvpart-specs td {
/* === MOBILE === */
    background: #2a2a2a;
@media (max-width: 768px) {
    color: #e0e0e0;
  .mw-body { padding: 1rem 0.75rem; }
    padding: 3px 5px;
  .mw-body h1 { font-size: 1.5rem; }
    border: 1px solid #555;
  .mw-body h2 { font-size: 1.125rem; }
}


/* Light mode table overrides */
  #p-views ul, #p-cactions ul {
body.skin-light .fpvpart-specs th,
     flex-direction: column;
body.mw-light-mode .fpvpart-specs th,
     gap: 0.5rem;
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-specs th {
  }
     background: #e0e0e0;
     color: #000;
    border: 1px solid #ccc;
}


body.skin-light .fpvpart-specs td,
  #toc, .toc { max-width: 100%; }
body.mw-light-mode .fpvpart-specs td,
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-specs td {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
}
}


/* Status colors - work in both modes */
/* === INFOBOXES === */
.fpvpart-status {
.infobox {
    padding: 5px;
  float: right;
    text-align: center;
  width: 240px;
    font-weight: bold;
  margin: 0 0 1rem 1rem;
    margin: 5px 0;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.8rem;
  padding: 0.5rem;
}
}


.fpvpart-status.status-IN_STOCK {
.infobox th {
    background: #2d5a2d;
  font-family: var(--font-mono);
    color: #90EE90;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.25rem;
  font-weight: 600;
}
}


body.skin-light .fpvpart-status.status-IN_STOCK,
.infobox td { padding: 0.25rem; }
body.mw-light-mode .fpvpart-status.status-IN_STOCK,
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-status.status-IN_STOCK {
    background: #90EE90;
    color: darkgreen;
}
 
.fpvpart-status.status-OUT_OF_STOCK {
    background: #5a2d2d;
    color: #FFB6C1;
}
 
body.skin-light .fpvpart-status.status-OUT_OF_STOCK,
body.mw-light-mode .fpvpart-status.status-OUT_OF_STOCK,
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-status.status-OUT_OF_STOCK {
    background: #FFB6C1;
    color: darkred;
}
 
.fpvpart-status.status-LIMITED {
    background: #5a5a2d;
    color: #FFD700;
}
 
body.skin-light .fpvpart-status.status-LIMITED,
body.mw-light-mode .fpvpart-status.status-LIMITED,
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-status.status-LIMITED {
    background: #FFD700;
    color: #8B4513;
}
 
.fpvpart-notes {
    background: #3a3a2d;
    border: 1px solid #666633;
    color: #ffff99;
    padding: 5px;
    margin-top: 5px;
    font-size: 85%;
}
 
body.skin-light .fpvpart-notes,
body.mw-light-mode .fpvpart-notes,
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-notes {
    background: #ffffcc;
    border: 1px solid #cccc00;
    color: #000;
}
 
/* Links in infobox */
.fpvpart-infobox a {
    color: #6db3ec;
}


body.skin-light .fpvpart-infobox a,
/* === SUBTITLE/META === */
body.mw-light-mode .fpvpart-infobox a,
#siteSub, #contentSub, .mw-content-subtitle {
body:not(.skin-dark):not(.mw-dark-mode) .fpvpart-infobox a {
  font-family: var(--font-mono);
    color: #0645ad;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  opacity: 0.6;
}
}

Latest revision as of 20:34, 7 December 2025

/* EJ Fox Archive - Matched to website2 */

:root {
  /* Typography - Match website2 exactly */
  --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
  --font-mono: ui-monospace, 'SF Mono', Monaco, monospace;

  /* Colors - Tailwind zinc, warm tones */
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --fg: #1a1a1a;           /* warm near-black */
  --fg-secondary: #52525b;  /* zinc-600 */
  --fg-muted: #71717a;      /* zinc-500 */
  --border: #e4e4e7;        /* zinc-200 */
  --red: #dc2626;

  --max-w: 65ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;           /* warm near-black */
    --bg-alt: #18181b;       /* zinc-900 */
    --fg: #f5f5f4;           /* warmer off-white */
    --fg-secondary: #a1a1aa; /* zinc-400 */
    --fg-muted: #71717a;     /* zinc-500 */
    --border: #3f3f46;       /* zinc-700 */
    --red: #f87171;
  }
}

/* === BASE === */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  /* Match website2 OpenType features */
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
  font-variant-ligatures: common-ligatures contextual;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  body { font-weight: 375; }
}

/* === LAYOUT === */
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
  display: none;
}

.mw-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  background: transparent;
  border: none;
}

#content {
  margin-left: 0;
  background: transparent;
  border: none;
}

/* === TYPOGRAPHY - Match website2 optical sizing === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
}

.mw-body h1, .firstHeading {
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  border: none;
}

.mw-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px dotted var(--border);
}

.mw-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.mw-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* === LINKS === */
.mw-body a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 200ms ease-out;
}

.mw-body a:hover {
  border-color: var(--fg);
}

.mw-body a.new {
  color: var(--red);
  border-color: var(--red);
  opacity: 0.7;
}

.mw-body a.new:hover { opacity: 1; }

.mw-body a.external {
  color: var(--fg-secondary);
  border-color: var(--fg-secondary);
}

/* === CODE - Mono with tabular nums === */
code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
}

code { padding: 1px 4px; }

pre {
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  line-height: 1.4;
}

/* === TABLES === */
.wikitable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  margin: 1rem 0;
}

.wikitable th, .wikitable td {
  border: 1px solid var(--border);
  padding: 0.375rem 0.5rem;
  text-align: left;
}

.wikitable th {
  background: var(--bg-alt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

/* === LISTS === */
.mw-body ul, .mw-body ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.mw-body li { margin-bottom: 0.25rem; }

/* === TOC - Compact, mono labels === */
#toc, .toc {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  max-width: 260px;
}

.toctitle h2 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.tocnumber {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-muted);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* === EDIT LINKS - Mono, muted === */
#p-views, #p-cactions {
  margin: 0.5rem 0;
  background: transparent;
  border: none;
}

#p-views ul, #p-cactions ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#p-views a, #p-cactions a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border-bottom: 1px dotted var(--border);
  background: transparent;
}

#p-views a:hover, #p-cactions a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.mw-editsection {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.3;
  margin-left: 0.5rem;
}

.mw-editsection:hover { opacity: 0.6; }
.mw-editsection a { border: none; color: var(--fg-muted); }

/* === CATEGORIES - label-uppercase-mono style === */
#catlinks {
  display: block;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}

#catlinks a {
  color: var(--fg-muted);
  border: none;
}

#catlinks a:hover {
  color: var(--fg-secondary);
}

/* === SPECIAL PAGES === */
.ns-special .mw-body { line-height: 1.4; }

.mw-changeslist-line {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.mw-changeslist-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.mw-diff-bytes {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.comment {
  font-style: italic;
  color: var(--fg-muted);
  margin-left: 0.25rem;
}

/* === VECTOR SKIN CLEANUP === */
.vector-page-titlebar,
.vector-page-toolbar,
.vector-menu-tabs,
.vector-menu-content,
#p-views, #p-namespaces, #p-cactions,
.mw-portlet, .vector-tabs, .vector-menu {
  border: none;
  box-shadow: none;
}

.vector-menu-tabs li, .vector-tabs li, #p-views li {
  border: none;
  background: transparent;
}

/* === NAVBOXES === */
.wikitable[style*="margin-top"] {
  font-size: 0.75rem;
  margin-top: 2rem;
}

.wikitable[style*="margin-top"] th {
  font-size: 0.7rem;
}

/* === SEARCH === */
#searchInput {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  color: var(--fg);
}

#searchInput::placeholder { color: var(--fg-muted); }

/* === MOBILE === */
@media (max-width: 768px) {
  .mw-body { padding: 1rem 0.75rem; }
  .mw-body h1 { font-size: 1.5rem; }
  .mw-body h2 { font-size: 1.125rem; }

  #p-views ul, #p-cactions ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  #toc, .toc { max-width: 100%; }
}

/* === INFOBOXES === */
.infobox {
  float: right;
  width: 240px;
  margin: 0 0 1rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.8rem;
  padding: 0.5rem;
}

.infobox th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.25rem;
  font-weight: 600;
}

.infobox td { padding: 0.25rem; }

/* === SUBTITLE/META === */
#siteSub, #contentSub, .mw-content-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  opacity: 0.6;
}