Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Attempt at true mobile-framing fix
No edit summary
Line 1: Line 1:
/* ==============================================
/* ===== Sun Keeperverse – clean, mobile-first ===== */
  Sun Keeperverse — Encarta-style, MOBILE-FIRST
  ============================================== */


/* 0. Stop mobile browsers from auto-zooming text */
/* Stop browsers from auto-resizing text */
html {
html {
   -webkit-text-size-adjust: 100%;
   -webkit-text-size-adjust: 100%;
Line 9: Line 7:
}
}


/* 1. Root palette + card colors */
/* Colors */
:root {
:root {
   color-scheme: light !important;
   color-scheme: light !important;
   --color-base: #2b2414 !important;
   --color-base: #2b2414;
   --color-link: #36c !important;
   --color-link: #36c;
   --color-link-new: #d33 !important;
   --color-link-new: #d33;
 
   --card-bg: #efe3c1;
   --card-bg: #efe3c1;
   --card-border: #c9b172;
   --card-border: #c9b172;
}
}


/* 2. Canvas & main layout */
/* Base canvas */
 
html, body {
html,
  margin: 0;
body {
  padding: 0;
   background: #ffffff !important;
   background: #ffffff !important;
   color: var(--color-base) !important;
   color: var(--color-base) !important;
  margin: 0;
  padding: 0;
}
}


