Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Gadget-Colortable.css

MediaWiki interface page
Revision as of 02:47, 2 May 2024 by Ihaveahax (talk | contribs) (i don't think this padding rule is necessary anymore?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
.colortable {
	--green-l: #a7f6b0;
	--red-l: #fabfb9;
	--blue-l: #bfd4ff;
	--yellow-l: #fff9ac;
	
	--green-d: #30623c;
	--red-d: #5c312e;
	--blue-d: #383477;
	--yellow-d: #5e5324;
	
	--green: var(--green-l);
	--red: var(--red-l);
	--blue: var(--blue-l);
	--yellow: var(--yellow-l);
}

@media screen and (prefers-color-scheme: dark) {
	/* only timeless has a dark theme skin right now */
	body.skin-timeless .colortable,
	html.skin-theme-clientpref-os body.skin-citizen .colortable {
		--green: var(--green-d);
		--red: var(--red-d);
		--blue: var(--blue-d);
		--yellow: var(--yellow-d);
	}
}

html.skin-citizen-dark .colortable,
html.skin-theme-clientpref-night body.skin-citizen .colortable {
	--green: var(--green-d);
	--red: var(--red-d);
	--blue: var(--blue-d);
	--yellow: var(--yellow-d);
}

.ct-green  { text-align: center; background-color: var(--green)  }
.ct-red    { text-align: center; background-color: var(--red) }
.ct-blue   { text-align: center; background-color: var(--blue) }
.ct-yellow { text-align: center; background-color: var(--yellow) }