MediaWiki:Common.css: Difference between revisions

mNo edit summary
Tag: Reverted
m auto hide sidebar < 768 pix
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =========================================================
/** CSS placed here will be applied to all skins */
  MediaWiki:Common.css — cleaned site-wide styles
  Fallback mobile menu styles are appended at the end
  ========================================================= */


/* ---------- Custom fonts ---------- */
/* -------------------------
  Fonts
  ------------------------- */
@font-face {
@font-face {
  font-family: "Gotham-Black";
    font-family: "Gotham-Black";
  src: url("/styles/Gotham-Black.otf");
    src: url("/styles/Gotham-Black.otf") format("opentype");
}
}
@font-face {
@font-face {
  font-family: "Gotham-BlackItalic";
    font-family: "Gotham-BlackItalic";
  src: url("/styles/Gotham-BlackItalic.otf");
    src: url("/styles/Gotham-BlackItalic.otf") format("opentype");
}
}
@font-face {
@font-face {
  font-family: "Gotham-Bold";
    font-family: "Gotham-Bold";
  src: url("/styles/Gotham-Bold.otf");
    src: url("/styles/Gotham-Bold.otf") format("opentype");
}
}
@font-face {
@font-face {
  font-family: "Gotham-BoldItalic";
    font-family: "Gotham-BoldItalic";
  src: url("/styles/Gotham-BoldItalic.otf");
    src: url("/styles/Gotham-BoldItalic.otf") format("opentype");
}
}
@font-face {
@font-face {
  font-family: "Gotham-Book";
    font-family: "Gotham-Book";
  src: url("/styles/Gotham-Book.otf");
    src: url("/styles/Gotham-Book.otf") format("opentype");
}
}
@font-face {
@font-face {
  font-family: "Gotham-BookItalic";
    font-family: "Gotham-BookItalic";
  src: url("/styles/Gotham-BookItalic.otf");
    src: url("/styles/Gotham-BookItalic.otf") format("opentype");
}
}


 
/* Base typography */
/* ---------- Base typography ---------- */
body {
body {
  font-family: "Gotham-Book", Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: "Gotham-Book", Montserrat, sans-serif;
  max-width: 1366px;
    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 {
h1, h2, h3, h4, h5, h6 {
  font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif;
    font-family: "Gotham-Book", Montserrat, sans-serif;
  color: inherit;
    /* text-transform: uppercase; */
  margin: 0 0 0.5rem 0;
}
  line-height: 1.2;
 
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5 {
    font-family: "Gotham-Book", Montserrat, sans-serif;
}
}


/* ---------- Headline block ---------- */
/* Headline box */
.mw-headline {
.mw-headline {
  font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif;
    font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif;
  background: #ffffff;
    background: #ffffff;
  padding: 4px;
    /* previous alternatives:
  width: auto;
      background: #cef2e0;
  display: inline-block;
      background-color: #CCFFCC;
      border-radius: 5px;
      border: 1px outset #008080;
    */
    padding: 2px;
    width: 300px;
}
}


/* ---------- Utility ---------- */
/* Hide structured data block if present */
.structuredData { display: none; }
.structuredData {
td { vertical-align: top; }
    display: none;
}


/* ---------- Hide specific page title ---------- */
/* Table cell vertical alignment */
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-view h1.firstHeading,
td {
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-submit h1.firstHeading {
    vertical-align: top;
  display: none;
}
}


/* ---------- Responsive images ---------- */
/* ****************** NO TITLE ON MAINPAGE *************** */
/* Adjust page name(s) to match your actual main page slug(s) */
/*
.page-Bose_Portable_PA_Knowledge.action-view h1.firstHeading,
.page-Bose_Portable_PA_Knowledge.action-submit h1.firstHeading {
    display: none;
}
*/
/* Responsive images */
img {
img {
  max-width: 100%;
    max-width: 100%;
  height: auto;
    height: auto;
  -webkit-touch-callout: none;
    -webkit-touch-callout: none;
  -webkit-user-select: none;
    -webkit-user-select: none;
  -khtml-user-select: none;
    -khtml-user-select: none;
  -moz-user-select: none;
    -moz-user-select: none;
  -ms-user-select: none;
    -ms-user-select: none;
  user-select: none;
    user-select: none;
}
}


/* ---------- Responsive TOC container ---------- */
/* DivToc: responsive table of contents with introduction */
.tocdiv {
.tocdiv {
  max-width: 1366px;
    max-width: 1366px;
  display: grid;
    display: grid;
  gap: 15px;
    grid-gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 30px;
  grid-auto-rows: minmax(100px, auto);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
}
 
/* Mobile fix for DivToc layout */
@media screen and (max-width: 700px) {
    .tocdiv {
        display: block !important;
    }
    .tocdiv > div {
        width: 100% !important;
        margin: 0 !important;
    }
}
}


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


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


/* ---------- Link colors (LVHA order) ---------- */
/* ---------- Link colors (LVHA order) ---------- */
Line 121: Line 154:
.mw-body-content a.stub { color: #772233; }
.mw-body-content a.stub { color: #772233; }


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


/* Desktop-only: allow very wide comparison table without breaking mobile */
/* === CRITICAL OVERRIDE: defeat Vector/Minerva table width clamp === */
@media (min-width: 1200px) {
.mw-parser-output .l1-compare-wrap table.l1-compare {
  .mw-parser-output .l1-compare-wrap table.l1-compare {
     white-space: nowrap;
     white-space: nowrap;
     width: max-content;
     width: max-content;
     min-width: 1400px;
     min-width: 1400px;
    max-width: none !important;  /* ensure table can overflow horizontally */
     border-collapse: separate;
     border-collapse: separate;
     border-spacing: 0;
     border-spacing: 0;
  }
}
}


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


/* Sticky first column */
/* === Sticky first column === */
.mw-parser-output .l1-compare-wrap table.l1-compare th:first-child,
.mw-parser-output .l1-compare-wrap table.l1-compare th:first-child,
.mw-parser-output .l1-compare-wrap table.l1-compare td:first-child {
.mw-parser-output .l1-compare-wrap table.l1-compare td:first-child {
  position: sticky;
    position: sticky;
  left: 0;
    left: 0;
  background: #ffffff;
    background: #ffffff;
  z-index: 9;
    z-index: 9;
  border-right: 1px solid #a2a9b1;
    border-right: 1px solid #a2a9b1;
}
 
/* === Image display on hover over text === */
.hover-image-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}
}


/* ---------- Hover image popup ---------- */
.hover-image-wrapper { position: relative; display: inline-block; cursor: help; }
.hover-image-popup {
.hover-image-popup {
  position: absolute;
    position: absolute;
  top: 1.2em;
    top: 1.2em;
  left: 0;
    left: 0;
  z-index: 9999;
    z-index: 9999;
  background: #fff;
    background: #fff;
  padding: 4px;
    padding: 4px;
  border: 1px solid #ccc;
    border: 1px solid #ccc;
  visibility: hidden;
    visibility: hidden !important;
  opacity: 0;
    opacity: 0 !important;
  pointer-events: none;
    pointer-events: none !important;
  transition: opacity 0.15s ease-in-out;
    transition: opacity 0.15s ease-in-out;
}
}
.hover-image-wrapper:hover .hover-image-popup {
.hover-image-wrapper:hover .hover-image-popup {
  visibility: visible;
    visibility: visible !important;
  opacity: 1;
    opacity: 1 !important;
  pointer-events: auto;
    pointer-events: auto !important;
}
 
/* ---------- 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 ---------- */
/* Hide page action tabs for users who are NOT logged in
a, button {
  Uses body:not(.mw-user) because this site does not use mw-anonuser/logged-in */
  -webkit-tap-highlight-color: rgba(0,0,0,0.06);
body:not(.mw-user) #p-views,
  touch-action: manipulation;
body:not(.mw-user) #p-views > ul,
body:not(.mw-user) #p-views > ul > li,
body:not(.mw-user) #left-navigation,
body:not(.mw-user) #right-navigation,
body:not(.mw-user) .vector-page-tools,
body:not(.mw-user) .vector-page-tools .vector-menu-content,
body:not(.mw-user) .vector-page-tools .vector-menu-content > li,
body:not(.mw-user) .vector-menu-tabs,
body:not(.mw-user) .vector-menu-tabs ul,
body:not(.mw-user) .vector-menu-tabs li,
body:not(.mw-user) .minerva-page-actions,
body:not(.mw-user) .minerva-page-actions li,
body:not(.mw-user) .page-actions-menu,
body:not(.mw-user) .page-actions-menu li {
    display: none !important;
}
}


/* ---------- Minor visual polish ---------- */
/* Ensure TOC is visible unless explicitly hidden elsewhere */
blockquote {
#toc, .toc {
  border-left: 4px solid #e1e4e8;
    display: block !important;
  padding-left: 1rem;
  color: #333;
}
}
code, pre {
@media (max-width: 768px) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
   .vector-sidebar, .mw-sidebar {
  background: #f6f8fa;
    transform: translateX(-100%);
  padding: 0.15rem 0.3rem;
    transition: transform .25s ease;
  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;
     position: fixed;
     left: 0.5rem;
     left: 0;
     top: 0.5rem;
     top: 0;
    height: 100%;
     z-index: 9999;
     z-index: 9999;
     width: 44px;
     background: var(--bg-color, #fff);
    height: 44px;
     box-shadow: 0 0 12px rgba(0,0,0,.2);
    display: inline-flex;
  }
    align-items: center;
  .vector-sidebar.open {
     justify-content: center;
     transform: translateX(0);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 6px;
     border: none;
    font-size: 22px;
    text-decoration: none;
    cursor: pointer;
   }
   }
 
  /* Add space for a toggle button */
   .fallback-mobile-overlay {
   .vector-main-content { padding-left: 0 !important; }
  .sidebar-toggle {
     position: fixed;
     position: fixed;
     inset: 0;
     left: 8px;
     background: rgba(0,0,0,0.45);
     top: 8px;
     z-index: 9998;
     z-index: 10001;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 56px;
  }
 
  .fallback-mobile-panel {
     background: #fff;
     background: #fff;
     width: 84%;
     border-radius: 4px;
    max-width: 320px;
     padding: 6px;
     height: 100%;
     box-shadow: 0 1px 4px rgba(0,0,0,.2);
     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;
   }
   }
}
}