MediaWiki:Common.css: Difference between revisions

From Emmy The Robot Fandom Wiki
Content deleted Content added
No edit summary
No edit summary
Line 54: Line 54:
.mw-body h6 {
.mw-body h6 {
font-family: LifeSavers-Bold;
font-family: LifeSavers-Bold;
}

/* Sidebar scrolling */

/* For WebKit (Chrome, Safari, Opera) */
#mw-site-navigation::-webkit-scrollbar {
width: 8px; /* width of the scrollbar */
}

#mw-site-navigation::-webkit-scrollbar-thumb {
background-color: #888; /* color of the thumb */
border-radius: 4px; /* roundness of the thumb */
}

#mw-site-navigation::-webkit-scrollbar-track {
background-color: #f1f1f1; /* color of the track */
}

/* For Firefox */
#mw-site-navigation {
scrollbar-width: thin; /* "thin", "auto", or "none" */
}

/* For Internet Explorer and Edge */
#mw-site-navigation {
-ms-overflow-style: none; /* hides scrollbar in IE and Edge */
}
}


Line 65: Line 91:
div#mw-related-navigation {
div#mw-related-navigation {
position: fixed; /* Change from static to fixed */
position: fixed; /* Change from static to fixed */
top: 200; /* Ensures it sticks to the top of the viewport */
top: 200px; /* Ensures it sticks to the top of the viewport */
max-height: calc(100vh - 200px); /* Adjust max-height to accommodate the change */
max-height: calc(100vh - 200px); /* Adjust max-height to accommodate the change */
overflow-y: auto; /* Add a vertical scrollbar if needed */
overflow-y: auto; /* Add a vertical scrollbar if needed */