Diferencia entre revisiones de «MediaWiki:Common.css»
Página de la interfaz de MediaWiki
Más acciones
Sin resumen de edición |
Sin resumen de edición |
||
Línea 73: | Línea 73: | ||
margin-left: 0 !important; | margin-left: 0 !important; | ||
} | } | ||
} | |||
/* Ocultar elementos vacíos */ | |||
.infobox-data th:empty, | |||
.infobox-data td:empty, | |||
.infobox-data th:empty + td:empty, | |||
.infobox-data tr:has(th:empty, td:empty) { | |||
display: none; | |||
} | } |
Revisión del 11:49 5 julio 2025
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
/* Centrar el título principal */
.mw-first-heading {
text-align: center;
margin: 0 auto;
width: 100%;
padding: 15px 0;
}
/* Opcional: estilo adicional para el título */
.mw-first-heading {
font-size: 2.5em;
color: #2c3e50;
border-bottom: 2px solid #3498db;
margin-bottom: 20px;
}
/* Estilo Infobox Wikipedia */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
float: right;
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
}
.infobox-title, .infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
padding: 0.2em;
}
.infobox-header {
background-color: #ddd;
text-align: center;
}
.infobox-label, .infobox th {
text-align: left;
vertical-align: top;
width: 30%;
}
.infobox-data, .infobox td {
text-align: left;
vertical-align: top;
}
.infobox-image {
text-align: center;
padding: 0.4em 0;
}
.infobox-caption {
font-size: 90%;
padding: 0.2em;
}
/* Responsive */
@media (max-width: 500px) {
.infobox {
width: 100% !important;
float: none !important;
margin-left: 0 !important;
}
}
/* Ocultar elementos vacíos */
.infobox-data th:empty,
.infobox-data td:empty,
.infobox-data th:empty + td:empty,
.infobox-data tr:has(th:empty, td:empty) {
display: none;
}