Diferencia entre revisiones de «MediaWiki:Common.css»
De WikiCAAD
m |
m |
||
Línea 23: | Línea 23: | ||
.infobox-image img { | .infobox-image img { | ||
max-width: 270px; | max-width: 270px; | ||
height: auto; | |||
object-fit: contain; | object-fit: contain; | ||
} | } |
Revisión del 08:22 6 jul 2025
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
.infobox {
border: 1px solid #aaa;
background-color: #f9f9f9;
padding: 10px;
margin: 0 0 1em 1em;
width: 300px; /* Ancho ajustable según tu diseño */
font-size: 0.9em;
line-height: 1.4em;
float: right; /* Alinea el infobox a la derecha */
}
.infobox-title {
text-align: center;
margin-bottom: 10px;
margin-top: 10px;
font-size: 1.2em;
}
.infobox-image {
text-align: center;
margin-bottom: 10px;
}
.infobox-image img {
max-width: 270px;
height: auto;
object-fit: contain;
}
.infobox-table {
clear: both;
}
.infobox-table table {
width: 100%;
}
.infobox-row {
background-color: #ffffff; /* Color de fondo para filas pares */
}
.infobox-row:nth-child(even) {
background-color: #f2f2f2; /* Color de fondo para filas impares */
}
.infobox-row td {
padding: 5px;
vertical-align: top;
}
.infobox-row td:first-child {
width: 30%; /* Ancho de la columna de etiquetas */
font-weight: bold;
}