Diferencia entre revisiones de «MediaWiki:Common.css»
De WikiCAAD
m |
|||
(No se muestran 3 ediciones intermedias del mismo usuario) | |||
Línea 20: | Línea 20: | ||
text-align: center; | text-align: center; | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
} | |||
.infobox-image pre { | |||
border: none; | |||
margin: 0; | |||
padding: 0; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
flex-direction: column; | |||
} | |||
.infobox-image img { | |||
max-width: 270px; | |||
height: auto; | |||
object-fit: contain; | |||
} | } | ||
.infobox-table { | .infobox-table { |
Revisión actual - 08:25 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 pre {
border: none;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.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;
}