Jump to content

MediaWiki:Common.css: Difference between revisions

From Archive
No edit summary
Fix left/right nav alignment, reset margins
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* EJ Fox MediaWiki Theme - Consistent with main site */
/* EJ Fox Archive - Matched to website2 exactly */


/* ==================== 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: 'Monaspace Neon', 'Monaspace Argon', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;


/* ==================== ROOT VARIABLES ==================== */
   /* Colors - Match website2 zinc palette */
:root {
   --bg: #fafafa;
   /* Typography */
   --bg-alt: #f4f4f5;
  --font-primary: 'Signika Negative', sans-serif;
   --fg: #1a1a1a;           /* warm near-black - exact match */
  --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 */
   --red: #dc2626;
   --text-base: 1.125rem; /* 18px */
   --text-lg: 1.25rem;   /* 20px */
   --text-sm: 0.875rem;   /* 14px */
  --text-xs: 0.75rem;    /* 12px */
   --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
   --text-5xl: 3rem;      /* 48px */
 
  /* Spacing */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-4: 1rem;      /* 16px */
   --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 - exact match */
    --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 - exact match */
   
     --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 === */
html {
  overflow-x: hidden;
}
 
body {
body {
   background: var(--bg-primary) !important;
   background: var(--bg);
   color: var(--text-primary) !important;
   color: var(--fg);
   font-family: var(--font-primary) !important;
   font-family: var(--font-body);
   font-size: var(--text-base) !important;
   font-size: 1.125rem;        /* 18px - match website2 */
   line-height: 2rem !important;
   line-height: 1.75;         /* match website2 loose */
   margin: 0 !important;
   font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
   padding: 0 !important;
   font-variant-ligatures: common-ligatures contextual;
   transition: background-color var(--transition-normal), color var(--transition-normal) !important;
   font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
  overflow-x: hidden;
}
 
@media (prefers-color-scheme: dark) {
  body { font-weight: 375; }  /* match website2 dark mode */
}
}


/* ==================== CLEANUP (your existing code enhanced) ==================== */
/* === LAYOUT === */
#p-search,
#p-search, #p-logo, .mw-wiki-logo, #footer, .printfooter,
#p-logo,
#f-poweredbyico, #f-copyrightico, .mw-jump-link, #jump-to-nav {
.mw-wiki-logo,
  display: none;
#footer,
.printfooter,
#catlinks,
#f-poweredbyico,
#f-copyrightico,
#p-views,
#p-cactions {
    display: none !important;
}
}


/* ==================== LAYOUT ==================== */
.mw-body {
.mw-body {
    margin: 0 !important;
  max-width: var(--max-w);
    border: none !important;
  margin: 0 auto;
    padding: var(--space-8) !important;
  padding: 3rem 1rem 1.5rem;
    background: transparent !important;
  background: transparent;
    max-width: var(--max-width-3xl) !important;
  border: none;
    margin: 0 auto !important;
}
}


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


/* === TYPOGRAPHY - Match website2 scale === */
h1, h2, h3, h4, h5, h6,
.mw-heading, .mw-heading1, .mw-heading2, .mw-heading3, .mw-heading4 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
  background: none !important;
  border: none !important;
}


/* ==================== TYPOGRAPHY ==================== */
.mw-body h1, .firstHeading {
.mw-body h1 {
  font-size: 2.5rem;         /* 40px - match website2 4xl */
    color: var(--text-primary) !important;
  letter-spacing: -0.035em;   /* match website2 tighter */
    font-family: var(--font-heading) !important;
  line-height: 1.2;
    font-size: var(--text-4xl) !important;
  margin: 0 0 1.5rem;
    font-weight: 400 !important;
  border: none;
    line-height: 1.2 !important;
    margin: 0 0 var(--space-6) 0 !important;
    border-bottom: none !important;
}
}


