MediaWiki:Common.css: Difference between revisions
mNo edit summary |
m auto hide sidebar < 768 pix |
||
| Line 244: | 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); | |||
} | |||
} | } | ||