Module:Infobox/styles.css

< Module:Infobox
Revision as of 01:21, 3 August 2023 by PanchamBro (talk | contribs) (creating stylesheet)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Infobox stylization, imported from FamiWiki: https://famiwiki.net/wiki/MediaWiki:Common.css */
.infobox {
	border: 4px solid #4A31FF;
	padding: .25rem;
	border-radius: .75rem;
	display: grid;
	gap: .33rem;
}

@media (min-width: 720px) {
	.infobox {
		float: right;
		margin: .25rem 0 .5rem .5rem;
		max-width: 420px;
		min-width: 410px;
	}
}

@media (min-width: 1000px) {
	.infobox {
		max-width: 300px;
	}
}

.infobox-head, .infobox-cell {
	border-radius: .25rem;
}

.infobox-title {
	font-family: "Kurokane","Arial";
}

.infobox-head {
	font-family: "Kurokane","Arial";
	font-weight: normal;
	text-align: right;
}

.infobox-head.infobox-wide, .infobox-head.infobox-Wide {
	text-align: center;
}

.infobox-collapsible {
	font-family: "Rodin","Arial";
}

.infobox-head > .mw-collapsible-toggle > a:not([href]) {
  cursor: pointer;
  font-family: "Rodin","Arial";
}

.infobox-cell:nth-child(4n+1) {
	background: rgba(0,0,0,.15);
}

.infobox-head.infobox-split, .infobox-head.infobox-Split {
	grid-column: 1;
}

.infobox-cell.infobox-split, .infobox-cell.infobox-Split {
	grid-column: span 3;
}

.infobox-wide, .infobox-widecenter, .infobox-img, .infobox-label, .infobox-imgnotitle, .infobox-Wide, .infobox-Widecenter, .infobox-Img, .infobox-Label, .infobox-Imgnotitle, .infobox-widecentergroup, .infobox-Widecentergroup {
	grid-column: span 4;
}

.infobox-widecenter, .infobox-Widecenter {
	text-align: center;
}

.infobox-widecentergroup, .infobox-Widecentergroup {
	text-align: center;
}

.infobox-widecentergroup div, .infobox-Widecentergroup div {
	width:50%;
	float:left;
}

.infobox-img, .infobox-imgnotitle, .infobox-Img, .infobox-Imgnotitle  {
	text-align: center;
	color: #fff;
}

.infobox-head.infobox-img, .infobox-head.infobox-Img {
	background: none !important;
}

.infobox-head.infobox-imgnotitle, .infobox-head.infobox-Imgnotitle {
	display: none !important;
}

.infobox-head.infobox-imgnotitle, .infobox-head.infobox-Imgnotitle {
	display: none !important;
}

.infobox-cell.infobox-img, .infobox-cell.infobox-Img {
	font-style: italic;
	background: none !important;
}

.infobox-collapsible {
	background-color: #000b10 !important;
	color: #fff;
	font-weight: normal;
	padding: .25rem;
}

.content .infobox {
    display: grid;
    background-color: transparent
}