MediaWiki:Common.css
Revision as of 02:40, 1 July 2025 by Breedcowadmin (talk | contribs)
Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Style the TOC container */ #toc { position: fixed; /* Makes it sticky */ top: 450px; /* Distance from the top of the viewport */ left: 10px; /* Distance from the left of the viewport */ width: 280px; /* Set a fixed width for the TOC */ max-height: 150vh !important; /* Prevent it from overflowing the viewport height */ overflow-y: auto !important; /* Add a scrollbar if the TOC is too long */ background-color: #f9f9f9; /* Optional: Background colour for better visibility */ border: 1px solid #ccc; /* Optional: Add a border */ padding: 10px; /* Optional: Add padding */ z-index: 1000; /* Ensure it stays above other elements */ } /* Add some spacing to the main content to avoid overlap */ body { margin-left: 140px; /* Adjust based on the TOC width */ }