.mw-body h2 {
.mw-body h2, .mw-heading2 h2 {
    color: var(--text-primary) !important;
  font-size: 2rem;           /* 32px - match website2 3xl */
    font-family: var(--font-heading) !important;
  letter-spacing: -0.025em;   /* match website2 tight */
    font-size: var(--text-3xl) !important;
  line-height: 1.25;
    font-weight: 400 !important;
  margin: 2.5rem 0 0.75rem;
    line-height: 1.3 !important;
  padding: 0;
    margin: var(--space-8) 0 var(--space-4) 0 !important;
  border: none !important;
    border-bottom: 1px dotted var(--border-medium) !important;
  background: none !important;
    padding-bottom: var(--space-2) !important;
}
}


.mw-body h3 {
.mw-body h3, .mw-heading3 h3 {
    color: var(--text-primary) !important;
  font-size: 1.75rem;        /* 28px - match website2 2xl */
    font-family: var(--font-primary) !important;
  letter-spacing: -0.015em;   /* match website2 */
    font-size: var(--text-lg) !important;
  line-height: 1.3;
    font-weight: 600 !important;
  font-weight: 400;
    margin: var(--space-6) 0 var(--space-4) 0 !important;
  margin: 2rem 0 0.5rem;
}
}


/* Geometric symbols (your signature style) */
.mw-body h4, .mw-heading4 h4 {
.mw-body h1::before {
  font-size: 1.5rem;          /* 24px - match website2 xl */
    content: "◆ ";
  letter-spacing: -0.01em;
    margin-right: var(--space-2) !important;
  line-height: 1.35;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
}
}


.mw-body h2::before {
.mw-body p {
    content: "○ ";
  margin-bottom: 1rem;
    margin-right: var(--space-2) !important;
  line-height: 1.75;         /* match website2 */
}
}


.mw-body h3::before {
/* === LINKS === */
    content: "▪ ";
.mw-body a {
    margin-right: var(--space-2) !important;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 200ms ease-out;
}
}


/* Body text */
.mw-body a:hover { border-color: var(--fg); }
.mw-body p {
 
    color: var(--text-primary) !important;
.mw-body a.new {
    font-family: var(--font-primary) !important;
  color: var(--red);
    font-size: var(--text-base) !important;
  border-color: var(--red);
    line-height: 2rem !important;
  opacity: 0.7;
    margin-bottom: var(--space-6) !important;
}
}


/* ==================== LINKS ==================== */
.mw-body a.new:hover { opacity: 1; }
.mw-body a:not(.external) {
 
    color: var(--text-primary) !important;
.mw-body a.external {
    padding: 1px 2px !important;
  color: var(--fg-secondary);
    transition: all var(--transition-fast) !important;
  border-color: var(--fg-secondary);
}
}


.mw-body a:not(.external):hover {
/* === CODE === */
    border-bottom-color: var(--text-primary) !important;
code, pre {
    background: var(--hover-bg) !important;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  background: var(--bg-alt);
  border: none;
  border-radius: 2px;
}
}


/* External links */
code {
.mw-body a.external {
  padding: 1px 4px;
    color: var(--accent-primary) !important;
  word-break: break-word;
    text-decoration: none !important;
    border-bottom: 1px solid var(--accent-primary) !important;
    padding: 1px 2px !important;
    transition: all var(--transition-fast) !important;
}
}


.mw-body a.external:hover {
pre {
    background: var(--hover-bg) !important;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.4;
  max-width: 100%;
}
}


/* ==================== TABLES ==================== */
/* === TABLES === */
.wikitable {
.wikitable {
    background: var(--bg-secondary) !important;
  width: 100%;
    border: 1px solid var(--border-light) !important;
  border-collapse: collapse;
    border-collapse: collapse !important;
  font-family: var(--font-mono);
    font-family: var(--font-mono) !important;
  font-size: 0.8rem;
    font-size: var(--text-sm) !important;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    margin: var(--space-6) 0 !important;
  margin: 1rem 0;
    width: 100% !important;
  border: none;
    border-radius: 4px !important;
}
    overflow: hidden !important;
 
.wikitable th, .wikitable td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  word-break: break-word;
}
}


