MediaWiki:Common.css: Difference between revisions
OMNIVERSE
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
#p-pagemisc { | /* ================================ | ||
Timeless / UI tweaks | |||
================================ */ | |||
#p-pagemisc { | |||
display: none !important; | |||
visibility: hidden !important; | |||
opacity: 0 !important; | |||
height: 0 !important; | |||
} | } | ||
/* Hide the bottom | |||
/* ================================ | |||
MultimediaViewer (MMV) cleanup | |||
Goal: keep MMV working, remove the ugly footer/details UI | |||
IMPORTANT: Do NOT hide broad containers like .mw-mmv-panel | |||
================================ */ | |||
/* 1) Hide the bottom “info/details” region across MMV variants */ | |||
.mw-mmv-info, | .mw-mmv-info, | ||
.mw-mmv-ui-info, | |||
.mw-mmv-ui-info-wrapper, | |||
.mw-mmv-image-metadata, | |||
.mw-mmv-reuse, | .mw-mmv-reuse, | ||
.mw-mmv-credit, | .mw-mmv-credit, | ||
.mw-mmv-permission, | |||
.mw-mmv-license, | |||
.mw-mmv-download-pane, | .mw-mmv-download-pane, | ||
.mw-mmv- | .mw-mmv-more-info, | ||
.mw-mmv-more-info-container, | |||
.mw-mmv-more-info-link, | |||
.mw-mmv-more-details, | |||
.mw-mmv-more-details-link, | |||
.mw-mmv-about, | |||
.mw-mmv-about-link, | |||
.mw-mmv-author, | |||
.mw-mmv-author-link, | |||
.mw-mmv-license-link, | |||
.mw-mmv-license-button, | |||
.mw-mmv-embed, | |||
.mw-mmv-share, | |||
.mw-mmv-description { | |||
display: none !important; | |||
} | |||
/* If your build uses different classnames but still contains “mmv” + “info”, this catches it */ | |||
[class*="mw-mmv"][class*="info"] { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 2) Collapse any reserved space left by the hidden footer (safe: does not remove viewer structure) */ | ||
.mw-mmv-overlay, | |||
.mw-mmv-ui { | |||
padding-bottom: 0 !important; | |||
} | |||
/* 3) Make it feel cleaner (background + remove drop shadow) */ | |||
.mw-mmv-overlay { | |||
background: rgba(0, 0, 0, 0.92) !important; | |||
} | |||
.mw-mmv-image, | |||
.mw-mmv-image img { | |||
box-shadow: none !important; | |||
} | |||
/* ================================ | |||
Optional: hide gallery arrows | |||
(Leave enabled if you want next/prev) | |||
================================ */ | |||
.mw-mmv-next-image, | .mw-mmv-next-image, | ||
.mw-mmv-prev-image { | .mw-mmv-prev-image { | ||
| Line 22: | Line 75: | ||
} | } | ||
/* | |||
/* ================================ | |||
Optional: keep ONLY close button | |||
This is implemented safely by hiding known toolbar items, | |||
without hiding the toolbar container itself. | |||
================================ */ | |||
/* Keep close visible */ | |||
.mw-mmv-toolbar .mw-mmv-dialog-close { | .mw-mmv-toolbar .mw-mmv-dialog-close { | ||
display: inline-block !important; | display: inline-block !important; | ||
visibility: visible !important; | |||
opacity: 1 !important; | |||
} | } | ||
.mw-mmv-toolbar .mw-mmv-dialog-close | |||
/* Hide other common toolbar controls (fullscreen/settings/etc.) */ | |||
.mw-mmv-toolbar .mw-mmv-dialog-fullscreen, | |||
.mw-mmv-toolbar .mw-mmv-dialog-settings, | |||
.mw-mmv-toolbar .mw-mmv-dialog-download, | |||
.mw-mmv-toolbar .mw-mmv-dialog-share, | |||
.mw-mmv-toolbar .mw-mmv-dialog-embed, | |||
.mw-mmv-toolbar .mw-mmv-dialog-about, | |||
.mw-mmv-toolbar .mw-mmv-dialog-more, | |||
.mw-mmv-toolbar .mw-mmv-dialog-cta, | |||
.mw-mmv-toolbar .mw-mmv-dialog-button:not(.mw-mmv-dialog-close) { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | |||
/* ================================ | |||
Critical safety note: | |||
DO NOT add rules like these (they can break MMV): | |||
.mw-mmv- | .mw-mmv-panel { display:none } | ||
.mw-mmv-ui { display:none } | |||
} | .mw-mmv-overlay { display:none } | ||
================================ */ | |||
.mw-mmv- | |||
.mw-mmv- | |||
Revision as of 03:40, 25 January 2026
/* ================================
Timeless / UI tweaks
================================ */
#p-pagemisc {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
height: 0 !important;
}
/* ================================
MultimediaViewer (MMV) cleanup
Goal: keep MMV working, remove the ugly footer/details UI
IMPORTANT: Do NOT hide broad containers like .mw-mmv-panel
================================ */
/* 1) Hide the bottom “info/details” region across MMV variants */
.mw-mmv-info,
.mw-mmv-ui-info,
.mw-mmv-ui-info-wrapper,
.mw-mmv-image-metadata,
.mw-mmv-reuse,
.mw-mmv-credit,
.mw-mmv-permission,
.mw-mmv-license,
.mw-mmv-download-pane,
.mw-mmv-more-info,
.mw-mmv-more-info-container,
.mw-mmv-more-info-link,
.mw-mmv-more-details,
.mw-mmv-more-details-link,
.mw-mmv-about,
.mw-mmv-about-link,
.mw-mmv-author,
.mw-mmv-author-link,
.mw-mmv-license-link,
.mw-mmv-license-button,
.mw-mmv-embed,
.mw-mmv-share,
.mw-mmv-description {
display: none !important;
}
/* If your build uses different classnames but still contains “mmv” + “info”, this catches it */
[class*="mw-mmv"][class*="info"] {
display: none !important;
}
/* 2) Collapse any reserved space left by the hidden footer (safe: does not remove viewer structure) */
.mw-mmv-overlay,
.mw-mmv-ui {
padding-bottom: 0 !important;
}
/* 3) Make it feel cleaner (background + remove drop shadow) */
.mw-mmv-overlay {
background: rgba(0, 0, 0, 0.92) !important;
}
.mw-mmv-image,
.mw-mmv-image img {
box-shadow: none !important;
}
/* ================================
Optional: hide gallery arrows
(Leave enabled if you want next/prev)
================================ */
.mw-mmv-next-image,
.mw-mmv-prev-image {
display: none !important;
}
/* ================================
Optional: keep ONLY close button
This is implemented safely by hiding known toolbar items,
without hiding the toolbar container itself.
================================ */
/* Keep close visible */
.mw-mmv-toolbar .mw-mmv-dialog-close {
display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* Hide other common toolbar controls (fullscreen/settings/etc.) */
.mw-mmv-toolbar .mw-mmv-dialog-fullscreen,
.mw-mmv-toolbar .mw-mmv-dialog-settings,
.mw-mmv-toolbar .mw-mmv-dialog-download,
.mw-mmv-toolbar .mw-mmv-dialog-share,
.mw-mmv-toolbar .mw-mmv-dialog-embed,
.mw-mmv-toolbar .mw-mmv-dialog-about,
.mw-mmv-toolbar .mw-mmv-dialog-more,
.mw-mmv-toolbar .mw-mmv-dialog-cta,
.mw-mmv-toolbar .mw-mmv-dialog-button:not(.mw-mmv-dialog-close) {
display: none !important;
}
/* ================================
Critical safety note:
DO NOT add rules like these (they can break MMV):
.mw-mmv-panel { display:none }
.mw-mmv-ui { display:none }
.mw-mmv-overlay { display:none }
================================ */
