Jump to content

User:Ngoclong19/global.css

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Ngoclong19 (talk | contribs) at 09:26, 25 October 2024. It may differ significantly from the current version.

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* dark mode: improve contrast */
.mw-parser-output.mw-parser-output .fmbox,
.mw-parser-output.mw-parser-output .no-article-text-sister-projects {
	background-color: #050607;
}
[style*="color:#000"] > span {
	color: #fff;
}

/* dark mode: background for transparent image */
.cdx-thumbnail__image,
/*
.filehistory img,
*/
.mw-file-element,
.mwe-popups-thumbnail,
.searchResultImage-thumbnail img {
	background-color: #C8CCD1;
}
/*
:is(.documentation-heading, .mainpage-heading-image, .mbox-image, .mw-indicator, .noprint, .noviewer, .penicon, .plainlinks) .mw-file-element,
.mw-file-element[alt="information"] {
	background: unset;
}
img[src*="Runic_letter"] {
	padding: 2px;
}
*/

/* fix sticky table header doesn't stick on top */
.mw-sticky-header-element {
	z-index: 1;
}
div:not(.mw-parser-output):has(> .mw-sticky-header) {
	overflow-x: unset !important;
}