Jump to content

MediaWiki:Common.css: Difference between revisions

From Archive
add styling for FPV parts
No edit summary
 
(4 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 */


/* ==================== IMPORTS ==================== */
:root {
@import url('https://fonts.googleapis.com/css2?family=Signika+Negative:wght@200;300;400;500;600;700;800&family=Red+Hat+Mono:wght@300;400&family=Fjalla+One:wght@400&display=swap');
  /* 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;


/* ==================== ROOT VARIABLES ==================== */
   /* Colors - Tailwind zinc, warm tones */
:root {
   --bg: #fafafa;
   /* Typography */
   --bg-alt: #f4f4f5;
  --font-primary: 'Signika Negative', sans-serif;
   --fg: #1a1a1a;           /* warm near-black */
  --font-mono: 'Red Hat Mono', monospace;
   --fg-secondary: #52525b; /* zinc-600 */
  --font-heading: 'Fjalla One', sans-serif;
   --fg-muted: #71717a;     /* zinc-500 */
 
   --border: #e4e4e7;        /* zinc-200 */
  /* Font Sizes - slightly reduced */
   --red: #dc2626;
   --text-base: 1rem;         /* 16px - reduced from 18px */
   --text-lg: 1.125rem;       /* 18px - reduced from 20px */
   --text-sm: 0.875rem;       /* 14px */
  --text-xs: 0.75rem;        /* 12px */
   --text-3xl: 1.75rem;       /* 28px - reduced from 30px */
   --text-4xl: 2rem;         /* 32px - reduced from 36px */
  --text-5xl: 2.75rem;      /* 44px - reduced from 48px */
 
  /* Spacing - tightened up */
   --space-1: 0.25rem;        /* 4px */
  --space-2: 0.5rem;        /* 8px */
   --space-3: 0.75rem;       /* 12px */
  --space-4: 1rem;          /* 16px */
  --space-5: 1.25rem;        /* 20px */
  --space-6: 1.5rem;        /* 24px */
  --space-8: 2rem;          /* 32px */
  --space-12: 3rem;          /* 48px */
 
  /* Layout */
  --max-width-3xl: 48rem; /* 768px */
  --max-width-4xl: 56rem; /* 896px */
 
  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-normal: 300ms ease-out;
}


/* Light mode colors */
   --max-w: 65ch;
:root {
  --bg-primary: rgb(250, 250, 250);      /* zinc-50 */
  --bg-secondary: rgb(244, 244, 245);    /* zinc-100 */
  --bg-tertiary: rgb(228, 228, 231);    /* zinc-200 */
 
  --border-light: rgb(228, 228, 231);    /* zinc-200 */
  --border-medium: rgb(212, 212, 216);  /* zinc-300 */
  --border-dark: rgb(161, 161, 170);    /* zinc-400 */
 
  --text-primary: rgb(39, 39, 42);      /* zinc-800 */
  --text-secondary: rgb(82, 82, 91);    /* zinc-600 */
  --text-tertiary: rgb(113, 113, 122);  /* zinc-500 */
  --text-muted: rgb(161, 161, 170);      /* zinc-400 */
 
   --accent-primary: rgb(22, 163, 74);   /* green-600 */
  --accent-error: rgb(220, 38, 38);      /* red-600 */
 
  --hover-bg: rgb(228, 228, 231, 0.3);  /* zinc-200/30 */
  --focus-ring: rgb(161, 161, 170);      /* zinc-400 */
}
}


/* Dark mode colors */
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
   :root {
   :root {
     --bg-primary: rgb(24, 24, 27);       /* zinc-900 */
     --bg: #0a0a0a;           /* warm near-black */
     --bg-secondary: rgb(39, 39, 42);      /* zinc-800 */
     --bg-alt: #18181b;      /* zinc-900 */
    --bg-tertiary: rgb(63, 63, 70);      /* zinc-700 */
     --fg: #f5f5f4;           /* warmer off-white */
      
     --fg-secondary: #a1a1aa; /* zinc-400 */
    --border-light: rgb(63, 63, 70);     /* zinc-700 */
     --fg-muted: #71717a;    /* zinc-500 */
     --border-medium: rgb(82, 82, 91);    /* zinc-600 */
     --border: #3f3f46;       /* zinc-700 */
    --border-dark: rgb(113, 113, 122);    /* zinc-500 */
     --red: #f87171;
   
    --text-primary: rgb(244, 244, 245);  /* zinc-100 */
    --text-secondary: rgb(212, 212, 216); /* zinc-300 */
    --text-tertiary: rgb(161, 161, 170); /* zinc-400 */
     --text-muted: rgb(113, 113, 122);    /* zinc-500 */
   
     --accent-primary: rgb(74, 222, 128); /* green-400 */
    --accent-error: rgb(248, 113, 113);  /* red-400 */
   
    --hover-bg: rgb(63, 63, 70, 0.3);    /* zinc-700/30 */
     --focus-ring: rgb(82, 82, 91);       /* zinc-600 */
   }
   }
}
}


