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
Sin resumen de edición
Línea 1: Línea 1:
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
/* ===== ESTILOS GENERALES ===== */
 
/* Centrar el título principal */
.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;
}
/* Opcional: estilo adicional para el título */
.mw-first-heading {
     font-size: 2.5em;
     font-size: 2.5em;
     color: #2c3e50;
     color: #2c3e50;
Línea 17: Línea 11:
}
}


 
/* ===== ESTILOS DEL INFOBOX ===== */
 
 
 
 
 
 
/* Estilo general del Infobox */
.infobox {
.infobox {
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
   border-spacing: 3px;
   border-spacing: 0;
  background-color: #fff;
   color: black;
   color: black;
   margin: 0.5em 0 0.5em 1em;
   margin: 0.5em 0 0.5em 1em;
   padding: 0.2em;
   padding: 0;
   float: right;
   float: right;
   clear: right;
   clear: right;
Línea 36: Línea 24:
   line-height: 1.5em;
   line-height: 1.5em;
   width: 22em;
   width: 22em;
  border-collapse: separate;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
}


/* Encabezados principales (naranja fuerte) - SOLO para th que son encabezados de sección */
/* Encabezados principales */
.infobox > table > tbody > tr > th[colspan="2"],
.infobox > table > tbody > tr > th[colspan="2"],
.infobox-title {
.infobox-title {
   background-color: #ff9d00; /* Naranja fuerte */
   background-color: #ff9d00;
   color: #000;
   color: #000;
   text-align: center;
   text-align: center;
   padding: 0.2em 0.4em;
   padding: 0.4em 0.6em;
  font-size: 110%;
}
}


/* Encabezados secundarios (naranja claro) - para th normales */
/* Encabezados secundarios */
.infobox > table > tbody > tr > th:not([colspan="2"]) {
.infobox > table > tbody > tr > th:not([colspan="2"]) {
   background-color: #ffe0b8; /* Naranja claro */
   background-color: #ffe0b8;
   color: #222;
   color: #222;
   text-align: left;
   text-align: left;
   width: 40%;
   width: 40%;
   padding: 0.2em 0.4em;
   padding: 0.3em 0.6em;
   border-right: 1px solid #ffb347; /* Borde naranja medio */
   border-right: 1px solid #ffb347;
}
}


Línea 60: Línea 51:
.infobox td {
.infobox td {
   vertical-align: top;
   vertical-align: top;
   padding: 0.2em 0.4em;
   padding: 0.3em 0.6em;
   background-color: #ffffff;
   background-color: #fff;
  border-top: 1px solid #f0f0f0;
}
}


/* Bordes y separación */
/* ===== SECCIÓN DE IMAGEN CORREGIDA ===== */
.infobox tr + tr th,
.infobox-image {
.infobox tr + tr td {
  text-align: center;
   border-top: 1px solid #e0e0e0;
  padding: 0.6em;
   background-color: #fff !important;
  margin: 0;
  position: relative;
  overflow: hidden;
}
}


/* Imagen */
.infobox-image:before {
.infobox-image {
   content: "";
   text-align: center;
  position: absolute;
   padding: 0.4em 0;
  top: 0;
  background-color: #fff !important;
  left: 0;
   right: 0;
  bottom: 0;
  background: #fff;
  z-index: 0;
}
}


Línea 80: Línea 80:
   max-width: 100%;
   max-width: 100%;
   height: auto;
   height: auto;
   border: 1px solid #f0f0f0;
   border: 1px solid #e0e0e0;
  background-color: #fff !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 */
/* Pie de infobox */
.infobox-footer {
.infobox-footer {
  background-color: #fff;
  display: block; /* Elimina espacio bajo la imagen */
   font-size: 85%;
   font-size: 85%;
   text-align: center;
   text-align: center;
   padding-top: 0.4em;
   padding: 0.6em;
   color: #666;
   color: #666;
}
   background-color: #f9f9f9;
 
   border-top: 1px solid #e0e0e0;
/* Título del infobox */
.infobox-title {
   font-size: 125%;
  font-weight: bold;
   border-bottom: 2px solid #e68a00;
}
}


Línea 104: Línea 110:
   font-weight: bold;
   font-weight: bold;
   text-align: center;
   text-align: center;
   padding: 0.2em;
   padding: 0.3em;
   margin: 0.3em 0;
   margin: 0.3em 0;
  background-color: #f5f5f5;
}
}


 
/* ===== MEJORAS DE VISUALIZACIÓN ===== */
 
/* Ocultar elementos vacíos */
 
 
 
/* Ocultar elementos vacíos - Versión mejorada */
.infobox-data th:empty,  
.infobox-data th:empty,  
.infobox-data td:empty,
.infobox-data td:empty,
Línea 122: Línea 125:
}
}


/* Ocultar filas de Type cuando no hay datos */
/* Ocultar filas condicionales vacías */
.infobox-data tr:has(> td:contains("{{#if:")),
.infobox-data tr:has(> td:contains("{{#if:")),
.infobox-data tr:has(> td:contains("{{#unless:")),
.infobox-data tr:has(> td:contains("{{#unless:")),
Línea 128: Línea 131:
.infobox-data tr:has(> td:contains("{{/unless}}")) {
.infobox-data tr:has(> td:contains("{{/unless}}")) {
   display: none !important;
   display: none !important;
}
/* ===== CORRECCIONES ESPECÍFICAS ===== */
/* Eliminar fondo en imágenes transparentes */
.infobox-image .transparent-bg {
  background: #fff !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%;
  }
}
}

Revisión del 10:02 6 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: #fff;
  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: #fff;
  border-top: 1px solid #f0f0f0;
}

/* ===== SECCIÓN DE IMAGEN CORREGIDA ===== */
.infobox-image {
  text-align: center;
  padding: 0.6em;
  background-color: #fff !important;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.infobox-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 0;
}

.infobox-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  background-color: #fff !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: #fff !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%;
  }
}

Publicidad:

Patrocinador Bottom