MediaWiki:Common.css: Difference between revisions

added mobile support
made sidebar navigation sticky while scrolling
Line 847: Line 847:
     }
     }


     /* Sidebar: starts at top:0 so logo naturally overlaps the banner */
     /* Sidebar: fixed to the viewport so it stays visible while the page
      content scrolls, instead of scrolling away with it. */
     #mw-panel {
     #mw-panel {
         position: absolute !important;
         position: fixed !important;
         top: 0 !important;
         top: 0 !important;
         left: 0 !important;
         left: 0 !important;
         width: 165px !important;
         width: 165px !important;
        height: 100vh !important;
        overflow-y: auto !important;
         padding-top: 0 !important;
         padding-top: 0 !important;
         z-index: 10 !important;
         z-index: 10 !important;