MediaWiki:Common.css

From Bose Portable PA Knowledge
Revision as of 23:17, 31 March 2026 by ST (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================================================
   MediaWiki:Common.css — cleaned site-wide styles
   Fallback mobile menu styles are appended at the end
   ========================================================= */
/* ---------- Gotham fonts (restore .otf first; add woff2/woff if available) ---------- */
/* If your working fonts were the .otf files you had before, these URLs match that setup. */
@font-face {
  font-family: "Gotham-Book";
  src: url("/styles/Gotham-Book.otf") format("truetype"),
       url("/styles/Gotham-Book.woff2") format("woff2"),
       url("/styles/Gotham-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham-Bold";
  src: url("/styles/Gotham-Bold.otf") format("truetype"),
       url("/styles/Gotham-Bold.woff2") format("woff2"),
       url("/styles/Gotham-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham-Black";
  src: url("/styles/Gotham-Black.otf") format("truetype"),
       url("/styles/Gotham-Black.woff2") format("woff2"),
       url("/styles/Gotham-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham-BookItalic";
  src: url("/styles/Gotham-BookItalic.otf") format("truetype"),
       url("/styles/Gotham-BookItalic.woff2") format("woff2"),
       url("/styles/Gotham-BookItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gotham-BoldItalic";
  src: url("/styles/Gotham-BoldItalic.otf") format("truetype"),
       url("/styles/Gotham-BoldItalic.woff2") format("woff2"),
       url("/styles/Gotham-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Base typography ---------- */
body {
  font-family: "Gotham-Book", Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 1366px;
  color: #202122;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif;
  color: inherit;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

/* ---------- Headline block ---------- */
.mw-headline {
  font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif;
  background: #ffffff;
  padding: 4px;
  width: auto;
  display: inline-block;
}

/* ---------- Utility ---------- */
.structuredData { display: none; }
td { vertical-align: top; }

/* ---------- Hide specific page title ---------- */
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-view h1.firstHeading,
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-submit h1.firstHeading {
  display: none;
}

/* ---------- Responsive images ---------- */
img {
  max-width: 100%;
  height: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ---------- Responsive TOC container ---------- */
.tocdiv {
  max-width: 1366px;
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: minmax(100px, auto);
}

/* ---------- Responsive iframe (YouTube etc.) ---------- */
@media screen and (max-width: 750px) {
  iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* ---------- Power characters font ---------- */
@font-face {
  font-family: 'power_symbols';
  src: url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff2') format('woff2'),
       url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff') format('woff'),
       url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.power { font-family: 'power_symbols'; font-style: normal; }

/* ---------- Link colors (LVHA order) ---------- */
.mw-body-content a:link { color: #0645AD; }
.mw-body-content a:visited { color: #551A8B; }
.mw-body-content a:hover { color: #0B0080; text-decoration: underline; }
.mw-body-content a:active { color: #C00000; }

/* Special link types */
.mw-body-content a.new { color: #CC0000; }
.mw-body-content a.external,
.mw-body-content a.extiw { color: #3366BB; }
.mw-body-content a.stub { color: #772233; }

/* ---------- L1 comparison table container ---------- */
.mw-parser-output .l1-compare-wrap {
  display: block;
  overflow-x: auto;
  width: 100%;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

/* Desktop-only: allow very wide comparison table without breaking mobile */
@media (min-width: 1200px) {
  .mw-parser-output .l1-compare-wrap table.l1-compare {
    white-space: nowrap;
    width: max-content;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
  }
}

/* Sticky header row for comparison table */
.mw-parser-output .l1-compare-wrap table.l1-compare th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  color: #202122;
  z-index: 10;
}

/* Sticky first column */
.mw-parser-output .l1-compare-wrap table.l1-compare th:first-child,
.mw-parser-output .l1-compare-wrap table.l1-compare td:first-child {
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 9;
  border-right: 1px solid #a2a9b1;
}

/* ---------- Hover image popup ---------- */
.hover-image-wrapper { position: relative; display: inline-block; cursor: help; }
.hover-image-popup {
  position: absolute;
  top: 1.2em;
  left: 0;
  z-index: 9999;
  background: #fff;
  padding: 4px;
  border: 1px solid #ccc;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}
.hover-image-wrapper:hover .hover-image-popup {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Mobile: hide desktop sidebar and adjust content spacing ---------- */
@media (max-width: 800px) {
  #mw-panel, .mw-sidebar, .vectorSidebar { display: none !important; }
  #content, #mw-content-text { margin-left: 0 !important; padding-left: 1rem !important; }
}

/* ---------- Small accessibility and touch improvements ---------- */
a, button {
  -webkit-tap-highlight-color: rgba(0,0,0,0.06);
  touch-action: manipulation;
}

/* ---------- Minor visual polish ---------- */
blockquote {
  border-left: 4px solid #e1e4e8;
  padding-left: 1rem;
  color: #333;
}
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  background: #f6f8fa;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
}

/* =========================================================
   Fallback mobile menu styles (appended)
   Activates only when the JS fallback injects the menu
   ========================================================= */

@media (max-width: 800px) {
  .fallback-mobile-hamburger {
    position: fixed;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 6px;
    border: none;
    font-size: 22px;
    text-decoration: none;
    cursor: pointer;
  }

  .fallback-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 56px;
  }

  .fallback-mobile-panel {
    background: #fff;
    width: 84%;
    max-width: 320px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    padding: 0.5rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fallback-mobile-panel a {
    display: block;
    padding: 0.75rem 1rem;
    color: #0645AD;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }

  .fallback-mobile-panel a:focus,
  .fallback-mobile-panel a:hover {
    background: #f6f8fb;
    outline: none;
  }

  .fallback-mobile-close {
    display: block;
    padding: 0.5rem;
    text-align: right;
    font-size: 18px;
    color: #333;
  }
}