MediaWiki:Vector.css

From PoliticalSG
Revision as of 17:19, 16 November 2024 by SGPolitico (talk | contribs) (Created page with "→‎All CSS here will be loaded for users of the Vector skin: .sidebar-toc { padding: 10px; background-color: #f9f9f9; border: 1px solid #ccc; border-radius: 4px; margin-top: 10px; } .sidebar-toc ul { list-style: none; padding-left: 0; } .sidebar-toc ul li { margin-left: 0; padding: 5px 0; } .sidebar-toc { position: sticky; top: 10px; →‎Adjust as needed: max-height: calc(100vh - 20px); overflow-y: auto; }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* All CSS here will be loaded for users of the Vector skin */

.sidebar-toc {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 10px;
}
.sidebar-toc ul {
    list-style: none;
    padding-left: 0;
}
.sidebar-toc ul li {
    margin-left: 0;
    padding: 5px 0;
}

.sidebar-toc {
    position: sticky;
    top: 10px; /* Adjust as needed */
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}