MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
#mw-panel #toc {
    top: 10px; /* Distance from the top of the viewport */
    max-height: calc(100vh - 20px); /* Prevent overflow */
    overflow-y: auto; /* Enable scrolling for long TOCs */
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}