MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Tag: Manual revert
 
(14 intermediate revisions by the same user not shown)
Line 11:
border-radius: 4px;
}
 
.mw-collapsible-content {
padding: 5px;
}
 
/* Remove unwanted padding in Vector 2022 */
.vector-header {
Line 23 ⟶ 21:
height: auto !important;
}
 
.vector-header-container, .vector-sticky-header {
padding-top: 0 !important;
Line 30 ⟶ 27:
min-height: 0 !important;
}
 
/* Logo wrapper adjustments */
.vector-header-start, .vector-header-logo, .mw-logo-icon {
Line 40 ⟶ 36:
justify-content: center !important;
}
 
/* Adjust logo image size */
.vector-header-logo, .mw-logo-icon {
Line 49 ⟶ 44:
}
 
/* ===== Old Vector logo size fix ===== */
#p-logo a,
#p-logo a img {
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 ===== */
Line 55 ⟶ 70:
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)')
);
}
}
});
});