MediaWiki:Common.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
border-radius: 4px; |
border-radius: 4px; |
||
} |
} |
||
.mw-collapsible-content { |
.mw-collapsible-content { |
||
padding: 5px; |
padding: 5px; |
||
} |
} |
||
/* Remove unwanted padding in Vector 2022 */ |
/* Remove unwanted padding in Vector 2022 */ |
||
.vector-header { |
.vector-header { |
||
Line 23: | Line 21: | ||
height: auto !important; |
height: auto !important; |
||
} |
} |
||
.vector-header-container, .vector-sticky-header { |
.vector-header-container, .vector-sticky-header { |
||
padding-top: 0 !important; |
padding-top: 0 !important; |
||
Line 30: | Line 27: | ||
min-height: 0 !important; |
min-height: 0 !important; |
||
} |
} |
||
/* Logo wrapper adjustments */ |
/* Logo wrapper adjustments */ |
||
.vector-header-start, .vector-header-logo, .mw-logo-icon { |
.vector-header-start, .vector-header-logo, .mw-logo-icon { |
||
Line 40: | Line 36: | ||
justify-content: center !important; |
justify-content: center !important; |
||
} |
} |
||
/* Adjust logo image size */ |
/* Adjust logo image size */ |
||
.vector-header-logo, .mw-logo-icon { |
.vector-header-logo, .mw-logo-icon { |
||
Line 48: | Line 43: | ||
background-position: center center !important; |
background-position: center center !important; |
||
} |
} |
||
/* ===== Hide site title in Vector 2022 ===== */ |
/* ===== Hide site title in Vector 2022 ===== */ |
||
.vector-header .vector-header-start .mw-logo-wordmark, |
.vector-header .vector-header-start .mw-logo-wordmark, |
||
Line 55: | Line 48: | ||
display: none !important; |
display: none !important; |
||
} |
} |
||
/* Enable collapsible extensions section on Special:Version |
|||
mw.loader.using(['jquery', 'jquery.makeCollapsible'], function () { |
|||
$(function () { |
|||
if (mw.config.get('wgCanonicalSpecialPageName') === 'Version') { |
|||
var $extSection = $('#mw-version-ext'); |
|||
if ($extSection.length) { |
|||
$extSection.addClass('mw-collapsible mw-collapsed'); |
|||
$extSection.prepend( |
|||
$('<div>').addClass('mw-collapsible-toggle').text('Extensions (Click to Expand/Collapse)') |
|||
); |
|||
} |
|||
} |
|||
}); |
|||
}); |
Revision as of 12:37, 13 July 2025
/* ===== Final Fix: Remove top empty space in Vector 2022 header ===== */
/* Special:Version collapsible section toggle styling */
.mw-collapsible-toggle {
background: #f8f9fa;
border: 1px solid #a2a9b1;
padding: 8px;
cursor: pointer;
font-weight: bold;
margin-bottom: 5px;
text-align: center;
border-radius: 4px;
}
.mw-collapsible-content {
padding: 5px;
}
/* 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: 120px !important; /* Adjust as needed */
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
}
/* ===== Hide site title in Vector 2022 ===== */
.vector-header .vector-header-start .mw-logo-wordmark,
.vector-header .vector-header-start .vector-header-wiki-name {
display: none !important;
}