Template:Infobox baseball biography/styles.css

From WikiMD's Wellness Encyclopedia
/* {{pp|small=y}} */
.ib-baseball-bio {
	border-collapse: collapse;
}

/* TODO split definitions to appropriate class names when live from HTML element */
.ib-baseball-bio td,
.ib-baseball-bio th {
	border: 1px solid #a2a9b1;
}

.ib-baseball-bio .borderless td,
.ib-baseball-bio .borderless th {
	border: 0;
}

.ib-baseball-bio .infobox-below {
	background-color: #eee;
}

.ib-baseball-bio-batsthrows {
	display: flex;
	text-align: center;
}

.ib-baseball-bio-batsthrows > div {
	width: 50%;
}

.ib-baseball-bio-batsthrows div:first-child {
	border-right: 1px solid #a2a9b1;
}

.ib-baseball-bio-member-header {
	background-color: #9A1C1F;
}

.ib-baseball-bio-member-header a,
.ib-baseball-bio-member > th > a {
	color: white;
}

.ib-baseball-bio-former .infobox-full-data,
.ib-baseball-bio-teams .infobox-full-data,
.ib-baseball-bio-highlights .infobox-full-data {
	text-align: left;
}

.ib-baseball-bio-module {
	width: 100%;
	background-color: #f9f9f9;
}

/* night theme */
html.skin-theme-clientpref-night .ib-baseball-bio-member-header {
  background: #3d0001;
}
html.skin-theme-clientpref-night .ib-baseball-bio-member[style*="background"] {
  background: #0c0a6b !important;
}

@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .ib-baseball-bio-member-header {
    background: #3d0001;
  }
  html.skin-theme-clientpref-os .ib-baseball-bio-member[style*="background"] {
    background: #0c0a6b !important;
  }
}