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 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
/* ===== ESTILOS PARA SOCIAL PROFILE ===== */
/* Contenedor principal del perfil */
.user-profile-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-top: 20px;
}
/* Cabecera del perfil */
.user-profile-header {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #e0e0e0;
}
/* Avatar del usuario */
.user-profile-avatar {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: cover;
border: 4px solid #3498db;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
/* Información básica del usuario */
.user-profile-info {
flex: 1;
min-width: 250px;
}
.user-profile-name {
font-size: 2em;
color: #2c3e50;
margin: 0 0 10px 0;
}
.user-profile-title {
font-size: 1.2em;
color: #7f8c8d;
margin: 0 0 15px 0;
}
/* Estadísticas del usuario */
.user-stats-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin: 20px 0;
}
.user-stat-box {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
text-align: center;
transition: all 0.3s ease;
}
.user-stat-box:hover {
background-color: #edf3f8;
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.user-stat-value {
font-size: 1.8em;
font-weight: bold;
color: #3498db;
margin-bottom: 5px;
}
.user-stat-label {
font-size: 0.9em;
color: #7f8c8d;
}
/* Barra de nivel */
.user-level-container {
margin: 25px 0;
}
.user-level-header {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
.user-level-title {
font-size: 1.2em;
color: #2c3e50;
margin: 0;
}
.user-level-number {
font-weight: bold;
color: #3498db;
}
.user-level-progress {
height: 20px;
background-color: #ecf0f1;
border-radius: 10px;
overflow: hidden;
position: relative;
}
.user-level-progress-bar {
height: 100%;
background: linear-gradient(90deg, #3498db, #2ecc71);
border-radius: 10px;
transition: width 0.5s ease;
}
.user-level-next {
font-size: 0.9em;
color: #7f8c8d;
margin-top: 8px;
text-align: right;
}
/* Pestañas del perfil */
.user-profile-tabs {
display: flex;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 20px;
}
.user-profile-tab {
padding: 10px 20px;
cursor: pointer;
color: #7f8c8d;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
}
.user-profile-tab:hover {
color: #3498db;
}
.user-profile-tab.active {
color: #3498db;
border-bottom-color: #3498db;
font-weight: bold;
}
/* Contenido de las pestañas */
.user-profile-content {
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
}
/* Lista de logros */
.user-achievements-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 15px;
}
.user-achievement {
text-align: center;
padding: 10px;
background-color: #fff;
border-radius: 6px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
transition: all 0.3s ease;
}
.user-achievement:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.user-achievement-icon {
width: 60px;
height: 60px;
margin: 0 auto 10px;
display: block;
}
.user-achievement-name {
font-size: 0.9em;
color: #2c3e50;
margin: 0;
}
/* Sección de actividad reciente */
.user-activity-item {
padding: 15px;
border-bottom: 1px solid #e0e0e0;
display: flex;
align-items: center;
gap: 15px;
}
.user-activity-item:last-child {
border-bottom: none;
}
.user-activity-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #3498db;
color: white;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.user-activity-content {
flex: 1;
}
.user-activity-text {
margin: 0;
color: #2c3e50;
}
.user-activity-time {
font-size: 0.8em;
color: #7f8c8d;
margin-top: 5px;
}
/* Responsive design */
@media screen and (max-width: 768px) {
.user-profile-header {
flex-direction: column;
align-items: center;
text-align: center;
}
.user-stats-container {
grid-template-columns: repeat(2, 1fr);
}
.user-achievements-list {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (max-width: 480px) {
.user-stats-container {
grid-template-columns: 1fr;
}
.user-achievements-list {
grid-template-columns: repeat(2, 1fr);
}
.user-profile-tabs {
overflow-x: auto;
white-space: nowrap;
}
}