MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(4 intermediate revisions by the same user not shown)
Line 1:
/* ===== Final Fix: Remove top whiteempty space above logo in Vector 2022 header ===== */
/* Special:Version collapsible section toggle styling */
 
.mw-collapsible-toggle {
/* Remove all padding and margin in header */
background: #f8f9fa;
.vector-header,
border: 1px solid #a2a9b1;
.vector-header-container,
padding: 0 !important8px;
.vector-sticky-header {
paddingcursor: 0 !importantpointer;
marginfont-weight: 0 !importantbold;
margin-bottom: 0 !important5px;
text-align: center;
border-radius: 4px;
}
.mw-collapsible-content {
padding: 5px;
}
/* Remove allunwanted padding andin margin inVector header2022 */
.vector-header, {
marginpadding-top: 0 !important;
heightpadding-bottom: auto0 !important;
min-height: 0 !important;
height: auto !important;
}
.vector-header-container, .vector-sticky-header {
 
displaypadding-top: flex0 !important;
/* Hide site title text */
justifypadding-contentbottom: center0 !important;
.vector-header .vector-header-start .mw-logo-wordmark,
height: auto !important;
.vector-header .vector-header-start .vector-header-wiki-name {
displaymin-height: none0 !important;
}
/* Logo wrapper adjustments */
 
.vector-header-start, .vector-header-startlogo, .mw-logo-wordmark,icon {
/* Ensure logo container aligns logo to very top */
margin: 0 !important;
.vector-header-start {
padding: 0 !important;
height: auto !important;
display: flex !important;
align-items: flex-startcenter !important; /* Align logo to top */
justify-content: center !important;
padding: 0 !important; /* KEY: remove top padding */
margin: 0 !important;
height: auto !important;
}
/* Adjust logo image size */
 
.vector-header-startlogo, .mw-logo-icon {
/* Adjust logo to touch the top and scale correctly */
width: 120px !important; /* Adjust width ifas needed */
.vector-header-logo,
.mw-logo-icon {
width: 120px !important; /* Adjust width if needed */
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: topcenter center !important; /* Align to top */
}
display: flex !important;
 
align-items: flex-start !important; /* Align image to top */
/* ===== Old Vector logo size fix ===== */
justify-content: center !important;
#p-logo a,
padding: 0 !important;
.mw#p-logo-icon a img {
margin: 0 !important;
max-width: 120px !important;
max-height: 120px !important;
width: auto !important;
height: auto !important;
}
 
/* Mobile-responsive infobox */
@media only screen and (max-width: 600px) {
.infobox {
width: 100% !important;
float: none !important;
margin: 0 0 1em 0 !important;
}
.infobox th, .infobox td {
padding: 0.3em !important;
}
}
 
/* ===== Hide site title in Vector 2022 ===== */
.vector-header .vector-header-start .mw-logo-wordmark,
.vector-header .vector-header-start .mwvector-logoheader-wiki-name {
display: none !important;
}