MediaWiki:Gadget-NavboxStyle.css

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search

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 */
.navbox {
	width: 100%;
	color: #000;
	font-size: 88%;
	background: #fff;
	border: 1px solid grey;
	margin-top: 15px;
}
.nav-right {
	color: #000;
}
.navbox + .navbox,
.navbox .navbox {
	margin-top: 0;
}
.navbox .navbox {
	font-size: 100%;
}
.mobile .navbox tr:nth-of-type(2) > td:first-child {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.navbox:not(.multi) .mw-collapsible > tbody > tr:first-child > th {
	padding-left: 4.1em;
}
.navbox tr:first-child th {
	color: #fff;
	font-size: 108%;
	font-weight: bold;
	background: #999;
}
.navbox tr:first-child th, .navbox tr:first-child th a {
	color: #fff !important;
}
.navbox tr th {
	text-align: center;
	background: #ccc;
}
.navbox tr:not(:first-child) th:not([rowspan]):not([colspan]) {
	background: #E6E6E6;
}
.navbox tr th a, .navbox tr th a:visited, .navbox tr th a.new, .navbox tr th a.new:visited {
	color: #000;
}
.navbox tr:nth-child(2n) td {
	background: #F6F6F6;
}
.navbox tr td {
	background: #FCFCFC;
}
.navbox td a {
	color: #0000FF;
}
.navbox td a:visited {
	color: #0000CC;
}
.navbox td a.new {
	color: #CC2200;
}
.navbox td a.new:visited {
	color: #A55858;
}
@media print {
	.navbox {
		display: none;
	}
}

/* for light-colored navboxes */
.navbox.light > * > tr:first-child th, .navbox.light > * > tr:first-child th a {
	color: black !important;
}