.wikitable th {
.wikitable th {
    background: var(--bg-tertiary) !important;
  background: transparent;
    border: 1px solid var(--border-medium) !important;
  font-weight: 600;
    color: var(--text-primary) !important;
  text-transform: uppercase;
    padding: var(--space-4) !important;
  letter-spacing: 0.05em;
    font-weight: 600 !important;
  font-size: 0.7rem;
    text-align: left !important;
  color: var(--fg-muted);
}
 
.wikitable tr:last-child td {
  border-bottom: none;
}
 
/* === LISTS === */
.mw-body ul, .mw-body ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
 
.mw-body li { margin-bottom: 0.25rem; }
 
/* === TOC === */
#toc, .toc {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  max-width: 260px;
}
 
.toctitle h2 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
  border: none !important;
  padding: 0;
  background: none !important;
}
 
.toc ul { margin: 0; padding-left: 0.75rem; list-style: none; }
.tocnumber {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
 
/* === EDIT LINKS === */
#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: none;
  background: transparent;
}
 
#p-views a:hover, #p-cactions a:hover {
  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 === */
#catlinks {
  display: block;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  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.6; }
 
.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;
}
}


.wikitable td {
/* === VECTOR SKIN CLEANUP === */
    border: 1px solid var(--border-light) !important;
.vector-page-titlebar,
    color: var(--text-primary) !important;
.vector-page-toolbar,
    padding: var(--space-4) !important;
.vector-menu-tabs,
.vector-menu-content,
#p-views, #p-namespaces, #p-cactions,
.mw-portlet, .vector-tabs, .vector-menu {
  border: none;
  box-shadow: none;
}
}


.wikitable tr:nth-child(even) td {
.vector-menu-tabs li, .vector-tabs li, #p-views li {
    background: rgba(0, 0, 0, 0.02) !important;
  border: none;
  background: transparent;
}
}


@media (prefers-color-scheme: dark) {
/* === NAVBOXES === */
    .wikitable tr:nth-child(even) td {
.wikitable[style*="margin-top"] {
        background: rgba(255, 255, 255, 0.02) !important;
  font-size: 0.75rem;
    }
  margin-top: 2rem;
}
}


/* ==================== CODE ==================== */
.wikitable[style*="margin-top"] th {
code, pre {
  font-size: 0.7rem;
    font-family: var(--font-mono) !important;
    font-feature-settings: "tnum", "zero" !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    color: var(--text-primary) !important;
}
}


code {
/* === SEARCH === */
    padding: 2px 4px !important;
#searchInput {
    font-size: var(--text-sm) !important;
  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);
}
}


pre {
#searchInput::placeholder { color: var(--fg-muted); }
    padding: var(--space-4) !important;
 
    margin: var(--space-6) 0 !important;
/* === INFOBOXES === */
    overflow-x: auto !important;
.infobox {
    line-height: 1.5 !important;
  float: right;
  width: 240px;
  margin: 0 0 1rem 1rem;
  border: none;
  background: var(--bg-alt);
  font-size: 0.875rem;
  padding: 0.75rem;
}
}


/* ==================== LISTS ==================== */
.infobox th {
.mw-body ul, .mw-body ol {
  font-family: var(--font-mono);
    margin: var(--space-4) 0 !important;
  font-size: 0.65rem;
    padding-left: var(--space-6) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.25rem;
  font-weight: 600;
}
}


