MediaWiki:Common.css: Difference between revisions

From Emmy The Robot Fandom Wiki
Content added Content deleted
No edit summary
No edit summary
Line 55: Line 55:
}
}


#mw-site-navigation,
#mw-site-navigation {
position: fixed; /* Change from static to fixed */
top: 0; /* Ensures it sticks to the top of the viewport */
max-height: 100vh; /* Limit the maximum height to viewport height */
overflow-y: auto; /* Add a vertical scrollbar if needed */
}

div#mw-related-navigation {
div#mw-related-navigation {
position: fixed; /* Change from static to fixed */
position: fixed; /* Change from static to fixed */
Line 61: Line 67:
max-height: 100vh; /* Limit the maximum height to viewport height */
max-height: 100vh; /* Limit the maximum height to viewport height */
overflow-y: auto; /* Add a vertical scrollbar if needed */
overflow-y: auto; /* Add a vertical scrollbar if needed */
right 0; /*right side */
}
}