/* Main containers: no boxed white panel, just bright canvas */
/* Main content box */
.vector-page,
#content,
.mw-page-container,
.mw-body,
.mw-body,
.mw-content-container {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
/* Desktop-ish width, center the content */
.mw-body-content,
.mw-body-content,
.vector-body {
.vector-body {
Line 48: Line 34:
   margin: 1.5rem auto;
   margin: 1.5rem auto;
   padding: 1.25rem 1.5rem;
   padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
}


/* On phones/tablets, let content use the whole width */
/* Typography */
@media (max-width: 1100px) {
  .mw-body-content,
  .vector-body {
    box-sizing: border-box;
    max-width: 100% !important;
    margin: 0.75rem auto !important;
    padding: 0.75rem 1rem !important;
  }
 
  .mw-content-container,
  .mw-page-container,
  .vector-page {
    padding: 0 !important;
  }
}
 
/* 3. Typography */
 
/* Base text: Verdana */
body,
body,
.mw-body-content,
.mw-body-content,
Line 76: Line 46:
.mw-parser-output {
.mw-parser-output {
   font-family: Verdana, Geneva, sans-serif !important;
   font-family: Verdana, Geneva, sans-serif !important;
   font-size: 15px !important;
   font-size: 15px;
   line-height: 1.55;
   line-height: 1.55;
   color: var(--color-base);
   color: var(--color-base);
}
/* Slightly smaller on small phones */
@media (max-width: 720px) {
  body,
  .mw-body-content,
  .vector-body,
  .mw-content-ltr,
  .mw-parser-output {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
}
}


Line 99: Line 57:
.mw-body h2,
.mw-body h2,
.mw-body h3,
.mw-body h3,
.mw-body h4,
.mw-body h4 {
.mw-body h1 .mw-headline,
.mw-body h2 .mw-headline,
.mw-body h3 .mw-headline,
.mw-body h4 .mw-headline {
   font-family: Verdana, Geneva, sans-serif !important;
   font-family: Verdana, Geneva, sans-serif !important;
   font-weight: 400 !important;
   font-weight: 400;
   letter-spacing: 0.1px;
   letter-spacing: 0.1px;
   line-height: 1.25;
   line-height: 1.25;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
   color: var(--color-base);
   color: var(--color-base);
}
}


/* Heading underline rules */
.mw-body h1,
.mw-body h1,
.mw-body h2 {
.mw-body h2 {
Line 123: Line 73:
}
}


/* Slightly tighter on small screens */
/* Links */
@media (max-width: 600px) {
  .mw-body h1,
  .mw-body h2 {
    margin-top: 0.9em;
    margin-bottom: 0.4em;
  }
 
  #firstHeading,
  .mw-page-title-main {
    font-size: 1.4em !important;
  }
 
  .mw-body h1 {
    font-size: 1.3em !important;
  }
 
  .mw-body h2 {
    font-size: 1.15em !important;
  }
}
 
/* Paragraphs & lists */
.mw-body-content {
  padding: 0.85rem 1.1rem;
}
 
.mw-body-content p {
  margin: 0.9em 0;
}
 
.mw-body-content ul,
.mw-body-content ol {
  margin: 0.55em 0 0.85em 1.6em;
}
 
/* Slightly less indent on phones */
@media (max-width: 480px) {
  .mw-body-content ul,
  .mw-body-content ol {
    margin-left: 1.2em;
  }
}
 
/* Fix “mystery dot” issue from any gadgets/templates */
.mw-body-content li::before {
  content: none !important;
}
 
/* 4. Links */
 
a,
a,
a:visited {
a:visited {
   color: var(--color-link, #36c) !important;
   color: var(--color-link) !important;
}
}


Line 186: Line 86:
a.new,
a.new,
a.new:visited {
a.new:visited {
   color: var(--color-link-new, #d33) !important;
   color: var(--color-link-new) !important;
}
}


a.new:hover {
a.new:hover {
   color: #b00000 !important;
   color: #b00000 !important;
  text-decoration: underline;
}
}


/* 5. Cards: TOC, tables, infobox, navbox, worldbox */
/* Paragraphs & lists */
.mw-body-content p {
  margin: 0.9em 0;
}
 
.mw-body-content ul,
.mw-body-content ol {
  margin: 0.55em 0 0.85em 1.6em;
}


/* Parchment cards */
#toc,
#toc,
.toc,
.toc,
Line 206: Line 114:
   background: var(--card-bg);
   background: var(--card-bg);
   border: 1px solid var(--card-border);
   border: 1px solid var(--card-border);
  border-radius: 0;
   box-shadow: 0 1px 3px rgba(0,0,0,0.08);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
}


/* TOC block */
/* TOC */
#toc,
#toc,
.toc {
.toc {
Line 218: Line 125:
#toc .toctitle {
#toc .toctitle {
   color: #5b4a22;
   color: #5b4a22;
}
#toc ul {
  margin-left: 1.2em;
}
/* Make TOC a full-width block on smaller screens */
@media (max-width: 1100px) {
  #toc,
  .toc {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem 0 !important;
    box-sizing: border-box;
  }
}
}


Line 255: Line 145:
}
}


/* Allow wide tables to scroll horizontally on small screens */
/* Infobox / navbox on desktop: float right */
@media (max-width: 900px) {
  .mw-body-content .wikitable {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
 
/* Infobox / navbox / worldnav: desktop */
.infobox,
.infobox,
.navbox,
.navbox,
.metadata,
.metadata,
.worldnav,
.worldnav {
.worldbox {
   float: right;
   float: right;
   clear: right;
   clear: right;
   width: 340px;
   width: 320px;
   max-width: 42%;
   max-width: 40%;
   margin: 0 0 12px 18px;
   margin: 0 0 12px 18px;
   padding: 6px;
   padding: 6px;
Line 280: Line 159:
}
}


/* Infobox / navbox / worldnav: mobile (stacked) */
/* Footer */
.mw-footer {
  background: transparent;
  border-top: 1px solid #d6c796;
  color: #6e5d33;
  padding: 0.75rem 1.5rem;
}
 
/* ===========================
  MOBILE OVERRIDES
  =========================== */
 
/* Under 900px: no left sidebar, content full width, cards stacked */
@media (max-width: 900px) {
@media (max-width: 900px) {
  /* hide classic Vector sidebar */
  .mw-panel {
    display: none !important;
  }
  #content,
  .mw-body,
  .mw-body-content,
  .vector-body {
    max-width: 100% !important;
    margin: 0.75rem auto !important;
    padding: 0.75rem 0.9rem !important;
  }
  /* stack cards */
   .infobox,
   .infobox,
   .navbox,
   .navbox,
   .metadata,
   .metadata,
   .worldnav,
   .worldnav {
  .worldbox {
     float: none !important;
     float: none !important;
     clear: both !important;
     clear: both !important;
Line 292: Line 197:
     max-width: 100% !important;
     max-width: 100% !important;
     margin: 0.5rem 0 1rem 0 !important;
     margin: 0.5rem 0 1rem 0 !important;
     padding: 0.6rem 0.75rem !important;
  }
 
  /* TOC full-width */
  #toc,
  .toc {
     float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem 0 !important;
     box-sizing: border-box;
     box-sizing: border-box;
   }
   }
}


/* Extra-tight on very small phones */
  /* tables scroll horizontally instead of blowing layout */
@media (max-width: 480px) {
   .mw-body-content .wikitable {
   .infobox,
    display: block;
  .navbox,
     width: 100%;
  .metadata,
     overflow-x: auto;
  .worldnav,
     -webkit-overflow-scrolling: touch;
  .worldbox {
     margin-left: 0;
     margin-right: 0;
     padding: 0.6rem 0.5rem;
   }
   }
}
}


/* 6. Vector 2022 sidebar TOC (blue column) – hide on mobile */
/* Under 600px: slightly smaller text & tighter headings */
@media (max-width: 600px) {
  body,
  .mw-body-content,
  .vector-body,
  .mw-content-ltr,
  .mw-parser-output {
    font-size: 14px;
    line-height: 1.5;
  }


@media (max-width: 1100px) {
   #firstHeading,
   .vector-toc,
   .mw-page-title-main {
   .vector-toc-pinned-container,
     font-size: 1.4em !important;
  .vector-toc-pinnable-header {
     display: none !important;
   }
   }
}


/* 7. Titlebar & chrome */
  .mw-body h1 {
    font-size: 1.3em !important;
  }


.vector-page-titlebar {
  .mw-body h2 {
  padding: 6px 0;
    font-size: 1.15em !important;
}
  }


/* Sidebar container stays transparent */
   .mw-body-content ul,
.vector-feature-zebra-design-enabled .vector-sidebar-container {
   .mw-body-content ol {
   background: transparent;
     margin-left: 1.2em;
}
 
/* Footer */
.mw-footer {
  background: transparent;
  border-top: 1px solid #d6c796;
  color: #6e5d33;
  padding-top: 0.75rem;
}
 
@media (max-width: 480px) {
   .mw-footer {
     font-size: 0.85em;
   }
   }
}
}

Revision as of 15:34, 15 November 2025

/* ===== Sun Keeperverse – clean, mobile-first ===== */

/* Stop browsers from auto-resizing text */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Colors */
:root {
  color-scheme: light !important;
  --color-base: #2b2414;
  --color-link: #36c;
  --color-link-new: #d33;
  --card-bg: #efe3c1;
  --card-border: #c9b172;
}

/* Base canvas */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff !important;
  color: var(--color-base) !important;
}

/* Main content box */
#content,
.mw-body,
.mw-body-content,
.vector-body {
  box-sizing: border-box;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Typography */
body,
.mw-body-content,
.vector-body,
.mw-content-ltr,
.mw-parser-output {
  font-family: Verdana, Geneva, sans-serif !important;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-base);
}

/* Headings */
.mw-page-title-main,
#firstHeading,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4 {
  font-family: Verdana, Geneva, sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.25;
  color: var(--color-base);
}

.mw-body h1,
.mw-body h2 {
  border-bottom: 2px solid #d6c796;
  padding-bottom: 0.45rem;
  margin-bottom: 0.6rem;
  margin-top: 1.2em;
}

/* Links */
a,
a:visited {
  color: var(--color-link) !important;
}

a:hover {
  color: #547c4b !important;
  text-decoration: underline;
}

a.new,
a.new:visited {
  color: var(--color-link-new) !important;
}

a.new:hover {
  color: #b00000 !important;
}

/* Paragraphs & lists */
.mw-body-content p {
  margin: 0.9em 0;
}

.mw-body-content ul,
.mw-body-content ol {
  margin: 0.55em 0 0.85em 1.6em;
}

/* Parchment cards */
#toc,
.toc,
.wikitable,
.infobox,
.navbox,
.metadata,
.worldbox,
.worldnav {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* TOC */
#toc,
.toc {
  padding: 0.5em 0.75em;
}

#toc .toctitle {
  color: #5b4a22;
}

/* Tables */
.wikitable th,
.wikitable td {
  padding: 0.5em 0.75em;
}

.wikitable > tr > th,
.wikitable > * > tr > th {
  background: #e6d7a8;
  border: 1px solid var(--card-border);
  color: var(--color-base);
}

.wikitable > tr > td,
.wikitable > * > tr > td {
  border: 1px solid #ddc996;
}

/* Infobox / navbox on desktop: float right */
.infobox,
.navbox,
.metadata,
.worldnav {
  float: right;
  clear: right;
  width: 320px;
  max-width: 40%;
  margin: 0 0 12px 18px;
  padding: 6px;
  box-sizing: border-box;
}

/* Footer */
.mw-footer {
  background: transparent;
  border-top: 1px solid #d6c796;
  color: #6e5d33;
  padding: 0.75rem 1.5rem;
}

/* ===========================
   MOBILE OVERRIDES
   =========================== */

/* Under 900px: no left sidebar, content full width, cards stacked */
@media (max-width: 900px) {
  /* hide classic Vector sidebar */
  .mw-panel {
    display: none !important;
  }

  #content,
  .mw-body,
  .mw-body-content,
  .vector-body {
    max-width: 100% !important;
    margin: 0.75rem auto !important;
    padding: 0.75rem 0.9rem !important;
  }

  /* stack cards */
  .infobox,
  .navbox,
  .metadata,
  .worldnav {
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem 0 !important;
  }

  /* TOC full-width */
  #toc,
  .toc {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem 0 !important;
    box-sizing: border-box;
  }

  /* tables scroll horizontally instead of blowing layout */
  .mw-body-content .wikitable {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Under 600px: slightly smaller text & tighter headings */
@media (max-width: 600px) {
  body,
  .mw-body-content,
  .vector-body,
  .mw-content-ltr,
  .mw-parser-output {
    font-size: 14px;
    line-height: 1.5;
  }

  #firstHeading,
  .mw-page-title-main {
    font-size: 1.4em !important;
  }

  .mw-body h1 {
    font-size: 1.3em !important;
  }

  .mw-body h2 {
    font-size: 1.15em !important;
  }

  .mw-body-content ul,
  .mw-body-content ol {
    margin-left: 1.2em;
  }
}