MediaWiki:Common.css
Página de la interfaz de MediaWiki
Más acciones
Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
/* ===== ESTILOS GENERALES ===== */
.mw-first-heading {
text-align: center;
margin: 0 auto;
width: 100%;
padding: 15px 0;
font-size: 2.5em;
color: #2c3e50;
border-bottom: 2px solid #3498db;
margin-bottom: 20px;
}
/* ===== ESTILOS DEL INFOBOX ===== */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 0;
background-color: #edf3f8;
color: black;
margin: 0.5em 0 0.5em 1em;
padding: 0;
float: right;
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
border-collapse: separate;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Encabezados principales */
.infobox > table > tbody > tr > th[colspan="2"],
.infobox-title {
background-color: #ff9d00;
color: #000;
text-align: center;
padding: 0.4em 0.6em;
font-size: 110%;
}
/* Encabezados secundarios */
.infobox > table > tbody > tr > th:not([colspan="2"]) {
background-color: #ffe0b8;
color: #222;
text-align: left;
width: 40%;
padding: 0.3em 0.6em;
border-right: 1px solid #ffb347;
}
/* Celdas de datos */
.infobox td {
vertical-align: top;
padding: 0.3em 0.6em;
background-color: #edf3f8;
border-top: 1px solid #f0f0f0;
}
/* ===== SECCIÓN DE IMAGEN CORREGIDA ===== */
.infobox-image {
text-align: center;
padding: 0.6em;
background-color: #edf3f8 !important;
margin: 0;
position: relative;
overflow: hidden;
}
.infobox-image:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #edf3f8;
z-index: 0;
}
.infobox-image img {
max-width: 100%;
height: auto;
border: 1px solid #e0e0e0;
background-color: #edf3f8 !important;
display: block;
margin: 0 auto;
position: relative;
z-index: 1;
box-sizing: border-box;
padding: 2px;
}
/* Corrección especial para PNG/SVG */
.infobox-image img[src$=".png"],
.infobox-image img[src$=".svg"] {
background-image: none !important;
}
/* Pie de infobox */
.infobox-footer {
font-size: 85%;
text-align: center;
padding: 0.6em;
color: #666;
background-color: #f9f9f9;
border-top: 1px solid #e0e0e0;
}
/* Subtítulos */
.infobox-subtitle {
font-weight: bold;
text-align: center;
padding: 0.3em;
margin: 0.3em 0;
background-color: #f5f5f5;
}
/* ===== MEJORAS DE VISUALIZACIÓN ===== */
/* Ocultar elementos vacíos */
.infobox-data th:empty,
.infobox-data td:empty,
.infobox-data tr:has(> th:empty:only-child),
.infobox-data tr:has(> td:empty:only-child),
.infobox-data tr:has(> th:empty + td:empty) {
display: none !important;
}
/* Ocultar filas condicionales vacías */
.infobox-data tr:has(> td:contains("{{#if:")),
.infobox-data tr:has(> td:contains("{{#unless:")),
.infobox-data tr:has(> td:contains("{{/if}}")),
.infobox-data tr:has(> td:contains("{{/unless}}")) {
display: none !important;
}
/* ===== CORRECCIONES ESPECÍFICAS ===== */
/* Eliminar fondo en imágenes transparentes */
.infobox-image .transparent-bg {
background: #edf3f8 !important;
}
/* Asegurar compatibilidad con móviles */
@media screen and (max-width: 600px) {
.infobox {
width: 100%;
margin: 0.5em 0;
float: none;
}
.infobox-image img {
max-width: 80%;
}
}
/* ===== PANEL DE ADMINISTRACIÓN PROFESIONAL ===== */
#adminlinks .admin-panel-title {
font-weight: 600;
margin-left: 8px;
vertical-align: middle;
}
#adminlinks .live-badge {
background: #e74c3c;
color: white;
padding: 3px 10px;
border-radius: 12px;
font-size: 0.75em;
float: right;
margin-left: 10px;
animation: admin-pulse 2s infinite;
text-transform: uppercase;
letter-spacing: 0.5px;
}
#adminlinks .real-time-badge {
font-weight: bold;
color: #2c3e50;
font-family: monospace;
font-size: 1.1em;
}
#adminlinks .risk-badge {
background: #f39c12;
color: white;
padding: 3px 8px;
border-radius: 4px;
font-size: 0.8em;
display: inline-block;
margin-left: 8px;
}
#adminlinks .error-badge {
background: #e74c3c;
color: white;
padding: 3px 8px;
border-radius: 4px;
font-size: 0.8em;
display: inline-block;
margin-left: 8px;
}
#adminlinks .gold-icon {
color: #f1c40f;
margin-left: 8px;
}
#adminlinks .warning-icon {
color: #f39c12;
margin-left: 8px;
}
#adminlinks .dashboard-mini-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
margin: 15px 0 5px 0;
padding: 10px 0;
border-top: 1px dashed #e0e0e0;
border-bottom: 1px dashed #e0e0e0;
}
#adminlinks .stat-card {
background: rgba(248, 249, 250, 0.7);
padding: 10px;
border-radius: 8px;
font-size: 0.9em;
text-align: center;
transition: all 0.3s ease;
border: 1px solid #e0e0e0;
}
#adminlinks .stat-card:hover {
background: #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transform: translateY(-2px);
}
#adminlinks .stat-card i {
display: block;
font-size: 1.5em;
margin-bottom: 5px;
color: #3498db;
}
#adminlinks .security-alerts {
margin-top: 15px;
padding: 12px;
background: rgba(255, 243, 243, 0.7);
border-radius: 8px;
border-left: 4px solid #e74c3c;
font-size: 0.9em;
}
#adminlinks .alert-item {
display: flex;
align-items: center;
gap: 8px;
}
#adminlinks .alert-item i {
color: #e74c3c;
}
@keyframes admin-pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.05); opacity: 0.8; }
100% { transform: scale(1); opacity: 1; }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
#adminlinks .dashboard-mini-stats {
grid-template-columns: 1fr;
}
#adminlinks .live-badge {
display: none; /* Ocultar en móviles para ahorrar espacio */
}
}