MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
} | } | ||
/* Ensure | |||
/* Ensure page uses normal block layout */ | |||
body { | body { | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* | /* Sticky sidebar aligned to the far left */ | ||
#mw-panel { | #mw-panel { | ||
position: fixed; | position: fixed; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; /* Ensure it's at the left edge */ | ||
width: | width: 10.5em; | ||
height: 100vh; | height: 100vh; | ||
overflow-y: auto; | overflow-y: auto; | ||
z-index: 1000; | z-index: 1000; | ||
background: #f8f9fa; /* optional | background: #f8f9fa; /* optional, helps with visual separation */ | ||
border-right: 1px solid #ccc; | border-right: 1px solid #ccc; | ||
} | } | ||
/* | /* Push the rest of the layout to the right to make room */ | ||
#mw-head, | |||
#mw-page-base, | |||
#content, | #content, | ||
#mw-footer { | #mw-footer { | ||
margin-left: | margin-left: 10.5em !important; /* Match sidebar width */ | ||
} | |||
/* Optional: tighten up spacing if you see overlap still */ | |||
#left-navigation, | |||
#right-navigation { | |||
margin-left: 11em; | |||
} | } | ||
Latest revision as of 17:47, 27 June 2025
/* CSS placed here will be applied to all skins */
#footer-poweredbyico,
#f-poweredbyico,
li#footer-info-poweredby {
display: none !important;
}
/* Ensure page uses normal block layout */
body {
display: block !important;
}
/* Sticky sidebar aligned to the far left */
#mw-panel {
position: fixed;
top: 0;
left: 0; /* Ensure it's at the left edge */
width: 10.5em;
height: 100vh;
overflow-y: auto;
z-index: 1000;
background: #f8f9fa; /* optional, helps with visual separation */
border-right: 1px solid #ccc;
}
/* Push the rest of the layout to the right to make room */
#mw-head,
#mw-page-base,
#content,
#mw-footer {
margin-left: 10.5em !important; /* Match sidebar width */
}
/* Optional: tighten up spacing if you see overlap still */
#left-navigation,
#right-navigation {
margin-left: 11em;
}