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 |
||
(No se muestran 45 ediciones intermedias del mismo usuario) | |||
Línea 1: | Línea 1: | ||
/* | /* ===== ESTILOS GENERALES ===== */ | ||
.mw-first-heading { | .mw-first-heading { | ||
text-align: center; | text-align: center; | ||
Línea 7: | Línea 5: | ||
width: 100%; | width: 100%; | ||
padding: 15px 0; | padding: 15px 0; | ||
font-size: 2.5em; | font-size: 2.5em; | ||
color: #2c3e50; | color: #2c3e50; | ||
Línea 17: | Línea 11: | ||
} | } | ||
/* ===== 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 { | .infobox > table > tbody > tr > th:not([colspan="2"]) { | ||
background-color: #ffe0b8; | |||
color: #222; | |||
text-align: left; | |||
width: 40%; | |||
margin: 0.5em 0 0. | padding: 0.3em 0.6em; | ||
padding: 0. | 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 Mejorado */ | |||
.admin-links-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
padding: 20px; | |||
} | |||
.admin-dashboard-card { | |||
background: #fff; | |||
border-radius: 8px; | |||
padding: 20px; | |||
margin-bottom: 20px; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.05); | |||
border-left: 4px solid #36c; | |||
} | |||
.admin-stats-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); | |||
gap: 15px; | |||
margin-top: 15px; | |||
} | } | ||
. | .admin-stats-grid div { | ||
background: #f8f9fa; | |||
padding: 10px; | |||
border-radius: 6px; | |||
text-align: center; | text-align: center; | ||
padding: 0. | font-size: 0.9em; | ||
} | |||
.admin-stats-grid i { | |||
display: block; | |||
font-size: 1.8em; | |||
margin-bottom: 5px; | |||
color: #36c; | |||
} | |||
.admin-quick-actions { | |||
background: #fff; | |||
border-radius: 8px; | |||
padding: 20px; | |||
margin-bottom: 20px; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.05); | |||
border-left: 4px solid #00af89; | |||
} | |||
.action-buttons { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |||
gap: 10px; | |||
margin-top: 15px; | |||
} | } | ||
. | .action-button { | ||
display: block; | |||
padding: 10px 15px; | |||
border-radius: 6px; | |||
text-align: center; | text-align: center; | ||
color: white; | |||
font-weight: bold; | |||
transition: all 0.2s; | |||
} | } | ||
. | .action-button:hover { | ||
transform: translateY(-2px); | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |||
text-decoration: none; | |||
} | } | ||
. | .action-button.danger { background: #d33; } | ||
.action-button.warning { background: #fc3; } | |||
.action-button.success { background: #00af89; } | |||
/* Secciones */ | |||
.admin-links-section { | |||
margin-bottom: 30px; | |||
background: #fff; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.05); | |||
} | } | ||
. | .admin-links-section h2 { | ||
background: #2c3e50; | |||
padding: 0. | color: white; | ||
padding: 12px 20px; | |||
margin: 0; | |||
font-size: 1.1em; | |||
} | } | ||
. | .admin-links-row { | ||
display: grid; | |||
padding: | grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | ||
gap: 15px; | |||
padding: 15px; | |||
} | } | ||
.admin-links-item { | |||
padding: 10px; | |||
. | border-rad | ||
.vote-ny-auto { | |||
margin-top: 2em; | |||
text-align: center; | |||
} | } |
Revisión actual - 15:54 19 julio 2025
/* ===== 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 Mejorado */
.admin-links-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.admin-dashboard-card {
background: #fff;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
border-left: 4px solid #36c;
}
.admin-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 15px;
margin-top: 15px;
}
.admin-stats-grid div {
background: #f8f9fa;
padding: 10px;
border-radius: 6px;
text-align: center;
font-size: 0.9em;
}
.admin-stats-grid i {
display: block;
font-size: 1.8em;
margin-bottom: 5px;
color: #36c;
}
.admin-quick-actions {
background: #fff;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
border-left: 4px solid #00af89;
}
.action-buttons {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
margin-top: 15px;
}
.action-button {
display: block;
padding: 10px 15px;
border-radius: 6px;
text-align: center;
color: white;
font-weight: bold;
transition: all 0.2s;
}
.action-button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
text-decoration: none;
}
.action-button.danger { background: #d33; }
.action-button.warning { background: #fc3; }
.action-button.success { background: #00af89; }
/* Secciones */
.admin-links-section {
margin-bottom: 30px;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.admin-links-section h2 {
background: #2c3e50;
color: white;
padding: 12px 20px;
margin: 0;
font-size: 1.1em;
}
.admin-links-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
padding: 15px;
}
.admin-links-item {
padding: 10px;
border-rad
.vote-ny-auto {
margin-top: 2em;
text-align: center;
}