/* ==================== RESET & BASE ==================== */
/* === BASE === */
/* Specific font overrides - don't use universal selector */
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;
}
 
/* Force headings to use heading font */
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-heading) !important;
}
 
/* Force monospace where appropriate */
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: var(--text-base) !important;
   font-family: var(--font-body);
   line-height: 1.6 !important; /* Reduced from 2rem for tighter spacing */
  font-size: 1rem;
   margin: 0 !important;
   line-height: 1.6;
   padding: 0 !important;
  /* Match website2 OpenType features */
   transition: background-color var(--transition-normal), color var(--transition-normal) !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;
}
}


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


/* Keep edit buttons visible - removed #p-views and #p-cactions from hidden list */
/* === LAYOUT === */
 
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
/* ==================== EDIT BUTTONS STYLING - Minimal ==================== */
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
#p-views, #p-cactions {
  display: none;
    margin: var(--space-3) 0 !important;
    padding: 0 !important;
    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-tertiary) !important;
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono) !important;
  font-family: var(--font-body);
    font-size: var(--text-sm) !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-fast) !important;
    background: transparent !important;
    border-radius: 0 !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;
    background: transparent !important;
  line-height: 1.2;
}
  margin: 0 0 1.5rem;
 
  border: none;
/* ==================== LAYOUT ==================== */
.mw-body {
    margin: 0 !important;
    border: none !important;
    padding: var(--space-6) !important; /* Reduced from space-8 */
    background: transparent !important;
    max-width: var(--max-width-3xl) !important;
    margin: 0 auto !important;
}
 
#content {
    margin-left: 0 !important;
    background: transparent !important;
    border: none !important;
}
 
/* ==================== TYPOGRAPHY ==================== */
.mw-body h1 {
    color: var(--text-primary) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--text-4xl) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 0 var(--space-5) 0 !important; /* Reduced from space-6 */
    border-bottom: none !important;
}
}


.mw-body h2 {
.mw-body h2 {
    color: var(--text-primary) !important;
  font-size: 1.25rem;
    font-family: var(--font-heading) !important;
  letter-spacing: -0.015em;
    font-size: var(--text-3xl) !important;
  margin: 2.5rem 0 0.75rem;
    font-weight: 400 !important;
  padding-bottom: 0.25rem;
    line-height: 1.3 !important;
  border-bottom: 1px dotted var(--border);
    margin: var(--space-6) 0 var(--space-3) 0 !important; /* Reduced bottom margin */
    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-family: var(--font-primary) !important;
  font-weight: 600;
    font-size: var(--text-lg) !important;
  margin: 1.5rem 0 0.5rem;
    font-weight: 600 !important;
    margin: var(--space-5) 0 var(--space-3) 0 !important; /* Reduced margins */
}
}


