Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiGor
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
/* ===== Final Tested CSS to remove top-bottom white space under logo ===== */
/* ===== Final Fix: Remove top empty space in Vector 2022 header ===== */


/* Remove header extra space */
/* Remove unwanted padding in Vector 2022 */
.vector-header, .vector-header-start, .vector-header-container {
.vector-header {
padding-top: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
padding-bottom: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
min-height: 0 !important;
min-height: 0 !important;
height: auto !important;
height: auto !important;
align-items: center !important;
}
}


.vector-header-container, .vector-sticky-header {
/* Perfectly center the logo */
padding-top: 0 !important;
.vector-header-logo, .mw-logo-icon {
display: flex !important;
padding-bottom: 0 !important;
align-items: center !important;
justify-content: center !important;
width: 100px !important; /* आवश्यकता अनुसार 100, 120, 150 */
height: auto !important;
height: auto !important;
margin: 0 !important;
min-height: 0 !important;
padding: 0 !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
}
}


/* Logo wrapper adjustments */
/* Adjust inner container for alignment */
.vector-header-start > a {
.vector-header-start, .vector-header-logo, .mw-logo-icon {
margin: 0 !important;
padding: 0 !important;
height: auto !important;
display: flex !important;
display: flex !important;
align-items: center !important;
align-items: center !important;
justify-content: center !important;
justify-content: center !important;
}
height: 100% !important;

width: auto !important;
/* Adjust logo image size */
.vector-header-logo, .mw-logo-icon {
width: 100px !important; /* Adjust as needed */
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
}
}

Revision as of 11:59, 13 July 2025

/* ===== Final Fix: Remove top empty space in Vector 2022 header ===== */

/* Remove unwanted padding in Vector 2022 */
.vector-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.vector-header-container, .vector-sticky-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Logo wrapper adjustments */
.vector-header-start, .vector-header-logo, .mw-logo-icon {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Adjust logo image size */
.vector-header-logo, .mw-logo-icon {
    width: 100px !important;  /* Adjust as needed */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}