MediaWiki:Gadget-NavboxStyle.css: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
mNo edit summary
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Navbox templates, with mobile support */
/* Navbox template CSS */


/* Mobile */
/* Shared styles */
.mobile .navbox {
body.mediawiki .navbox-group a,
width: 100% !important;
#mw-content-text .navbox-title a,
font-size: 85% !important;
body.mediawiki .navbox-abovebelow a {
margin: 15px 0 0 !important;
color: inherit !important;
}
}
.mobile .navbox .navbox {
.navbox-title .mw-collapsible-toggle {
font-size: 100% !important;
padding-right: 5px;
margin-top: 0 !important;
}
.mobile .navbox + .navbox {
margin-top: 0 !important;
}
.mobile.skin-minerva .navbox + .navbox {
margin-top: 2px !important;
}
.mobile .navbox td, .mobile .navbox th {
font-size: 100% !important;
padding-left: 2px !important;
padding-right: 2px !important;
white-space: normal !important;
}
.mobile .navbox tr:first-child th span {
font-size: 100% !important;
}
.mobile .navbox tr:first-child th {
font-size: 105% !important;
padding-left: 4px !important;
padding-right: 4px !important;
}
@media all and (min-width: 720px) {
.mobile .navbox tr:first-child th {
font-size: 110% !important;
}
}
.mobile .navbox p, .mobile .navbox hr {
margin: 0.1em 0 !important;
}
.navbox-heading {
clear: both !important;
}
.mobile.skin-timeless .navbox-heading {
border: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
padding: 0 !important;
}
.mobile.skin-timeless .navbox-heading::after {
border: 0 !important;
}
.client-nojs .mobile .navbox,
.client-nojs .mobile #bodyContent .navbox-heading,
.mobile.skin-timeless .navbox-heading > .mw-ui-icon {
display: none !important;
}
}
.mobile.skin-timeless .navbox-heading + .collapsible-block {
.navbox-title {
display: block !important;
border-radius: 0.5em;
}
}
.navbox .mw-collapsible-toggle {
.navbox-group {
min-width: 45px;
width: 15%;
text-align: right;
font-weight: bold;
text-align: center;
border-radius: 0.5em 0 0 0.5em;
padding: 0 4px;
}
}
 
.navbox-group + .navbox-list {
/* Halo/Destiny styles */
border-radius: 0 0.5em 0.5em 0;
.navbox-title,
.navbox-title a,
.navbox-title span {
color: white !important;
}
}
.navbox-title.light,
.navbox-abovebelow,
.navbox-title.light a,
.navbox-list[colspan="2"] {
.navbox-title.light span {
text-align: center;
color: black !important;
border-radius: 0.5em;
}
}
body:not(.skin-minerva) .navbox-title {
.navbox-abovebelow {
padding-right: 5px;
font-size: 90%;
}
}
.navbox {
.navbox {
color: #000;
width: 100%;
clear: both;
clear: both;
border-spacing: 0;
border-spacing: 0;
margin: 15px auto 2px !important;
border-radius: 0.75em;
overflow: hidden !important;
margin: 15px auto 1px !important;
}
}
.navbox table {
.navbox table {
border-spacing: 0;
border-spacing: 0;
}
}
.navbox:last-of-type {
.navbox p {
margin: 0 !important;
}
.navbox:last-child {
margin-bottom: 0 !important;
margin-bottom: 0 !important;
}
}
Line 92: Line 52:
margin: 0 auto !important;
margin: 0 auto !important;
}
}
.navbox + .navbox,
.navbox + p + .navbox,
.navbox + div + p + .navbox,
.navbox + .navbox-heading + .navbox,
.navbox + .navbox-heading + .navbox,
.navbox + div + p + .navbox,
.content-table-wrapper + .content-table-wrapper .navbox {
.navbox + p + .navbox,
.navbox + .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 + p + .navbox,
.mobile.skin-timeless .navbox + .navbox {
.mobile.skin-timeless .navbox + .navbox {
margin-top: 2px !important;
margin-top: 1px !important;
}
}
.skin-timeless .navbox-title {
.skin-timeless .navbox-title {
Line 106: Line 75:
.skin-timeless .navbox td {
.skin-timeless .navbox td {
padding-top: 0 !important;
padding-top: 0 !important;
}
.client-nojs .navspace-big,
.client-nojs .navspace-small {
display: none !important;
}
}
.navbox .center-template {
.navbox .center-template {
margin: 0 !important;
margin: 0 !important;
}
@media print {
.navbox {
display: none;
}
}
}

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

/* Navbox template CSS */

/* 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;
	}
}