MediaWiki:Common.css: Difference between revisions

From PoliticalSG
(Created page with "→‎CSS placed here will be applied to all skins: #mw-panel #toc { position: sticky; 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; }")
 
No edit summary
 
(One intermediate revision by the same user not shown)
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 {
    position: sticky;
    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;
}

Latest revision as of 17:39, 16 November 2024

/* CSS placed here will be applied to all skins */