MediaWiki:Common.css: Difference between revisions
From Descendants of Darkness Wiki
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* Ensure | /* Ensure top navigation bar is always visible */ | ||
#mw-navbar { | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
z-index: 1000; | |||
/* Add any other styles for the top navigation bar */ | |||
} | |||
/* Adjust the spacing for the main content area */ | |||
.col-12.col-md-9.col-xl-9.py-md-3.px-md-5 { | |||
margin-left: 240px; | |||
padding-top: 120px; /* Increase the top padding to account for the fixed top navigation bar and "Actions" and "Tools" bar */ | |||
position: relative; | |||
} | |||
/* Styles for the sidebar */ | |||
#mw-navigation { | #mw-navigation { | ||
z-index: | z-index: 999; /* Ensure sidebar appears below the top navigation bar */ | ||
overflow-y: auto; /* Enable scrolling for the sidebar */ | overflow-y: auto; /* Enable scrolling for the sidebar */ | ||
height: calc(100vh - | height: calc(100vh - 176px); /* Adjust height to fit viewport minus header height, top navigation bar height, and "Actions" and "Tools" bar height */ | ||
position: fixed; | position: fixed; | ||
top: | top: 120px; /* Adjust the top position based on the top navigation bar height and "Actions" and "Tools" bar height */ | ||
bottom: 0; | bottom: 0; | ||
width: 220px; /* Adjust the width of the sidebar */ | width: 220px; /* Adjust the width of the sidebar */ | ||
| Line 14: | Line 31: | ||
width: 8px; /* Width of the scrollbar */ | width: 8px; /* Width of the scrollbar */ | ||
} | } | ||
#mw-navigation::-webkit-scrollbar-track { | #mw-navigation::-webkit-scrollbar-track { | ||
background: #f1f1f1; /* Color of the scrollbar track */ | background: #f1f1f1; /* Color of the scrollbar track */ | ||
} | } | ||
#mw-navigation::-webkit-scrollbar-thumb { | #mw-navigation::-webkit-scrollbar-thumb { | ||
background: #888; /* Color of the scrollbar thumb */ | background: #888; /* Color of the scrollbar thumb */ | ||
} | } | ||
#mw-navigation::-webkit-scrollbar-thumb:hover { | #mw-navigation::-webkit-scrollbar-thumb:hover { | ||
background: #555; /* Color of the scrollbar thumb on hover */ | background: #555; /* Color of the scrollbar thumb on hover */ | ||
} | } | ||
/* Fix the position of the "Actions" and "Tools" bar */ | /* Fix the position of the "Actions" and "Tools" bar */ | ||
aside { | aside { | ||
position: | position: fixed; /* Change position to fixed */ | ||
top: | top: 56px; /* Align below the top navigation bar */ | ||
left: 0; /* | left: 0; | ||
right: 0; /* Span the entire width */ | |||
z-index: 1000; | z-index: 1000; | ||
background-color: #fff; /* Add a background color to the bar */ | background-color: #fff; /* Add a background color to the bar */ | ||
padding: 10px; /* Add some padding for spacing */ | padding: 10px; /* Add some padding for spacing */ | ||
} | } | ||
Revision as of 19:12, 4 April 2024
/* Ensure top navigation bar is always visible */
#mw-navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
/* Add any other styles for the top navigation bar */
}
/* Adjust the spacing for the main content area */
.col-12.col-md-9.col-xl-9.py-md-3.px-md-5 {
margin-left: 240px;
padding-top: 120px; /* Increase the top padding to account for the fixed top navigation bar and "Actions" and "Tools" bar */
position: relative;
}
/* Styles for the sidebar */
#mw-navigation {
z-index: 999; /* Ensure sidebar appears below the top navigation bar */
overflow-y: auto; /* Enable scrolling for the sidebar */
height: calc(100vh - 176px); /* Adjust height to fit viewport minus header height, top navigation bar height, and "Actions" and "Tools" bar height */
position: fixed;
top: 120px; /* Adjust the top position based on the top navigation bar height and "Actions" and "Tools" bar height */
bottom: 0;
width: 220px; /* Adjust the width of the sidebar */
}
/* Style the scrollbar for the sidebar */
#mw-navigation::-webkit-scrollbar {
width: 8px; /* Width of the scrollbar */
}
#mw-navigation::-webkit-scrollbar-track {
background: #f1f1f1; /* Color of the scrollbar track */
}
#mw-navigation::-webkit-scrollbar-thumb {
background: #888; /* Color of the scrollbar thumb */
}
#mw-navigation::-webkit-scrollbar-thumb:hover {
background: #555; /* Color of the scrollbar thumb on hover */
}
/* Fix the position of the "Actions" and "Tools" bar */
aside {
position: fixed; /* Change position to fixed */
top: 56px; /* Align below the top navigation bar */
left: 0;
right: 0; /* Span the entire width */
z-index: 1000;
background-color: #fff; /* Add a background color to the bar */
padding: 10px; /* Add some padding for spacing */
}