Jump to content

MediaWiki:Common.css: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
No edit summary
Line 102: Line 102:
.vector-toc {
.vector-toc {
     margin-top: 0 !important;
     margin-top: 0 !important;
}
/* 1. Change the Wiki Icon */
.mw-logo-icon {
    /* Replace the URL below with the direct link to your new icon */
    content: url('YOUR_IMAGE_URL_HERE') !important;
   
    /* You might need to adjust these depending on your new image size */
    max-height: 50px !important;
    max-width: 50px !important;
}
/* 2. Change the Title Font Color, Font Family, and Weight */
.mw-logo-wordmark {
    /* Change to your desired color (hex code or name) */
    color: #333333 !important;
   
    /* Change to your desired font */
    font-family: "Arial", sans-serif !important;
   
    /* Change weight: can be 'normal', 'bold', or a number like 400, 700 */
    font-weight: 800 !important;
}
}

Revision as of 11:24, 28 July 2026

/* CSS placed here will be applied to all skins */
/* --- HIDE ALL CLUTTER FOR READ-ONLY WIKI --- */

/* Hide Vector 2022 specific hamburger menu & main menu toggles */
body.not-logged-in #vector-main-menu-dropdown,
body.not-logged-in #vector-page-tools-dropdown,
body.not-logged-in .vector-header-end #p-user-menu-overflow {
    display: none !important;
}

/* Hide default MediaWiki footers (privacy, disclaimers, powered by) */
#footer-places,
#footer-icons,
.mw-footer-container {
    display: none !important;
}

/* 1. Hide the Hamburger Menu button (top left) */
#mw-sidebar-button,
#vector-main-menu-dropdown {
    display: none !important;
}

/* 2. Hide the Log in button / user section (top right) */
body.not-logged-in #p-personal,
body.not-logged-in .vector-user-links,
body.not-logged-in #pt-login,
body.not-logged-in #pt-login-2 {
    display: none !important;
}

/* 3. Hide the page category tabs (Main Page | Discussion) & action tabs (Read | View source | View history | Tools) */
body.not-logged-in .vector-page-toolbar,
body.not-logged-in #p-namespaces,
body.not-logged-in #p-views,
body.not-logged-in #p-cactions,
body.not-logged-in .mw-article-toolbar {
    display: none !important;
}

/* Hide "Watch this page" checkbox in VisualEditor & standard edit forms */
.mw-widget-checkDef-watchthis,
.page-mw-watchthis,
#wpWatchthis,
label[for="wpWatchthis"],
.oo-ui-fieldLayout:has(#wpWatchthis),
.oo-ui-fieldLayout:has([name="wpWatchthis"]) {
    display: none !important;
}

/* 1. Hide the Navigation Toolbar (Main Page | Discussion | Read | View source | View history | Tools) */
.vector-page-toolbar,
#p-namespaces,
#p-views,
#p-cactions,
#vector-page-tools-dropdown {
    display: none !important;
}

/* 2. Hide Log in Button (Top Right) */
#p-vector-user-menu-overflow,
#pt-login,
#pt-login-2,
.vector-user-links,
.user-links-collapsible-item {
    display: none !important;
}

/* Optional: Clean up the top line spacing left behind by the tabs */
.mw-body-header {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Hide "Watch this page" checkbox and label in edit forms */
.mw-editWatchlist,
.page-mw-watchthis,
label[for="wpWatchthis"],
#wpWatchthis {
    display: none !important;
}

@media screen {
    body {
        background-color: #ffffff !important;
    }
}

/* Align Table of Contents list with the logo above */
ul#mw-panel-toc-list.vector-toc-contents {
    margin-left: 6px !important; 
}

/* Hide the pinned table of contents header */
.vector-pinnable-header-pinned.vector-toc-pinnable-header.vector-pinnable-header {
    display: none !important;
}

/* Remove the empty yellow margin space above the Table of Contents */
.vector-column-start,
#vector-toc,
.vector-toc {
    margin-top: 0 !important;
}

/* 1. Change the Wiki Icon */
.mw-logo-icon {
    /* Replace the URL below with the direct link to your new icon */
    content: url('YOUR_IMAGE_URL_HERE') !important;
    
    /* You might need to adjust these depending on your new image size */
    max-height: 50px !important;
    max-width: 50px !important; 
}

/* 2. Change the Title Font Color, Font Family, and Weight */
.mw-logo-wordmark {
    /* Change to your desired color (hex code or name) */
    color: #333333 !important; 
    
    /* Change to your desired font */
    font-family: "Arial", sans-serif !important; 
    
    /* Change weight: can be 'normal', 'bold', or a number like 400, 700 */
    font-weight: 800 !important; 
}