Diferencia entre revisiones de «Plantilla:Infobox/styles.css»

De WikiCAAD
 
(No se muestran 15 ediciones intermedias del mismo usuario)
Línea 3: Línea 3:
  * [[Template:Tool]], etc.
  * [[Template:Tool]], etc.
  */
  */
.infobox {
table.infobox {
box-sizing: border-box;
box-sizing: border-box;
border: 2px solid #a2a9b1;
border: 2px solid #a2a9b1;
width: 280px;
width: 15%;
border-collapse: collapse;
border-collapse: collapse;
border-spacing: 0;
border-spacing: 0;
/* background-color: white;*/
/* background-color: white; */
/* these are overriden by .infobox-rtl on the templates of interest */
clear: right; /* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
clear: right;
/* @noflip */
float: right;
float: right;
/* @noflip */
margin: 0 0 0.5em 0.5em;
margin: 0 0 0.5em 0.5em;
}
}


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


.infobox th {
table.infobox th {
/* @noflip */
text-align: left;
text-align: left;
padding: 0.2em 0.5em;
padding: 0.2em 0.5em;
Línea 35: Línea 27:
}
}


.infobox-rtl th {
table.infobox-rtl th {
/* @noflip */
text-align: right;
text-align: right;
}
}


@media (max-width: 719px) {
@media (max-width: 719px) {
/* high specificity to ensure specific infoboxes won't override these
body.mediawiki table.infobox {
* properties with their own tstyles inadvertently */
body.mediawiki .infobox {
float: none;
float: none;
clear: both;
clear: both;
Línea 51: Línea 40:
}
}


.infobox td {
table.infobox td {
border: none;
border: none;
padding: 0.2em 0.5em;
padding: 0.2em 0.5em;
Línea 57: Línea 46:
}
}


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


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


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


.infobox-header img {
table.infobox .infobox-header img {
padding: 0 0.2em 0 0.5em;
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 */
}
}
}

Revisión actual - 20:03 8 jun 2024

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