MediaWiki:Common.css: Difference between revisions

From DFO – Flood Observatory
No edit summary
No edit summary
Tag: Reverted
Line 3: Line 3:
img { height: auto; max-width: 100%; }
img { height: auto; max-width: 100%; }


/* Hide page title */
/* Hide Chameleon title container completely */
.mw-page-title-main {
.page-header {
     display: none !important;
     display: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
}


/* Hide namespace prefix (e.g., "Discharge:") */
/* Also hide title text inside it (fallback for older versions) */
.mw-page-title-namespace {
.page-header h1,
.page-header .firstHeading {
     display: none !important;
     display: none !important;
}
}


/* Hide colon between namespace and title */
/* Hide namespace and separator if Chameleon exposes them */
.mw-page-title-separator,
.mw-page-title-namespace,
.mw-title-separator,
.mw-page-title-separator {
.firstHeading .mw-page-title-separator {
    display: none !important;
}
 
/* Prevent leftover margin/padding where the title used to be */
#content,
#mw-content-text,
.mw-body,
.vector-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
 
/* Hide any HR under the title (common in older skins & some extensions) */
#content hr,
#mw-content-text hr:first-of-type,
.mw-body-content > hr:first-child {
     display: none !important;
     display: none !important;
}
}

Revision as of 14:03, 2 December 2025

/* CSS placed here will be applied to all skins */

img { height: auto; max-width: 100%; }

/* Hide Chameleon title container completely */
.page-header {
    display: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Also hide title text inside it (fallback for older versions) */
.page-header h1,
.page-header .firstHeading {
    display: none !important;
}

/* Hide namespace and separator if Chameleon exposes them */
.mw-page-title-namespace,
.mw-page-title-separator {
    display: none !important;
}