MediaWiki:Vector.css: Difference between revisions

let's try device width and some better numbers
(Undo revision 26615 by Iritscen (talk))
(let's try device width and some better numbers)
Line 2: Line 2:


/* Fix the sidebar in place when scrolling, as long as we are not on a small screen (e.g. a phone) */
/* Fix the sidebar in place when scrolling, as long as we are not on a small screen (e.g. a phone) */
@media (min-width:632px)
@media (min-device-width:481px)
{
{
   div#mw-panel
   div#mw-panel
   {
   {
     position: fixed;
     position:fixed;
     height: 100%;
     height:100%;
     /* Prevent content overlay when sidewards scrolling */
     /* Prevent content overlay when sidewards scrolling */
     background-color: #F6F6F6;
     background-color:#F6F6F6;
   }
   }
}
}


/* For small screens, fix the sidebar this way to avoid overlap when zooming */
/* For small screens, fix the sidebar this way to avoid overlap when zooming */
@media (max-width:631px)
@media (max-device-width:480px)
{
{
   div#mw-panel
   div#mw-panel
   {
   {
     position: absolute;
     position:absolute;
   }
   }
}
}