MediaWiki:Common.css: Difference between revisions

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


#mw-content {
#mw-content {
margin-left: 213px; /* Adjust this value to match the width of #mw-site-navigation */
margin-left: 11%; /* Adjust this value to match the width of #mw-site-navigation */
margin-right: 243px; /* Adjust this value to match the width of #mw-site-navigation */
margin-right: 12.6%; /* Adjust this value to match the width of #mw-site-navigation */
}
}


Line 65: Line 65:
div#mw-related-navigation {
div#mw-related-navigation {
position: fixed; /* Change from static to fixed */
position: fixed; /* Change from static to fixed */
top: 0; /* Ensures it sticks to the top of the viewport */
top: 50; /* Ensures it sticks to the top of the viewport */
max-height: 100vh; /* Limit the maximum height to viewport height */
max-height: calc(100vh - 20px); /* 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 */
right: 0; /*right side */
right: 0; /*right side */