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. Global Width Force - Matches the 'Vector Legacy' grid priority */
/* 1. Reset the box-sizing to ensure padding doesn't add to the width */
.skin-vector-legacy #mw-panel,
#mw-panel, #content, #p-logo {
.skin-vector-legacy #p-logo {
     box-sizing: border-box !important;
     width: 120px !important;
}
}


/* 2. Alignment Fix - Force the content gap to 120px on all pages */
/* 2. Force the sidebar and logo to 120px exactly */
.skin-vector-legacy #content,
#mw-panel {
.skin-vector-legacy #mw-head-base,
    width: 120px !important;
.skin-vector-legacy #footer,
    padding: 0 !important;
.skin-vector-legacy #left-navigation {
     margin: 0 !important;
     margin-left: 120px !important;
}
}


/* 3. Logo Scaling - Shrinks the image and the container height */
#p-logo {
.skin-vector-legacy #p-logo {
    width: 120px !important;
     height: 110px !important;
     height: 110px !important;
     margin-bottom: 0 !important;
     margin-bottom: 0 !important;
}
}


.skin-vector-legacy .mw-wiki-logo {
/* 3. The actual Logo image */
.mw-wiki-logo {
     width: 100px !important;
     width: 100px !important;
     height: 100px !important;
     height: 100px !important;
     margin-left: 10px !important;
     margin-left: 10px !important;
     background-size: contain !important;
     background-size: contain !important;
    background-position: center left !important;
    background-repeat: no-repeat !important;
    display: block !important;
}
}


/* 4. Link Spacing - Keeps them in a vertical list with a 10px gutter */
/* 4. The "Gap" Fix (Content Margin) */
.skin-vector-legacy #mw-panel .portal {
/* We use a high-priority selector to force the gap to 120px */
    margin: 0 !important;
body.skin-vector-legacy #content,
    padding: 0 0 0 10px !important;
body.skin-vector-legacy #mw-head-base,
}
body.skin-vector-legacy #footer {
 
     margin-left: 120px !important;
.skin-vector-legacy #mw-panel .portal h3 {
     font-size: 0.75em !important;
    margin: 0.5em 0 !important;
}
}

Revision as of 08:24, 7 January 2026

/* 1. Reset the box-sizing to ensure padding doesn't add to the width */
#mw-panel, #content, #p-logo {
    box-sizing: border-box !important;
}

/* 2. Force the sidebar and logo to 120px exactly */
#mw-panel {
    width: 120px !important;
    padding: 0 !important;
    margin: 0 !important;
}

#p-logo {
    width: 120px !important;
    height: 110px !important;
    margin-bottom: 0 !important;
}

/* 3. The actual Logo image */
.mw-wiki-logo {
    width: 100px !important;
    height: 100px !important;
    margin-left: 10px !important;
    background-size: contain !important;
}

/* 4. The "Gap" Fix (Content Margin) */
/* We use a high-priority selector to force the gap to 120px */
body.skin-vector-legacy #content,
body.skin-vector-legacy #mw-head-base,
body.skin-vector-legacy #footer {
    margin-left: 120px !important;
}