MediaWiki:Common.css: Difference between revisions

From Descendants of Darkness Wiki

No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Ensure top navigation bar is always visible */
/* Descendants of Darkness – bigger logo in left nav    */
#mw-navbar {
.mw-wiki-navigation-logo {
     position: fixed;
     width: 250px !important;     /* overall logo area width */
    top: 0;
     height: 250px !important;     /* overall logo area height */
     left: 0;
    right: 0;
    z-index: 1000;
    /* Add any other styles for the top navigation bar */
}
}


/* Fix the position of the "Actions" and "Tools" bar */
.mw-wiki-navigation-logo .mw-wiki-logo,
aside {
a.mw-wiki-logo {
     position: fixed; /* Make the bar fixed */
     display: block !important;
     top: 56px; /* Adjust the top position to align below the top navigation bar */
     width: 100% !important;       /* fill the container width */
     left: 280px; /* Move the bar slightly to the right */
     height: 100% !important;     /* fill the container height */
     z-index: 999; /* Ensure the bar appears above the main content area */
     background-size: contain !important;
     background-color: #fff; /* Add a background color to the bar */
     background-repeat: no-repeat !important;
     padding: 10px; /* Add some padding for spacing */
     background-position: left center !important;
}
}


/* Adjust the spacing for the main content area */
/* If the menu looks squashed vertically, give the whole nav a bit more height */
.col-12.col-md-9.col-xl-9.py-md-3.px-md-5 {
#site-navigation {
    margin-left: 280px; /* Adjust the margin to accommodate the sidebar */
     min-height: 90px !important;
    padding-top: 0; /* Remove the previous padding-top */
    padding-bottom: 50px; /* Add some bottom padding to allow scrolling */
    position: relative;
    top: 56px; /* Adjust the top position to align below the header and "Actions" and "Tools" bar */
}
 
/* Styles for the sidebar */
#mw-navigation {
     z-index: 998; /* Ensure sidebar appears below the "Actions" and "Tools" bar */
    overflow-y: auto; /* Enable scrolling for the sidebar */
    height: calc(100vh - 136px); /* Adjust height to fit viewport minus top navigation bar height and "Actions" and "Tools" bar height */
    position: fixed;
    top: 56px; /* Align the sidebar with the top navigation bar */
    bottom: 0;
    width: 260px; /* 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 */
}
}

Latest revision as of 07:38, 14 November 2025

/* Descendants of Darkness – bigger logo in left nav    */
.mw-wiki-navigation-logo {
    width: 250px !important;      /* overall logo area width */
    height: 250px !important;      /* overall logo area height */
}

.mw-wiki-navigation-logo .mw-wiki-logo,
a.mw-wiki-logo {
    display: block !important;
    width: 100% !important;       /* fill the container width */
    height: 100% !important;      /* fill the container height */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
}

/* If the menu looks squashed vertically, give the whole nav a bit more height */
#site-navigation {
    min-height: 90px !important;
}