Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiGor
Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* ===== Final Fix: Remove top empty space in Vector 2022 header ===== */
/* ===== Final Fix: Make logo touch the top in Vector 2022 ===== */


/* Remove unwanted padding in Vector 2022 */
/* Remove all padding and margins in header */
.vector-header {
.vector-header,
.vector-header-container,
padding-top: auto !important;
.vector-sticky-header,
padding-bottom: 0 !important;
.vector-header-start,
min-height: 0 !important;
.vector-header-logo,
height: auto !important;
.mw-logo-icon {
}
padding: 0 !important;

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


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


/* Adjust logo image size */
/* Make logo touch the top and center it */
.vector-header-logo, .mw-logo-icon {
.vector-header-logo, .mw-logo-icon {
width: 120px !important; /* Adjust as needed */
width: 120px !important; /* Adjust width as needed */
background-size: contain !important;
background-size: contain !important;
background-repeat: no-repeat !important;
background-repeat: no-repeat !important;
background-position: center center !important;
background-position: top center !important; /* KEY: align logo to the top */
display: flex !important;
align-items: flex-start !important; /* KEY: stick to top */
justify-content: center !important;
}
}


/* Ensure logo container aligns logo to top */

.vector-header-start {
/* ===== Hide site title in Vector 2022 ===== */
display: flex !important;
.vector-header .vector-header-start .mw-logo-wordmark,
align-items: flex-start !important; /* KEY: stick to top */
.vector-header .vector-header-start .vector-header-wiki-name {
display: none !important;
justify-content: center !important;
}
}

Revision as of 12:17, 13 July 2025

/* ===== Final Fix: Make logo touch the top in Vector 2022 ===== */

/* Remove all padding and margins in header */
.vector-header,
.vector-header-container,
.vector-sticky-header,
.vector-header-start,
.vector-header-logo,
.mw-logo-icon {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Remove site title text */
.vector-header .vector-header-start .mw-logo-wordmark,
.vector-header .vector-header-start .vector-header-wiki-name {
    display: none !important;
}

/* Make logo touch the top and center it */
.vector-header-logo, .mw-logo-icon {
    width: 120px !important;  /* Adjust width as needed */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;  /* KEY: align logo to the top */
    display: flex !important;
    align-items: flex-start !important;  /* KEY: stick to top */
    justify-content: center !important;
}

/* Ensure logo container aligns logo to top */
.vector-header-start {
    display: flex !important;
    align-items: flex-start !important;  /* KEY: stick to top */
    justify-content: center !important;
}