MediaWiki:Common.css: Difference between revisions

From Evidence Driven Dev
Jump to navigation Jump to search
No edit summary
Tag: Reverted
Undo revision 22 by EruIluvatar (talk)
Tag: Undo
Line 1: Line 1:
/* 1. Force the Sidebar to the far left and lock width */
/* ==========================================================================
#mw-panel {
  SIDEBAR & LOGO (Narrow, Centered Column, Left-Aligned Content)
  ========================================================================== */
 
/* 1. Reset Sidebar Container */
#mw-panel {  
    width: 120px !important;
    padding-left: 0 !important;
     position: absolute !important;
     position: absolute !important;
     left: 0 !important;
     top: 0 !important;
    width: 120px !important;
}
    padding: 0 !important;
 
     margin: 0 !important;
/* 2. Shift Layout to match 120px width */
    text-align: left !important;
#content, #mw-head-base, #mw-page-base, #footer {
     margin-left: 120px !important;  
}
}


/* 2. Lock the content gap so it doesn't expand on Special Pages */
/* 3. Shift Header Tabs */
body.skin-vector-legacy #content,
#left-navigation {  
body.skin-vector-legacy #mw-head-base,
     margin-left: 120px !important;  
body.skin-vector-legacy #mw-page-base,
body.skin-vector-legacy #footer {
     margin-left: 120px !important;
}
}


/* 3. Align the Logo to the left of the new 120px space */
/* 4. Logo: Positioned 10px from the left */
#p-logo {
#p-logo {
     width: 120px !important;
     width: 120px !important;
     padding: 0 !important;
     height: 110px !important;
     margin: 0 !important;
     display: block !important;
}
}


.mw-wiki-logo {
.mw-wiki-logo {  
     width: 100px !important;
     width: 100px !important;  
     height: 100px !important;
     height: 100px !important;  
     margin-left: 10px !important; /* Margin from the screen edge */
     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;
     margin-left: 10px !important; /* The left gutter */
    display: block !important;
}
}


/* 4. Fix Link alignment inside the sidebar */
/* 5. Sidebar Links: Left-Aligned with 10px padding */
#mw-panel .portal {
#mw-panel .portal {
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 0 0 10px !important; /* Indent links slightly from edge */
     padding: 0 0 0 10px !important; /* 10px padding on the left */
    text-align: left !important;
}
 
#mw-panel .portal h3 {
    font-size: 0.75em !important; /* Shrink headers to fit narrow lane */
    margin-bottom: 0.5em !important;
}
}


#mw-panel .portal .body {
#mw-panel .portal .body ul {
     margin: 0 !important;
     margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
}
#mw-panel .portal .body ul li {
    font-size: 0.8em !important; /* Shrink text to prevent ugly wrapping */
    line-height: 1.2em !important;
    margin: 0.4em 0 !important;
}
}

Revision as of 08:39, 7 January 2026

/* ==========================================================================
   SIDEBAR & LOGO (Narrow, Centered Column, Left-Aligned Content)
   ========================================================================== */

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

/* 2. Shift Layout to match 120px width */
#content, #mw-head-base, #mw-page-base, #footer { 
    margin-left: 120px !important; 
}

/* 3. Shift Header Tabs */
#left-navigation { 
    margin-left: 120px !important; 
}

/* 4. Logo: Positioned 10px from the left */
#p-logo {
    width: 120px !important;
    height: 110px !important;
    display: block !important;
}

.mw-wiki-logo { 
    width: 100px !important; 
    height: 100px !important; 
    background-size: contain !important; 
    background-position: left center !important; /* Left oriented */
    background-repeat: no-repeat !important;
    margin-left: 10px !important; /* The left gutter */
    display: block !important;
}

/* 5. Sidebar Links: Left-Aligned with 10px padding */
#mw-panel .portal {
    margin: 0 !important;
    padding: 0 0 0 10px !important; /* 10px padding on the left */
    text-align: left !important;
}

#mw-panel .portal h3 {
    font-size: 0.75em !important; /* Shrink headers to fit narrow lane */
    margin-bottom: 0.5em !important;
}

#mw-panel .portal .body ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
}

#mw-panel .portal .body ul li {
    font-size: 0.8em !important; /* Shrink text to prevent ugly wrapping */
    line-height: 1.2em !important;
    margin: 0.4em 0 !important;
}