MediaWiki:Minerva.css: Difference between revisions
mNo edit summary |
mNo edit summary Tag: Reverted |
||
| Line 11: | Line 11: | ||
top: 0 !important; | top: 0 !important; | ||
position: relative; | position: relative; | ||
} | |||
/* Force TOC visible on mobile */ | |||
#toc { | |||
display: block !important; | |||
position: static !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
} | |||
@media (max-width: 768px) { | |||
/* Optional: Make TOC easier to scroll on mobile */ | |||
#toc { | |||
max-height: 300px; | |||
overflow-y: auto; | |||
background: white; | |||
padding: 10px; | |||
border: 1px solid #ccc; | |||
} | |||
} | } | ||
Revision as of 03:54, 22 May 2025
/* All CSS here will be loaded for users of the MinervaNeue skin */
/* Mobile override for infobox */
.infobox-float {
float: none !important;
clear: both !important;
margin: 1em auto !important;
display: block !important;
width: auto !important;
max-width: 90% !important;
top: 0 !important;
position: relative;
}
/* Force TOC visible on mobile */
#toc {
display: block !important;
position: static !important;
max-height: none !important;
overflow: visible !important;
}
@media (max-width: 768px) {
/* Optional: Make TOC easier to scroll on mobile */
#toc {
max-height: 300px;
overflow-y: auto;
background: white;
padding: 10px;
border: 1px solid #ccc;
}
}