/* Removed geometric symbols */
/* Body text */
.mw-body p {
.mw-body p {
    color: var(--text-primary) !important;
  margin-bottom: 1rem;
    font-family: var(--font-primary) !important;
  line-height: 1.6;
    font-size: var(--text-base) !important;
    line-height: 1.6 !important; /* Reduced from 2rem */
    margin-bottom: var(--space-4) !important; /* Reduced from space-6 */
}
}


/* ==================== LINKS - Clean and simple ==================== */
/* === 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-fast) !important;
}
}


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


/* External links - keep accent color and fix icon overlap */
.mw-body a.new {
.mw-body a.external {
  color: var(--red);
    color: var(--accent-primary) !important;
  border-color: var(--red);
    text-decoration: none !important;
  opacity: 0.7;
    border-bottom: 1px solid var(--accent-primary) !important;
    padding: 1px 15px 1px 2px !important; /* Extra right padding for icon */
    transition: all var(--transition-fast) !important;
}
}


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


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


/* ==================== TABLES ==================== */
/* === CODE - Mono with tabular nums === */
.wikitable {
code, pre {
    background: var(--bg-secondary) !important;
  font-family: var(--font-mono);
    border: 1px solid var(--border-light) !important;
  font-size: 0.875rem;
    border-collapse: collapse !important;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    font-family: var(--font-mono) !important;
  background: var(--bg-alt);
    font-size: var(--text-sm) !important;
  border: 1px solid var(--border);
    margin: var(--space-5) 0 !important; /* Reduced from space-6 */
  border-radius: 2px;
    width: 100% !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
}


.wikitable th {
code { padding: 1px 4px; }
    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 {
pre {
    border: 1px solid var(--border-light) !important;
  padding: 1rem;
    color: var(--text-primary) !important;
  margin: 1rem 0;
    padding: var(--space-3) !important; /* Reduced from space-4 */
  overflow-x: auto;
  line-height: 1.4;
}
}


.wikitable tr:nth-child(even) td {
/* === TABLES === */
    background: rgba(0, 0, 0, 0.02) !important;
.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;
}
}


@media (prefers-color-scheme: dark) {
.wikitable th, .wikitable td {
    .wikitable tr:nth-child(even) td {
  border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.02) !important;
  padding: 0.375rem 0.5rem;
    }
  text-align: left;
}
}


/* ==================== CODE ==================== */
.wikitable th {
code, pre {
  background: var(--bg-alt);
    font-family: var(--font-mono) !important;
  font-weight: 600;
    font-feature-settings: "tnum", "zero" !important;
  text-transform: uppercase;
    background: var(--bg-secondary) !important;
  letter-spacing: 0.05em;
    border: 1px solid var(--border-light) !important;
  font-size: 0.7rem;
    border-radius: 4px !important;
    color: var(--text-primary) !important;
}
 
code {
    padding: 2px 4px !important;
    font-size: var(--text-sm) !important;
}
 
pre {
    padding: var(--space-4) !important;
    margin: var(--space-5) 0 !important; /* Reduced from space-6 */
    overflow-x: auto !important;
    line-height: 1.5 !important;
}
}


/* ==================== LISTS ==================== */
/* === LISTS === */
.mw-body ul, .mw-body ol {
.mw-body ul, .mw-body ol {
    margin: var(--space-3) 0 !important; /* Reduced from space-4 */
  margin: 0.5rem 0;
    padding-left: var(--space-6) !important;
  padding-left: 1.5rem;
}
}


.mw-body li {
.mw-body li { margin-bottom: 0.25rem; }
    margin-bottom: var(--space-1) !important; /* Reduced from space-2 */
    color: var(--text-primary) !important;
}


/* ==================== SPECIAL PAGES - Basic fixes only ==================== */
/* === TOC - Compact, mono labels === */
/* Fix overlapping issues on special pages */
#toc, .toc {
.ns-special .mw-body {
  display: inline-block;
    padding: var(--space-4) !important;
  background: transparent;
    line-height: 1.4 !important;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
  max-width: 260px;
}
}