.mw-body li {
.infobox td { padding: 0.25rem; }
    margin-bottom: var(--space-2) !important;
 
    color: var(--text-primary) !important;
/* === 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;
}
}


/* ==================== RESPONSIVE ==================== */
/* Hide empty catlinks on Main Page */
body.page-Main_Page #catlinks { display: none; }
 
/* ============================================
  MOBILE STYLES - Fix horizontal scrolling
  ============================================ */
@media (max-width: 768px) {
@media (max-width: 768px) {
     :root {
  .mw-body {
        --text-base: 1rem; /* 16px on mobile */
     padding: 2rem 0.75rem 1rem;
    }
    max-width: 100vw;
   
    overflow-x: hidden;
    .mw-body {
  }
        padding: var(--space-4) !important;
 
        margin-left: 0 !important;
  .mw-body h1 { font-size: 2rem; }
    }
  .mw-body h2 { font-size: 1.5rem; }
   
  .mw-body h3 { font-size: 1.25rem; }
    #mw-panel {
 
        position: relative !important;
  #p-views ul, #p-cactions ul {
        width: 100% !important;
    flex-direction: column;
        margin: 0 0 var(--space-6) 0 !important;
    gap: 0.5rem;
        backdrop-filter: blur(16px) !important;
  }
        background: rgba(var(--bg-secondary), 0.8) !important;
 
     }
  #toc, .toc {
      
    max-width: 100%;
     .mw-body h1 {
    display: block;
        font-size: var(--text-3xl) !important;
  }
     }
 
   
  /* Code blocks - contained scroll */
    .mw-body h2 {
  pre {
        font-size: var(--text-lg) !important;
    max-width: calc(100vw - 1.5rem);
     }
    font-size: 0.75rem;
    padding: 0.75rem;
     white-space: pre;
     word-break: normal;
     overflow-x: auto;
  }
 
  /* Inline code - allow wrapping */
  code {
    word-break: break-all;
  }
 
  /* Tables - horizontal scroll wrapper */
  .wikitable {
    display: block;
    max-width: calc(100vw - 1.5rem);
     overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
 
  .wikitable th, .wikitable td {
    white-space: nowrap;
    min-width: 80px;
  }
 
  /* Infobox - stack on mobile */
  .infobox {
    float: none;
    width: 100%;
     margin: 1rem 0;
  }
}
}


/* ==================== SEARCH (if you want to show it) ==================== */
/* Extra small screens */
#searchform {
@media (max-width: 480px) {
    background: var(--bg-secondary) !important;
  .mw-body {
    border: 1px solid var(--border-light) !important;
    padding: 1.5rem 0.5rem 0.75rem;
    border-radius: 4px !important;
  }
    margin: var(--space-4) 0 !important;
 
    overflow: hidden !important;
  .mw-body h1 { font-size: 1.75rem; }
  .mw-body h2 { font-size: 1.375rem; }
 
  pre {
    max-width: calc(100vw - 1rem);
    font-size: 0.7rem;
    padding: 0.5rem;
  }
 
  .wikitable {
    max-width: calc(100vw - 1rem);
    font-size: 0.7rem;
  }
}
 
/* === KILL TAB UNDERLINES === */
.vector-menu-tabs .selected,
.vector-menu-tabs .selected a,
.vector-menu-tabs li,
.vector-menu-tabs li a,
#p-namespaces li,
#p-namespaces li a,
#p-views li,
#p-views li a,
.mw-list-item,
.mw-list-item a,
#ca-nstab-main,
#ca-talk,
#ca-view,
#ca-viewsource,
#ca-history {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
 
/* Vector 2022 specific tab styling */
.vector-page-toolbar,
.vector-page-toolbar-container,
.vector-tabs,
.vector-tabs li,
.vector-tabs a,
.cdx-tabs,
.cdx-tabs__list,
.cdx-tabs__list__item {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
 
/* Nuclear option - all nav borders */
nav, nav * {
  border: none !important;
}
 
/* === NAV FONT CONSISTENCY === */
/* All nav elements: mono, uppercase, small */
#p-namespaces,
#p-namespaces a,
#p-views,
#p-views a,
#p-personal,
#p-personal a,
#p-logo a,
.mw-portlet a,
.vector-menu a,
.vector-tabs a,
.cdx-tabs a,
#pt-login,
#pt-login a,
#ca-nstab-main,
#ca-talk,
nav a,
header a,
.mw-header a,
.vector-header a,
.vector-header-container a {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--fg-muted) !important;
}
 
/* Hover state */
#p-namespaces a:hover,
#p-views a:hover,
#p-personal a:hover,
.mw-portlet a:hover,
.vector-menu a:hover,
nav a:hover,
header a:hover {
  color: var(--fg) !important;
}
 
/* Site title "Archive" - slightly larger */
.mw-logo-wordmark,
.vector-header .mw-logo a,
#p-logo a {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}
 
/* === MINIMAL SPACING FIXES === */
/* Add gap between PAGE and DISCUSSION */
#p-namespaces li {
  margin-right: 1rem !important;
}
 
/* Reduce huge gap above title */
.mw-body {
  padding-top: 1.5rem !important;
}
}


#searchInput {
/* === FIX LEFT/RIGHT NAV ALIGNMENT === */
    background: transparent !important;
#left-navigation,
    border: none !important;
