MediaWiki:Gadget-NavboxStyle.css: Difference between revisions

m (1 revision imported)
mNo edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Navbox template CSS */
/* Navbox template CSS */


/* Site styles */
/* Default styles */
.navbox.default {
.navbox.default {
background: #555;
background: #555;
}
}
.navbox-title.default {
.navbox .navbox.default {
background: #777;
}
.navbox .navbox .navbox.default {
background: #999;
}
.navbox-title.default,
.navbox-abovebelow.default {
color: #fff;
color: #fff;
}
}
.navbox-group.default {
.navbox-group.default {
width: 15%;
background: #eee;
background: #fafafa;
border-right: 1px dashed #000;
border-right: 1px dashed #000;
}
.navbox-group.default + .navbox-list .navbox-sub .navbox-group.default {
background: #f0f0f0 !important;
}
}
.navbox-list.default {
.navbox-list.default {
background: #fafafa;
background: #fafafa;
}
.navbox-abovebelow.default {
background: #ccc;
}
}


/* Shared styles */
/* Shared styles */
body.mediawiki .navbox-title a,
body.mediawiki .navbox-group a,
body.mediawiki .navbox-group a,
#mw-content-text .navbox-title a,
body.mediawiki .navbox-abovebelow a {
body.mediawiki .navbox-abovebelow a {
color: inherit !important;
color: inherit !important;
Line 33: Line 39:
}
}
.navbox-group {
.navbox-group {
width: 15%;
font-weight: bold;
font-weight: bold;
text-align: center;
text-align: center;
Line 53: Line 60:
width: 100%;
width: 100%;
clear: both;
clear: both;
overflow: hidden;
border-spacing: 0;
border-spacing: 0;
border-radius: 0.65em;
border-radius: 0.75em;
margin: 15px auto 2px !important;
overflow: hidden !important;
margin: 15px auto 1px !important;
}
}
.navbox table {
.navbox table {
Line 76: Line 83:
.content-table-wrapper + .content-table-wrapper .navbox {
.content-table-wrapper + .content-table-wrapper .navbox {
margin-top: 0 !important;
margin-top: 0 !important;
}
.navbox-list > div > .navbox:first-of-type {
margin-top: -1px !important;
}
.navbox-list:has(.navbox) {
background: none !important;
}
}
.navbox .navbox + .navbox,
.navbox .navbox + .navbox,
.navbox .navbox + p + .navbox,
.navbox .navbox + p + .navbox,
.mobile.skin-timeless .navbox + .navbox {
.mobile.skin-timeless .navbox + .navbox {
margin-top: 2px !important;
margin-top: 1px !important;
}
.navbox .navbox + .navbox:last-child,
.navbox .navbox + p + .navbox:last-child {
margin-bottom: 1px !important;
}
}
.skin-timeless .navbox-title {
.skin-timeless .navbox-title {

Latest revision as of 16:26, August 13, 2024

/* Navbox template CSS */

/* Default styles */
.navbox.default {
	background: #555;
}
.navbox .navbox.default {
	background: #777;
}
.navbox .navbox .navbox.default {
	background: #999;
}
.navbox-title.default,
.navbox-abovebelow.default {
	color: #fff;
}
.navbox-group.default {
	background: #eee;
	border-right: 1px dashed #000;
}
.navbox-group.default + .navbox-list .navbox-sub .navbox-group.default {
	background: #f0f0f0 !important;
}
.navbox-list.default {
	background: #fafafa;
}

/* Shared styles */
body.mediawiki .navbox-group a,
#mw-content-text .navbox-title a,
body.mediawiki .navbox-abovebelow a {
	color: inherit !important;
}
.navbox-title .mw-collapsible-toggle {
	padding-right: 5px;
}
.navbox-title {
	border-radius: 0.5em;
}
.navbox-group {
	width: 15%;
	font-weight: bold;
	text-align: center;
	border-radius: 0.5em 0 0 0.5em;
	padding: 0 4px;
}
.navbox-group + .navbox-list {
	border-radius: 0 0.5em 0.5em 0;
}
.navbox-abovebelow,
.navbox-list[colspan="2"] {
	text-align: center;
	border-radius: 0.5em;
}
.navbox-abovebelow {
	font-size: 90%;
}
.navbox {
	color: #000;
	width: 100%;
	clear: both;
	border-spacing: 0;
	border-radius: 0.75em;
	overflow: hidden !important;
	margin: 15px auto 1px !important;
}
.navbox table {
	border-spacing: 0;
}
.navbox p {
	margin: 0 !important;
}
.navbox:last-child {
	margin-bottom: 0 !important;
}
.navbox .navbox {
	margin: 0 auto !important;
}
.navbox + .navbox,
.navbox + p + .navbox,
.navbox + div + p + .navbox,
.navbox + .navbox-heading + .navbox,
.content-table-wrapper + .content-table-wrapper .navbox {
	margin-top: 0 !important;
}
.navbox-list > div > .navbox:first-of-type {
	margin-top: -1px !important;
}
.navbox-list:has(.navbox) {
	background: none !important;
}
.navbox .navbox + .navbox,
.navbox .navbox + p + .navbox,
.mobile.skin-timeless .navbox + .navbox {
	margin-top: 1px !important;
}
.skin-timeless .navbox-title {
	padding-bottom: 0 !important;
}
.skin-timeless .navbox td {
	padding-top: 0 !important;
}
.client-nojs .navspace-big,
.client-nojs .navspace-small {
	display: none !important;
}
.navbox .center-template {
	margin: 0 !important;
}
@media print {
	.navbox {
		display: none;
	}
}