Menú alternativo
Toggle preferences menu
Menú alternativo personal
No ha accedido
Tu dirección IP será visible si haces alguna edición

Publicidad:

Patrocinador Top

Diferencia entre revisiones de «MediaWiki:Common.css»

Página de la interfaz de MediaWiki
Sin resumen de edición
Etiqueta: Revertido
Sin resumen de edición
Etiqueta: Reversión manual
Línea 258: Línea 258:
     padding: 10px;
     padding: 10px;
     border-rad
     border-rad
/*******************************
* ESTILOS MODERNOS PERFIL SOCIAL
* Para MediaWiki con SocialProfile
* Autor: ChatGPT
*******************************/
/* Fuente global del sitio */
body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: #f4f6f9;
  color: #333;
}
/* Contenedor principal del perfil */
.profile-info, .user-page-container {
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #ddd;
}
/* Encabezado: avatar + nombre + acciones */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
/* Avatar */
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 2px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  object-fit: cover;
}
/* Nombre de usuario */
.profile-username {
  font-size: 2em;
  font-weight: bold;
  color: #1a1a1a;
}
/* Puntos o nivel */
.profile-points {
  font-size: 0.95em;
  color: #666;
  margin-top: 4px;
}
/* Botones del perfil */
.profile-actions {
  margin-top: 10px;
}
.profile-actions a {
  display: inline-block;
  margin: 5px 6px 0 0;
  text-decoration: none;
  background-color: #007BFF;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}
.profile-actions a:hover {
  background-color: #0056b3;
}
/* Secciones del perfil */
.profile-section {
  margin-top: 30px;
}
.profile-section h2 {
  font-size: 1.4em;
  color: #333;
  border-bottom: 2px solid #e2e2e2;
  padding-bottom: 6px;
  margin-bottom: 15px;
}
.profile-section p,
.profile-section li {
  font-size: 0.95em;
  margin: 4px 0;
  color: #444;
}
/* Información vacía */
.profile-section .no-info {
  font-style: italic;
  color: #999;
}
/* Actividad reciente */
.profile-activity {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ccc;
}
.profile-activity li {
  list-style: none;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.profile-activity img {
  margin-right: 8px;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}
/* Centrar el contenido de la página */
#content, #mw-content-text {
  max-width: 960px;
  margin: 0 auto;
}
/* Ajuste para encabezados pequeños */
h3, h4 {
  color: #2e2e2e;
}
/* Responsive (opcional) */
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  .profile-username {
    font-size: 1.6em;
  }
  .profile-actions a {
    font-size: 0.85em;
    padding: 5px 10px;
  }
}

Revisión del 09:28 7 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

Publicidad:

Patrocinador Bottom