#right-navigation {
    color: var(--text-primary) !important;
  margin: 0 !important;
    font-family: var(--font-mono) !important;
  padding: 0.5rem 0 !important;
    font-size: var(--text-sm) !important;
    padding: var(--space-2) var(--space-4) !important;
    width: calc(100% - var(--space-8)) !important;
}
}


#searchInput::placeholder {
.vector-page-toolbar-container {
    color: var(--text-muted) !important;
  padding: 0 !important;
  margin: 0 !important;
}
}


#searchInput:focus {
/* Reset the -8px margin on left nav */
    outline: none !important;
#left-navigation {
    box-shadow: 0 0 0 1px var(--focus-ring) !important;
  margin-left: 0 !important;
}
}


/* ==================== GEOMETRIC ACCENTS ==================== */
/* Align both nav sections vertically */
.mw-body::before {
#left-navigation,
    content: "";
#right-navigation,
    position: fixed;
#p-namespaces,
    top: var(--space-4);
#p-views {
    right: var(--space-4);
  display: flex !important;
    width: 8px;
  align-items: center !important;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 1000;
}
}

Latest revision as of 17:47, 26 January 2026

/* EJ Fox Archive - Matched to website2 exactly */

:root {
  /* Typography - Match website2 exactly */
  --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
  --font-mono: 'Monaspace Neon', 'Monaspace Argon', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;

  /* Colors - Match website2 zinc palette */
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --fg: #1a1a1a;           /* warm near-black - exact match */
  --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 - exact match */
    --bg-alt: #18181b;       /* zinc-900 */
    --fg: #f5f5f4;           /* warmer off-white - exact match */
    --fg-secondary: #a1a1aa; /* zinc-400 */
    --fg-muted: #71717a;     /* zinc-500 */
    --border: #3f3f46;       /* zinc-700 */
    --red: #f87171;
  }
}

/* === BASE === */
html {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;        /* 18px - match website2 */
  line-height: 1.75;          /* match website2 loose */
  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;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body { font-weight: 375; }  /* match website2 dark mode */
}

/* === 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: 3rem 1rem 1.5rem;
  background: transparent;
  border: none;
}

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

/* === TYPOGRAPHY - Match website2 scale === */
h1, h2, h3, h4, h5, h6,
.mw-heading, .mw-heading1, .mw-heading2, .mw-heading3, .mw-heading4 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg);
  background: none !important;
  border: none !important;
}

.mw-body h1, .firstHeading {
  font-size: 2.5rem;          /* 40px - match website2 4xl */
  letter-spacing: -0.035em;   /* match website2 tighter */
  line-height: 1.2;
  margin: 0 0 1.5rem;
  border: none;
}

.mw-body h2, .mw-heading2 h2 {
  font-size: 2rem;            /* 32px - match website2 3xl */
  letter-spacing: -0.025em;   /* match website2 tight */
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
  padding: 0;
  border: none !important;
  background: none !important;
}

.mw-body h3, .mw-heading3 h3 {
  font-size: 1.75rem;         /* 28px - match website2 2xl */
  letter-spacing: -0.015em;   /* match website2 */
  line-height: 1.3;
  font-weight: 400;
  margin: 2rem 0 0.5rem;
}

.mw-body h4, .mw-heading4 h4 {
  font-size: 1.5rem;          /* 24px - match website2 xl */
  letter-spacing: -0.01em;
  line-height: 1.35;
  font-weight: 400;
  margin: 1.5rem 0 0.5rem;
}

.mw-body p {
  margin-bottom: 1rem;
  line-height: 1.75;          /* match website2 */
}

/* === 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 === */
code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  background: var(--bg-alt);
  border: none;
  border-radius: 2px;
}

code {
  padding: 1px 4px;
  word-break: break-word;
}

pre {
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.4;
  max-width: 100%;
}

/* === 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;
  border: none;
}

.wikitable th, .wikitable td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  word-break: break-word;
}

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

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

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

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

/* === TOC === */
#toc, .toc {
  display: inline-block;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  max-width: 260px;
}

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

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

/* === EDIT LINKS === */
#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: none;
  background: transparent;
}

#p-views a:hover, #p-cactions a:hover {
  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 === */
