MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
EruIluvatar (talk | contribs) No edit summary Tag: Reverted |
EruIluvatar (talk | contribs) No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* | /* 1. Containers: Force 120px Width */ | ||
#mw-panel, | |||
.vector-legacy-sidebar, | |||
#p-logo { | |||
width: 120px !important; | |||
} | |||
/* | /* 2. Sidebar Positioning & Vertical Tightening */ | ||
#mw-panel { | #mw-panel { | ||
position: absolute !important; | position: absolute !important; | ||
top: 0 !important; | top: 0 !important; | ||
padding-left: 0 !important; | |||
} | } | ||
/* | /* Fix the Logo Gap: Force height and remove bottom padding */ | ||
# | #p-logo { | ||
margin- | height: 110px !important; /* Image (100px) + small 10px buffer */ | ||
margin-bottom: 0 !important; | |||
padding-bottom: 0 !important; | |||
} | } | ||
/* 3. Shift | /* 3. Content Shift */ | ||
#left-navigation { | #content, #mw-head-base, #mw-page-base, #footer, #left-navigation, | ||
.skin-vector-legacy #content { | |||
margin-left: 120px !important; | margin-left: 120px !important; | ||
} | } | ||
/* 4. Logo | /* 4. The Logo Image */ | ||
.mw-wiki-logo { | .mw-wiki-logo { | ||
width: 100px !important; | width: 100px !important; | ||
height: 100px !important; | height: 100px !important; | ||
background-size: contain !important; | background-size: contain !important; | ||
background-position: left center !important; | background-position: left center !important; | ||
background-repeat: no-repeat !important; | background-repeat: no-repeat !important; | ||
margin-left: 10px !important; | margin-left: 10px !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* 5. Sidebar Links: | /* 5. Sidebar Links: Remove the top gap */ | ||
#mw-panel .portal { | #mw-panel .portal { | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: | padding: 5px 0 0 10px !important; /* Small 5px gap between logo and links */ | ||
text-align: left !important; | text-align: left !important; | ||
} | } | ||
#mw-panel .portal h3 { | #mw-panel .portal h3 { | ||
font-size: 0.75em !important; | font-size: 0.75em !important; | ||
margin | margin: 0.5em 0 !important; | ||
padding: 0 !important; | |||
} | } | ||
| Line 54: | Line 54: | ||
padding: 0 !important; | padding: 0 !important; | ||
list-style: none !important; | list-style: none !important; | ||
} | } | ||
#mw-panel .portal .body ul li { | #mw-panel .portal .body ul li { | ||
font-size: 0.8em !important; | font-size: 0.8em !important; | ||
line-height: 1.2em !important; | line-height: 1.2em !important; | ||
margin: 0. | margin: 0.3em 0 !important; | ||
} | } | ||
Revision as of 08:18, 7 January 2026
/* 1. Containers: Force 120px Width */
#mw-panel,
.vector-legacy-sidebar,
#p-logo {
width: 120px !important;
}
/* 2. Sidebar Positioning & Vertical Tightening */
#mw-panel {
position: absolute !important;
top: 0 !important;
padding-left: 0 !important;
}
/* Fix the Logo Gap: Force height and remove bottom padding */
#p-logo {
height: 110px !important; /* Image (100px) + small 10px buffer */
margin-bottom: 0 !important;
padding-bottom: 0 !important;
}
/* 3. Content Shift */
#content, #mw-head-base, #mw-page-base, #footer, #left-navigation,
.skin-vector-legacy #content {
margin-left: 120px !important;
}
/* 4. The Logo Image */
.mw-wiki-logo {
width: 100px !important;
height: 100px !important;
background-size: contain !important;
background-position: left center !important;
background-repeat: no-repeat !important;
margin-left: 10px !important;
display: block !important;
}
/* 5. Sidebar Links: Remove the top gap */
#mw-panel .portal {
margin: 0 !important;
padding: 5px 0 0 10px !important; /* Small 5px gap between logo and links */
text-align: left !important;
}
#mw-panel .portal h3 {
font-size: 0.75em !important;
margin: 0.5em 0 !important;
padding: 0 !important;
}
#mw-panel .portal .body ul {
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
#mw-panel .portal .body ul li {
font-size: 0.8em !important;
line-height: 1.2em !important;
margin: 0.3em 0 !important;
}