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-Citizenstuff.css

MediaWiki interface page
Revision as of 22:32, 11 April 2023 by Ihaveahax (talk | contribs) (darken mbox speedy background color)

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.
/* fix ApprovedRevs awkwardness with subpages */
.approvedRevs-approved .subpages::after,
.approvedRevs-notapproved .subpages::after,
.approvedRevs-noapprovedrev .subpages::after {
	content: "\A";
	white-space: pre-wrap;
}

/* fix infobox width on mobile */

@media screen and (max-width: 500px) {
	.infobox {
		margin-left: auto!important;
		margin-right: auto!important;
		float: none!important;
	}
}

/* testing dark mode stuff */

/* message boxes */
html.skin-citizen-dark table.ambox,
html.skin-citizen-dark table.imbox {
	background-color: #36415b /*#fbfbfb*/;
}
html.skin-citizen-dark table.fmbox-system,
html.skin-citizen-dark table.ombox {
	background-color: #343e57 /*#f8f9fa*/;
}
html.skin-citizen-dark table.ambox {
	/* this box puts a 10px border on the left with a special color that should be preserved */
	border-top-color: #5e7288;
	border-right-color: #5e7288;
	border-bottom-color: #5e7288;
}
html.skin-citizen-dark table.tmbox {
	background-color: #5d5848;
}
html.skin-citizen-dark table.fmbox-editnotice,
html.skin-citizen-dark table.fmbox-system,
html.skin-citizen-dark table.ombox-protection,
html.skin-citizen-dark table.imbox-protection,
html.skin-citizen-dark table.ombox-notice,
html.skin-citizen-dark table.cmbox-delete,
html.skin-citizen-dark table.cmbox-content,
html.skin-citizen-dark table.cmbox-style,
html.skin-citizen-dark table.cmbox-notice,
html.skin-citizen-dark table.cmbox-move,
html.skin-citizen-dark table.cmbox-protection {
	border-color: #5e7288;
}
html.skin-citizen-dark table.ambox-speedy,
html.skin-citizen-dark table.cmbox-speedy,
html.skin-citizen-dark table.cmbox-delete,
html.skin-citizen-dark table.imbox-speedy,
html.skin-citizen-dark table.tmbox-speedy,
html.skin-citizen-dark table.fmbox-warning,
html.skin-citizen-dark table.ombox-speedy {
	background-color: #45201e;
}
html.skin-citizen-dark table.cmbox-content {
	background-color: #504438;
}
html.skin-citizen-dark table.cmbox-style {
	background-color: #635f46;
}
html.skin-citizen-dark table.cmbox-notice {
	background-color: #3a4759;
}
html.skin-citizen-dark table.cmbox-move {
	background-color: #453b5c;
}
html.skin-citizen-dark table.cmbox-protection {
	background-color: #4a4a36;
}

/* documentation template */
/* this is using TemplateStyles, so I need to remember to move this over some day... */
html.skin-citizen-dark .mw-parser-output .documentation,
html.skin-citizen-dark .mw-parser-output .documentation-metadata {
	border: 1px solid #909090!important;
	background-color: #1e2a24!important;
}

/*
infobox
*/
html.skin-citizen-dark .infobox {
	color: #fff;
	background: #20262f;
	border-color: #2f394d;
}

/* navbox margin fix */
div.navbox table { margin-top: 0; }
/* navbox dark theme */
html.skin-citizen-dark .navbox-group {
	background-color: #3e3e52;
}
html.skin-citizen-dark .navbox-subgroup .navbox-group {
	background-color: #383847;
}
html.skin-citizen-dark .navbox {
	border: 1px solid #3f4f61;
}
html.skin-citizen-dark .navbox,
html.skin-citizen-dark .navbox-subgroup {
	background-color: #272834;
}
html.skin-citizen-dark .navbox-even {
	background-color: #22232b;
}
html.skin-citizen-dark .navbox-list {
	border-color: #121a20;
}
/* don't understand this entirely... */
html.skin-citizen-dark .mw-parser-output tr+tr>.navbox-abovebelow,
html.skin-citizen-dark .mw-parser-output tr+tr>.navbox-group,
html.skin-citizen-dark .mw-parser-output tr+tr>.navbox-image,
html.skin-citizen-dark .mw-parser-output tr+tr>.navbox-list {
	border-top: 2px solid #121a20;
}

html.skin-citizen-dark .navbox-title {
	background-color: #4b4b69;
}

/* fix citizen showing collapse icons even for pages where it shouldn't be */
.section-indicator {
	display: none;
}
.citizen-sections-enabled .section-indicator {
	display: block;
}

/* fix bright background with white text for certain warnings (like protected notices) */
html.skin-citizen-dark div.mw-warning-with-logexcerpt,
html.skin-citizen-dark div.mw-lag-warn-high,
html.skin-citizen-dark div.mw-cascadeprotectedwarning,
html.skin-citizen-dark div#mw-protect-cascadeon,
html.skin-citizen-dark div.titleblacklist-warning {
	background-color: #5b4343;
}