#catlinks {
  display: block;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  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.6; }

.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); }

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

.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;
}

/* Hide empty catlinks on Main Page */
body.page-Main_Page #catlinks { display: none; }

/* ============================================
   MOBILE STYLES - Fix horizontal scrolling
   ============================================ */
@media (max-width: 768px) {
  .mw-body {
    padding: 2rem 0.75rem 1rem;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mw-body h1 { font-size: 2rem; }
  .mw-body h2 { font-size: 1.5rem; }
  .mw-body h3 { font-size: 1.25rem; }

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

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

  /* Code blocks - contained scroll */
  pre {
    max-width: calc(100vw - 1.5rem);
    font-size: 0.75rem;
    padding: 0.75rem;
    white-space: pre;
    word-break: normal;
    overflow-x: auto;
  }

  /* Inline code - allow wrapping */
  code {
    word-break: break-all;
  }

  /* Tables - horizontal scroll wrapper */
  .wikitable {
    display: block;
    max-width: calc(100vw - 1.5rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wikitable th, .wikitable td {
    white-space: nowrap;
    min-width: 80px;
  }

  /* Infobox - stack on mobile */
  .infobox {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .mw-body {
    padding: 1.5rem 0.5rem 0.75rem;
  }

  .mw-body h1 { font-size: 1.75rem; }
  .mw-body h2 { font-size: 1.375rem; }

  pre {
    max-width: calc(100vw - 1rem);
    font-size: 0.7rem;
    padding: 0.5rem;
  }

  .wikitable {
    max-width: calc(100vw - 1rem);
    font-size: 0.7rem;
  }
}

/* === KILL TAB UNDERLINES === */
.vector-menu-tabs .selected,
.vector-menu-tabs .selected a,
.vector-menu-tabs li,
.vector-menu-tabs li a,
#p-namespaces li,
#p-namespaces li a,
#p-views li,
#p-views li a,
.mw-list-item,
.mw-list-item a,
#ca-nstab-main,
#ca-talk,
#ca-view,
#ca-viewsource,
#ca-history {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Vector 2022 specific tab styling */
.vector-page-toolbar,
.vector-page-toolbar-container,
.vector-tabs,
.vector-tabs li,
.vector-tabs a,
.cdx-tabs,
.cdx-tabs__list,
.cdx-tabs__list__item {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Nuclear option - all nav borders */
nav, nav * {
  border: none !important;
}

/* === NAV FONT CONSISTENCY === */
/* All nav elements: mono, uppercase, small */
#p-namespaces,
#p-namespaces a,
#p-views,
#p-views a,
#p-personal,
#p-personal a,
#p-logo a,
.mw-portlet a,
.vector-menu a,
.vector-tabs a,
.cdx-tabs a,
#pt-login,
#pt-login a,
#ca-nstab-main,
#ca-talk,
nav a,
header a,
.mw-header a,
.vector-header a,
.vector-header-container a {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--fg-muted) !important;
}

/* Hover state */
#p-namespaces a:hover,
#p-views a:hover,
#p-personal a:hover,
.mw-portlet a:hover,
.vector-menu a:hover,
nav a:hover,
header a:hover {
  color: var(--fg) !important;
}

/* Site title "Archive" - slightly larger */
.mw-logo-wordmark,
.vector-header .mw-logo a,
#p-logo a {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

/* === MINIMAL SPACING FIXES === */
/* Add gap between PAGE and DISCUSSION */
#p-namespaces li {
  margin-right: 1rem !important;
}

/* Reduce huge gap above title */
.mw-body {
  padding-top: 1.5rem !important;
}

/* === FIX LEFT/RIGHT NAV ALIGNMENT === */
#left-navigation,
#right-navigation {
  margin: 0 !important;
  padding: 0.5rem 0 !important;
}

.vector-page-toolbar-container {
  padding: 0 !important;
  margin: 0 !important;
}

/* Reset the -8px margin on left nav */
#left-navigation {
  margin-left: 0 !important;
}

/* Align both nav sections vertically */
#left-navigation,
#right-navigation,
#p-namespaces,
#p-views {
  display: flex !important;
  align-items: center !important;
}