Vorlage:Medienbox/styles.css

Vorlage:Medienbox/styles.css

/* (Info-)Box-Layout im medien-Bereich */
.medien-box{
	display:table;
	width:23em;
	margin-top:0;
	border:solid 1px var(--dewiki-rahmenfarbe1);
	border-spacing:0;
	line-height:1.3;
}

.medien-box,
.float-right[id*=Synchronisation]{
	font-size:93%;
}

.medien-box tr>*{
	text-align:left;
	vertical-align:top;
	padding:4px;
}

.medien-box td ul{
	margin:0 0 0 1.5em;
	padding:0;
	line-height:inherit;
}

/* kompakte Listendarstellung */
.medien-box th+td ul{
	list-style:none none;
	margin:0;
}

.medien-box th+td ul li{
	margin:0 0 0 .7em;
	text-indent: -.7em;
}

@media (max-width:639px){
	.medien-box th+td ul li{
		margin:0;
		display:inline;
	}

	.medien-box th+td ul li+li::before{
		content: "• ";
	}

	.medien-box td:only-child ul{
		column-width:15em;
		column-gap:2em;
	}
}

/* Bilder skalieren auf Boxbreite */
.medien-box img{
	height:100%;
	object-fit:scale-down;
}

/* Text nicht quetschen */
@media (max-width:767px){
	.float-right[id*=Synchronisation]{
		float:none !important;
		margin-left:auto;
		margin-right:auto;
	}
}

/* fließende Darstellergalerie */
.float-right[id*=Synchronisation]+.mw-gallery-packed{
	text-align:left;
}

/* Anzeigefehler mobil */
.medien-box p{
	font-size:inherit;
}

/* Band-Design bei Schachtelung */
.medien-box .infobox{
	display:contents !important;
	font-size:inherit;
}

.medien-filmtv th, .medien-videospiel th{
	background-color:#F4F4F7;
	background-color:RGBA(150,150,175,.1);
	font-weight:inherit;
}

.medien-filmtv th+td{
	width:70%;
	flex: 1.8 !important;
}

/* Thematisch eingefaerbte Titelzeilen */
.medien-box tr:first-child .medien-titel{
	font-weight:bold;
}

.medien-titel ~ .medien-titel >*{
	padding-top:0;
}

.medien-box .medien-titel,
[id*=Synchronisation] td[colspan]{
	text-align:center;
}

tr.medien-titel >*{
	background:none;
}

.medien-hoerfunk tr:first-child,
.medien-hoerfunk .medien-titel{
	background-color:#B0C4DE;
	background-color:RGBA(95,135,190,.3);
}

.medien-website tr:first-child,
.medien-website .medien-titel{
	background-color:#C7CDD9;
	background-color:RGBA(135,205,235,.3);
}

.medien-videospiel tr:first-child .medien-titel{
	color:white;
	background-color:#444444;
}

.medien-videospiel .medien-titel{
	background-color:var(--dewiki-hintergrundfarbe5);
}

.medien-youtube tr:first-child .medien-titel{
	background-color:#FC493B;
}

.medien-youtube .medien-titel{
	background-color:var(--dewiki-hintergrundfarbe7);
}

.medien-filmtv tr:first-child,
.medien-filmtv .medien-titel,
[id*=Synchronisation]:not(.sortable) tr:first-child,
[id*=Synchronisation] thead tr:first-child,
[id*=Synchronisation] th{
	color:inherit;
	background-color:#C7CDD9;
	background-color:RGBA(155,155,225,.2);
}