Jump to content

MediaWiki:Common.css: Difference between revisions

From Archive
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Remove MediaWiki branding and clutter */
/* EJ Fox Archive - Matched to website2 */
#mw-page-base,
 
#mw-head-base,
:root {
.mw-wiki-logo,
  /* Typography - Match website2 exactly */
#p-logo,
  --font-body: 'Georgia', 'Times New Roman', 'Droid Serif', 'Times', 'Source Serif Pro', serif;
.printfooter,
  --font-mono: ui-monospace, 'SF Mono', Monaco, monospace;
.catlinks,
 
#footer-info,
  /* Colors - Tailwind zinc, warm tones */
#footer-places,
  --bg: #fafafa;
.mw-editsection,
  --bg-alt: #f4f4f5;
.mw-jump-link {
  --fg: #1a1a1a;          /* warm near-black */
    display: none !important;
  --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);
}
}


/* Hide edit links unless hovering */
.mw-editsection {
.mw-editsection {
    opacity: 0;
  font-family: var(--font-mono);
    transition: opacity 0.3s ease;
  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-body:hover .mw-editsection {
 
    opacity: 1;
.mw-changeslist-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
}


/* Minimal page tabs */
.mw-diff-bytes {
#p-views ul li {
  font-family: var(--font-mono);
    background: none;
  font-size: 0.65rem;
    border: none;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
    margin: 0 10px 0 0;
}
}


#p-views ul li a {
.comment {
    background: none !important;
  font-style: italic;
    color: #888 !important;
  color: var(--fg-muted);
    border: none !important;
  margin-left: 0.25rem;
    padding: 5px 0 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}
}


#p-views ul li.selected a {
/* === VECTOR SKIN CLEANUP === */
    color: #fff !important;
.vector-page-titlebar,
    border-bottom: 2px solid #88c0d0 !important;
.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;
}


/* Clean up the main content area */
/* === NAVBOXES === */
.mw-body {
.wikitable[style*="margin-top"] {
    margin-left: 0 !important;
  font-size: 0.75rem;
    border: none !important;
  margin-top: 2rem;
    padding: 20px !important;
}
}


/* Remove all borders and backgrounds */
.wikitable[style*="margin-top"] th {
#content {
  font-size: 0.7rem;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
}


/* Clean sidebar */
/* === SEARCH === */
#mw-panel {
#searchInput {
    background: transparent !important;
  font-family: var(--font-mono);
    border: none !important;
  font-size: 0.875rem;
    width: 200px !important;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  color: var(--fg);
}
}


#mw-panel .portal {
#searchInput::placeholder { color: var(--fg-muted); }
    background: none !important;
 
     border: none !important;
/* === MOBILE === */
     margin: 0 0 20px 0 !important;
@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%; }
}
}


#mw-panel .portal h3 {
/* === INFOBOXES === */
    background: none !important;
.infobox {
    border: none !important;
  float: right;
    color: #888 !important;
  width: 240px;
    font-family: 'JetBrains Mono', monospace !important;
  margin: 0 0 1rem 1rem;
    font-size: 0.9em !important;
  border: 1px solid var(--border);
    font-weight: normal !important;
  background: var(--bg-alt);
    padding: 5px 0 !important;
  font-size: 0.8rem;
  padding: 0.5rem;
}
}


#mw-panel .portal .body ul li a {
.infobox th {
    color: #ccc !important;
  font-family: var(--font-mono);
    font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.65rem;
    font-size: 0.85em !important;
  text-transform: uppercase;
    padding: 3px 0 !important;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 0.25rem;
  font-weight: 600;
}
}


#mw-panel .portal .body ul li a:hover {
.infobox td { padding: 0.25rem; }
    color: #88c0d0 !important;
 
    text-decoration: none !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;
}
}

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