.ns-special .mw-body p {
.toctitle h2 {
    margin-bottom: var(--space-3) !important;
  font-family: var(--font-mono);
    line-height: 1.4 !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;
}
}


/* Recent Changes specific fixes */
.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.mw-changeslist-line {
.tocnumber {
    margin-bottom: var(--space-2) !important;
  font-family: var(--font-mono);
    line-height: 1.3 !important;
  font-size: 0.6rem;
    clear: both !important;
  color: var(--fg-muted);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
}


.mw-changeslist .mw-title {
/* === EDIT LINKS - Mono, muted === */
    display: inline !important;
#p-views, #p-cactions {
    margin-right: var(--space-2) !important;
  margin: 0.5rem 0;
  background: transparent;
  border: none;
}
}


.mw-changeslist-date {
#p-views ul, #p-cactions ul {
    margin-bottom: var(--space-3) !important;
  display: flex;
    font-weight: 600 !important;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
}


/* Fix timestamps and metadata */
#p-views a, #p-cactions a {
.mw-changeslist-time {
  font-family: var(--font-mono);
    font-family: var(--font-mono) !important;
  font-size: 0.7rem;
    font-size: var(--text-sm) !important;
  text-transform: uppercase;
    margin-right: var(--space-2) !important;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border-bottom: 1px dotted var(--border);
  background: transparent;
}
}


.mw-usertoollinks {
#p-views a:hover, #p-cactions a:hover {
    font-size: var(--text-xs) !important;
  color: var(--fg);
    margin-left: var(--space-1) !important;
  border-color: var(--fg);
}
}


/* Fix diff links and counters */
.mw-editsection {
.mw-diff-bytes {
  font-family: var(--font-mono);
    font-family: var(--font-mono) !important;
  font-size: 0.6rem;
    font-size: var(--text-xs) !important;
  text-transform: uppercase;
    margin: 0 var(--space-1) !important;
  letter-spacing: 0.1em;
  opacity: 0.3;
  margin-left: 0.5rem;
}
}


/* Fix summary text */
.mw-editsection:hover { opacity: 0.6; }
.comment {
.mw-editsection a { border: none; color: var(--fg-muted); }
    font-style: italic !important;
    color: var(--text-tertiary) !important;
    margin-left: var(--space-2) !important;
}


/* ==================== RESPONSIVE ==================== */
/* === CATEGORIES - label-uppercase-mono style === */
@media (max-width: 768px) {
#catlinks {
    :root {
  display: block;
        --text-base: 0.95rem; /* Slightly smaller on mobile */
  margin-top: 2.5rem;
    }
  padding-top: 0.75rem;
   
  border-top: 1px dotted var(--border);
    .mw-body {
  font-family: var(--font-mono);
        padding: var(--space-4) !important;
  font-size: 0.6rem;
        margin-left: 0 !important;
  text-transform: uppercase;
    }
  letter-spacing: 0.15em;
   
  color: var(--fg-muted);
    #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) ==================== */
#catlinks a {
#searchform {
  color: var(--fg-muted);
    background: var(--bg-secondary) !important;
  border: none;
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    margin: var(--space-4) 0 !important;
    overflow: hidden !important;
}
}


#searchInput {
#catlinks a:hover {
    background: transparent !important;
  color: var(--fg-secondary);
    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 {
/* === SPECIAL PAGES === */
    color: var(--text-muted) !important;
.ns-special .mw-body { line-height: 1.4; }
}


#searchInput:focus {
.mw-changeslist-line {
    outline: none !important;
  margin-bottom: 0.25rem;
    box-shadow: 0 0 0 1px var(--focus-ring) !important;
  line-height: 1.3;
}
}


