MediaWiki:Common.css: Difference between revisions

Update templates and main page
Update templates and main page
Line 80: Line 80:


/* ===== Content area — centered ===== */
/* ===== Content area — centered ===== */
/* Override Vector 2022 grid to center the main content */
.mw-page-container-inner {
    display: block !important;
    max-width: 960px;
    margin: 0 auto !important;
}
.mw-body {
.mw-body {
     max-width: 960px;
     max-width: 960px;
Line 85: Line 91:
     padding: 1.5em 2em;
     padding: 1.5em 2em;
}
}
/* Center the content container in Vector 2022 */
.mw-content-container {
.mw-page-container {
     max-width: none !important;
     max-width: 1200px;
     margin: 0 !important;
     margin: 0 auto !important;
}
.vector-column-start {
    /* Keep TOC but don't push content off-center */
}
}
/* When TOC is hidden, content should still be centered */
/* Header also centered */
.mw-content-container {
.vector-header-container .mw-header {
     max-width: 960px;
     max-width: 960px;
     margin: 0 auto !important;
     margin: 0 auto !important;
Line 213: Line 215:
}
}


/* Hide Tools dropdown for anonymous */
/* Hide Tools dropdown */
body:not(.mw-user-logged-in) #vector-page-tools {
#vector-page-tools {
    display: none !important;
}
/* Hide the entire page toolbar row (empty after removing all tabs) */
.vector-page-toolbar {
     display: none !important;
     display: none !important;
}
}