MediaWiki:Gadget-NavboxStyle.css

Revision as of 15:17, August 10, 2023 by Porplemontage (talk | contribs)

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.
/* Navbox template CSS */

/* Site styles */
table.navbox {
	color: #000;
	font-size: 90%;
	text-align: center;
	border: 1px solid #AAA;
	background-color: #F9F9F9;
	min-width: 200px;
	max-width: 95%;
	padding: 0.2em;
	margin: 15px auto 0;
	clear: both;
}
.navbox + .navbox,
.content-table-wrapper + .content-table-wrapper .navbox {
	margin-top: 2px !important;
}
table.navbox th {
	background-color: #beb;
	padding-left: 1em;
	padding-right: 1em;
}
table.navbox:not(.classic) th {
	color: #fff;
}
table.navbox:not(.classic) tr th a,
table.navbox:not(.classic) .mw-collapsible-text,
table.navbox:not(.classic) .mw-collapsible-toggle {
	color: inherit !important;
}
table.navbox tr:not(:first-child) th {
	background-color: #cec;
}
table.navbox .mw-collapsible-text,
table.navbox .mw-collapsible-toggle {
	font-weight: bold;
}
body:not(.mobile) table.navbox .mw-collapsible-toggle-collapsed {
	margin-left: 10px;
}
body:not(.mobile) .navbox.mw-made-collapsible:not(.mw-collapsed) > tbody > tr:first-of-type > th {
	padding-left: 4.4em;
}
@media print {
	.navbox {
		display: none;
	}
}

/* Light navboxes */
table.navbox-light {
	color: #000;
}
table.navbox-light a,
table.navbox-light a.extiw,
table.navbox-light a.external {
	color: #262;
}
table.navbox-light a:visited,
table.navbox-light a.extiw:visited,
table.navbox-light a.external:visited {
	color: #141;
}
table.navbox-light a:hover,
table.navbox-light a.extiw:hover,
table.navbox-light a.external:hover {
	color: #363;
}
table.navbox-light a:visited:hover,
table.navbox-light a.extiw:visited:hover,
table.navbox-light a.external:visited:hover {
	color: #242;
}
table.navbox-light a.new,
table.navbox-light a.new:visited,
table.navbox-light a.new:hover,
table.navbox-light a.new:visited:hover {
	color: #422;
}

/* Dark navboxes */
table.navbox-dark {
	color: #fff;
}
table.navbox-dark a,
table.navbox-dark a.extiw,
table.navbox-dark a.external {
	color: #bfb;
}
table.navbox-dark a:visited,
table.navbox-dark a.extiw:visited,
table.navbox-dark a.external:visited {
	color: #cfc;
}
table.navbox-dark a:hover,
table.navbox-dark a.extiw:hover,
table.navbox-dark a.external:hover {
	color: #cfc;
}
table.navbox-dark a:visited:hover,
table.navbox-dark a.extiw:visited:hover,
table.navbox-dark a.external:visited:hover {
	color: #dfd;
}
table.navbox-dark a.new,
table.navbox-dark a.new:visited,
table.navbox-dark a.new:hover,
table.navbox-dark a.new:visited:hover {
	color: #fdd;
}