MediaWiki:Common.css: Difference between revisions

mNo edit summary
m auto hide sidebar < 768 pix
 
(One intermediate revision by the same user not shown)
Line 79: Line 79:
/* ****************** NO TITLE ON MAINPAGE *************** */
/* ****************** NO TITLE ON MAINPAGE *************** */
/* Adjust page name(s) to match your actual main page slug(s) */
/* 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-view h1.firstHeading,
.page-Bose_Portable_PA_Knowledge.action-submit h1.firstHeading {
.page-Bose_Portable_PA_Knowledge.action-submit h1.firstHeading {
     display: none;
     display: none;
}
}
 
*/
/* Responsive images */
/* Responsive images */
img {
img {
Line 243: Line 244:
#toc, .toc {
#toc, .toc {
     display: block !important;
     display: block !important;
}
@media (max-width: 768px) {
  .vector-sidebar, .mw-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    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);
  }
}
}