MediaWiki:Common.css: Difference between revisions

From Evidence Driven Dev
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* ==========================================================================
/* 1. Containers: Force 120px Width */
  SIDEBAR & LOGO (Narrow, Centered Column, Left-Aligned Content)
#mw-panel,  
  ========================================================================== */
.vector-legacy-sidebar,  
#p-logo {
    width: 120px !important;
}


/* 1. Reset Sidebar Container */
/* 2. Sidebar Positioning & Vertical Tightening */
#mw-panel {  
#mw-panel {
    width: 120px !important;
    padding-left: 0 !important;
     position: absolute !important;
     position: absolute !important;
     top: 0 !important;
     top: 0 !important;
    padding-left: 0 !important;
}
}


/* 2. Shift Layout to match 120px width */
/* Fix the Logo Gap: Force height and remove bottom padding */
#content, #mw-head-base, #mw-page-base, #footer {  
#p-logo {
     margin-left: 120px !important;  
    height: 110px !important; /* Image (100px) + small 10px buffer */
     margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
}


/* 3. Shift Header Tabs */
/* 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: Positioned 10px from the left */
/* 4. The Logo Image */
#p-logo {
    width: 120px !important;
    height: 110px !important;
    display: block !important;
}
 
.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; /* Left oriented */
     background-position: left center !important;
     background-repeat: no-repeat !important;
     background-repeat: no-repeat !important;
     margin-left: 10px !important; /* The left gutter */
     margin-left: 10px !important;  
     display: block !important;
     display: block !important;
}
}


/* 5. Sidebar Links: Left-Aligned with 10px padding */
/* 5. Sidebar Links: Remove the top gap */
#mw-panel .portal {
#mw-panel .portal {
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 0 0 10px !important; /* 10px padding on the left */
     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; /* Shrink headers to fit narrow lane */
     font-size: 0.75em !important;
     margin-bottom: 0.5em !important;
     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;
    text-align: left !important;
}
}


#mw-panel .portal .body ul li {
#mw-panel .portal .body ul li {
     font-size: 0.8em !important; /* Shrink text to prevent ugly wrapping */
     font-size: 0.8em !important;
     line-height: 1.2em !important;
     line-height: 1.2em !important;
     margin: 0.4em 0 !important;
     margin: 0.3em 0 !important;
}
 
 
/* 1. Shrink the sidebar by its specific legacy class */
.vector-legacy-sidebar {
    width: 120px !important;
}
 
/* 2. Force the content area to align with the 120px sidebar */
/* We target the skin-vector-legacy body class to ensure we beat the default margin */
.skin-vector-legacy #content,
.skin-vector-legacy #footer,
.skin-vector-legacy #mw-head-base,
.skin-vector-legacy #left-navigation {
    margin-left: 120px !important;
}
 
/* 3. Ensure the logo respects the new 120px container on these pages */
.vector-legacy-sidebar #p-logo {
    width: 120px !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;
}