MediaWiki:Common.css: Difference between revisions

mNo edit summary
m auto hide sidebar < 768 pix
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
/** CSS placed here will be applied to all skins */
/** CSS placed here will be applied to all skins */


/* -------------------------
  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");
}
}
h1, h2, h3, h4, h5, h6 { font-family:Gotham-Book;  
 
                        /* text-transform: uppercase; */
/* Base typography */
body {
    font-family: "Gotham-Book", Montserrat, sans-serif;
    max-width: 1366px;
}
}
body {font-family:Gotham-Book;Montserrat}


.mw-body h1,.mw-body h2,.mw-body h3, .mw-body h4,.mw-body h5 {font-family:Gotham-Book,Montserrat}
h1, h2, h3, h4, h5, h6 {
    font-family: "Gotham-Book", Montserrat, sans-serif;
    /* text-transform: uppercase; */
}


.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5 {
    font-family: "Gotham-Book", Montserrat, sans-serif;
}


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


.mw-headline
/* Hide structured data block if present */
{
.structuredData {
font-family: "Gotham-Bold","Gotham-Book" , Montserrat, sans-serif;
    display: none;
/*font-size: 14px; */
/*font-weight: bold;*/
/*color: #008080;*/
background:#ffffff;
//background:#cef2e0;
// background-color: #CCFFCC;
// border-radius: 5px;
//border: 1px outset #008080;
padding: 2px;
width: 300px;
}
}
.structuredData {display:none}


td {vertical-align:top}
/* Table cell vertical alignment */
td {
    vertical-align: top;
}


body {
/* ****************** NO TITLE ON MAINPAGE *************** */
max-width:1366px;  
/* 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;
}
}
/* max-width of text on page
body {max-width:1366px;}
html {max-width:1366px;}
.mw-body-content {max-width:1366px;}
*/
*/
 
/* Responsive images */
 
/* ****************** NO TITLE ON MAINPAGE *************** */
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 image sizing */
img {
img {
  max-width: 100%;
    max-width: 100%;
  height: auto;
    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 table of contents with introduction https://medium.freecodecamp.org/how-to-make-your-html-responsive-by-adding-a-single-line-of-css-2a62de81e431 */
/* DivToc: responsive table of contents with introduction */
    .tocdiv {
.tocdiv {
     max-width: 1366px;
     max-width: 1366px;
     display: grid;
     display: grid;
     grid-gap: 15px;
     grid-gap: 15px;
    column-gap: 30px;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     grid-template-columns: repeat(auto-fit, minmax(300px, 4fr));
     grid-template-rows: auto;
    grid-template-rows: repeat(2, 300px);
}
    grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));


/* 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 for youtube videos */
/* Responsive iframe for YouTube videos */
@media screen and (max-width: 750px) {
@media screen and (max-width: 750px) {
     iframe {
     iframe {
Line 101: Line 130:
@font-face {
@font-face {
     font-family: 'power_symbols';
     font-family: 'power_symbols';
     src: url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.ttf') format('ttf'),
     src: url('/fonts/unicode/Unicode_IEC_symbol.woff2') format('woff2'),
         url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff2') format('woff2'),
         url('/fonts/unicode/Unicode_IEC_symbol.woff') format('woff'),
         url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff') format('woff');
         url('/fonts/unicode/Unicode_IEC_symbol.ttf') format('truetype');
     font-weight: normal;
     font-weight: normal;
     font-style: normal;
     font-style: normal;
}
}


.power{
.power {
  font-family: 'power_symbols';
    font-family: 'power_symbols';
  font-style: normal;
    font-style: normal;
}
}


/* standard link colors */
/* ---------- Link colors (LVHA order) ---------- */
.mw-body-content a:link { color: #0000FF; } /* normal unvisited links */
.mw-body-content a:link { color: #0645AD; }
.mw-body-content a:link:visited { color: #0B0080; } /* visited links */
.mw-body-content a:visited { color: #551A8B; }
.mw-body-content a:link:active { color: #FF0000; } /* active links */
.mw-body-content a:hover { color: #0B0080; text-decoration: underline; }
.mw-body-content a:link.new { color: #FF0000; } /* new links */
.mw-body-content a:active { color: #C00000; }
.mw-body-content a:link.extiw { color: #3366BB; } /* interwiki links */
.mw-body-content a:link.external { color: #3366BB; } /* external links */
.mw-body-content a:link.stub { color: #772233; } /* hovered links */
 
.mw-body-content a:link {color: #FF0000}
.mw-body-content a:visited {color: #00FF00}
.mw-body-content a:hover {color: #FF00FF}
.mw-body-content a:active {color: #0000FF}
 
// no right click
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


// l1 comparison table
/* 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 scroll 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;
  overflow-y: visible;
    overflow-y: visible;
  width: 100%;
    width: 100%;
  max-width: 100%;
    max-width: 100%;
  -webkit-overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
  background: #ffffff;
    background: #ffffff;
}
}


/* === CRITICAL OVERRIDE: defeat Vector/Minerva table width clamp === */
/* === CRITICAL OVERRIDE: defeat Vector/Minerva table width clamp === */
.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;  /* ← THIS is the blocker you were hitting */
    max-width: none !important;  /* ensure table can overflow horizontally */
  border-collapse: separate;
    border-collapse: separate;
  border-spacing: 0;
    border-spacing: 0;
}
}


/* === Sticky header row === */
/* === 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;
}
}


Line 172: Line 187:
.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 === */
/* === Image display on hover over text === */
.hover-image-wrapper {
.hover-image-wrapper {
  position: relative;
    position: relative;
  display: inline-block;
    display: inline-block;
  cursor: help;
    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;
    padding: 4px;
    border: 1px solid #ccc;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.15s ease-in-out;
}


  background: #fff;
.hover-image-wrapper:hover .hover-image-popup {
  padding: 4px;
    visibility: visible !important;
  border: 1px solid #ccc;
    opacity: 1 !important;
    pointer-events: auto !important;
}


  visibility: hidden !important;
/* Hide page action tabs for users who are NOT logged in
  opacity: 0 !important;
  Uses body:not(.mw-user) because this site does not use mw-anonuser/logged-in */
  pointer-events: none !important;
body:not(.mw-user) #p-views,
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;
}


  transition: opacity 0.15s ease-in-out;
/* Ensure TOC is visible unless explicitly hidden elsewhere */
#toc, .toc {
    display: block !important;
}
}
 
@media (max-width: 768px) {
.hover-image-wrapper:hover .hover-image-popup {
  .vector-sidebar, .mw-sidebar {
   visibility: visible !important;
    transform: translateX(-100%);
   opacity: 1 !important;
    transition: transform .25s ease;
  pointer-events: auto !important;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 9999;
    background: var(--bg-color, #fff);
    box-shadow: 0 0 12px rgba(0,0,0,.2);
  }
  .vector-sidebar.open {
    transform: translateX(0);
  }
   /* Add space for a toggle button */
  .vector-main-content { padding-left: 0 !important; }
   .sidebar-toggle {
    position: fixed;
    left: 8px;
    top: 8px;
    z-index: 10001;
    background: #fff;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
  }
}
}