MediaWiki:Vector.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
padding-top: 40px; /* adjust to logo overhang */ | padding-top: 40px; /* adjust to logo overhang */ | ||
} | } | ||
.vector- | .vector-pinned-container { | ||
margin-top: 60px; /* adjust to logo overhang */ | margin-top: 60px; /* adjust to logo overhang */ | ||
} | } | ||
| Line 37: | Line 37: | ||
z-index: 20; | z-index: 20; | ||
} | } | ||
.mw-logo-wordmark img { | .mw-logo-wordmark img { | ||
height: 80px; /* choose your value */ | height: 80px; /* choose your value */ | ||
width: auto; | width: auto; | ||
} | } | ||
} | } | ||
Revision as of 07:11, 28 January 2026
/* Keep header grid compact */
.vector-header-container {
align-items: start;
}
/* Remove logo from grid flow */
.vector-header-start {
position: relative;
}
/* Absolutely position the logo */
.vector-header-start .mw-logo-wordmark {
position: absolute;
top: 0;
left: 0;
z-index: 20;
}
/* Optional: push logo downward */
.vector-header-start .mw-logo-wordmark img {
margin-top: 0; /* or e.g. 20px */
}
.mw-body {
padding-top: 40px; /* adjust to logo overhang */
}
.vector-pinned-container {
margin-top: 60px; /* adjust to logo overhang */
}
@media (min-width: 1000px) {
.vector-header-start {
position: relative;
}
.vector-header-start .mw-logo-wordmark {
position: absolute;
z-index: 20;
}
.mw-logo-wordmark img {
height: 80px; /* choose your value */
width: auto;
}
}