/* ==================== GEOMETRIC ACCENTS ==================== */
.mw-changeslist-time {
.mw-body::before {
  font-family: var(--font-mono);
    content: "";
  font-size: 0.75rem;
    position: fixed;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    top: var(--space-4);
    right: var(--space-4);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 1000;
}
}


 
.mw-diff-bytes {
/* ==================== UNCREATED PAGES (RED LINKS) ==================== */
  font-family: var(--font-mono);
/* Override styles for non-existent pages */
  font-size: 0.65rem;
.mw-body a.new,
  font-feature-settings: 'lnum' 1, 'tnum' 1;
.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 {
.comment {
    color: var(--accent-error) !important;
  font-style: italic;
    border-bottom-color: var(--accent-error) !important;
  color: var(--fg-muted);
    background: var(--hover-bg) !important;
  margin-left: 0.25rem;
    opacity: 1;
}
}


/* Question mark indicator for uncreated pages */
/* === VECTOR SKIN CLEANUP === */
.mw-body a.new::after {
.vector-page-titlebar,
    content: "?";
.vector-page-toolbar,
    font-size: 0.75em;
.vector-menu-tabs,
    margin-left: 2px;
.vector-menu-content,
    opacity: 0.6;
#p-views, #p-namespaces, #p-cactions,
    font-weight: 400;
.mw-portlet, .vector-tabs, .vector-menu {
  border: none;
  box-shadow: none;
}
}


/* Special styling for uncreated user/talk pages */
.vector-menu-tabs li, .vector-tabs li, #p-views li {
.mw-body a.new.mw-userlink,
  border: none;
.mw-body a.new[title*="User:"],
  background: transparent;
.mw-body a.new[title*="User talk:"] {
    font-style: italic;
}
}


 
/* === NAVBOXES === */
/* FPV part infobox styling */
.wikitable[style*="margin-top"] {
/* FPV Part Infobox Styling */
  font-size: 0.75rem;
.fpvpart-infobox {
  margin-top: 2rem;
    float: right;
    width: 300px;
    margin: 0 0 1em 1em;
    border: 1px solid #aaa;
    background: #f9f9f9;
    padding: 5px;
    font-size: 88%;
    clear: right;
}
}


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


.fpvpart-type {
/* === SEARCH === */
    background: #666;
#searchInput {
    color: white;
  font-family: var(--font-mono);
    padding: 3px;
  font-size: 0.875rem;
    text-align: center;
  background: var(--bg-alt);
    font-size: 90%;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  color: var(--fg);
}
}


.fpvpart-specs {
#searchInput::placeholder { color: var(--fg-muted); }
    width: 100%;
    margin: 5px 0;
}


.fpvpart-specs th {
/* === MOBILE === */
    background: #e0e0e0;
@media (max-width: 768px) {
    padding: 3px;
  .mw-body { padding: 1rem 0.75rem; }
    text-align: left;
  .mw-body h1 { font-size: 1.5rem; }
    width: 40%;
  .mw-body h2 { font-size: 1.125rem; }
    font-weight: bold;
}


.fpvpart-specs td {
  #p-views ul, #p-cactions ul {
     padding: 3px;
     flex-direction: column;
}
    gap: 0.5rem;
  }


.fpvpart-status {
  #toc, .toc { max-width: 100%; }
    padding: 5px;
    text-align: center;
    font-weight: bold;
    margin: 5px 0;
}
}


.fpvpart-status.status-IN_STOCK {
/* === INFOBOXES === */
    background: #90EE90;
.infobox {
    color: darkgreen;
  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;
}
}


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


.fpvpart-status.status-LIMITED {
.infobox td { padding: 0.25rem; }
    background: #FFD700;
    color: #8B4513;
}


.fpvpart-notes {
/* === SUBTITLE/META === */
    background: #ffffcc;
#siteSub, #contentSub, .mw-content-subtitle {
    border: 1px solid #cccc00;
  font-family: var(--font-mono);
    padding: 5px;
  font-size: 0.65rem;
    margin-top: 5px;
  text-transform: uppercase;
    font-size: 85%;
  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;
}