Diferencia entre revisiones de «MediaWiki:Common.css»
De WikiCAAD
![]() Tranqui69 (discusión | contribs.) (Página creada con «→Los estilos CSS colocados aquí se aplicarán a todas las apariencias: .infobox { border: 1px solid #aaa; background-color: #f9f9f9; padding: 5px; margin: 0 0 1em 1em; width: 250px; font-size: 0.9em; line-height: 1.4em; } .infobox-image { text-align: center; margin-bottom: 0.5em; } .infobox-body { font-size: 0.9em; } .infobox-body div { margin-bottom: 0.2em; }») |
m |
||
(No se muestran 7 ediciones intermedias de 2 usuarios) | |||
Línea 3: | Línea 3: | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
padding: | padding: 10px; | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
width: | width: 300px; /* Ancho ajustable según tu diseño */ | ||
font-size: 0.9em; | font-size: 0.9em; | ||
line-height: 1.4em; | 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 { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
margin-bottom: 0 | margin-bottom: 10px; | ||
} | |||
.infobox-image pre { | |||
border: none; | |||
margin: 0; | |||
padding: 0; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
flex-direction: column; | |||
} | } | ||
.infobox- | .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- | .infobox-row td:first-child { | ||
width: 30%; /* Ancho de la columna de etiquetas */ | |||
font-weight: bold; | |||
} | } |
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;
}