Plantilla:Infobox/styles.css

De WikiCAAD
/**
 * Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
 * [[Template:Tool]], etc.
 */
table.infobox {
	box-sizing: border-box;
	border: 2px solid #a2a9b1;
	width: 15%;
	border-collapse: collapse;
	border-spacing: 0;
	/* background-color: white; */
	clear: right; /* these are overriden by .infobox-rtl on the templates of interest */
	float: right;
	margin: 0 0 0.5em 0.5em;
}

table.infobox-rtl {
	clear: left;
	float: left;
	margin: 0 0.5em 0.5em 0;
}

table.infobox th {
	text-align: left;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

table.infobox-rtl th {
	text-align: right;
}

@media (max-width: 719px) {
	body.mediawiki table.infobox {
		float: none;
		clear: both;
		width: 100%;
		margin: 0 0 .5em 0;
	}
}

table.infobox td {
	border: none;
	padding: 0.2em 0.5em;
	vertical-align: top;
}

table.infobox .infobox-header {
	/* background-color: #a2a9b1;
	color: #FFF; */
	text-align: left;
}

table.infobox .infobox-header a {
	color: #FFF;
}

table.infobox .infobox-header td,
table.infobox .infobox-header th {
	padding: 0.5em 0.5em;
}

table.infobox .infobox-header img {
	padding: 0 0.2em 0 0.5em;
}

/* Nuevo estilo para la imagen del infobox */
table.infobox .infobox-image {
	width: 100%;
	height: auto;
	margin: 0 auto;
	display: block;
	border-radius: 5px; /* Esquinas redondeadas para efecto de libro */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1); /* Sombras para efecto tridimensional */
}

/* Estilo adicional para la imagen en pantallas pequeñas */
@media (max-width: 719px) {
	table.infobox .infobox-image {
		width: 80%; /* Ajusta el tamaño según sea necesario */
	}
}