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 16: Línea 16:
     margin-bottom: 20px;
     margin-bottom: 20px;
}
}




Línea 87: Línea 93:
.infobox-data tr:has(> th:empty + td:empty) {
.infobox-data tr:has(> th:empty + td:empty) {
   display: none !important;
   display: none !important;
}
/* Efecto hover para filas */
.infobox tr:hover th,
.infobox tr:hover td {
  background-color: #f1f1f1;
}
}


Línea 110: Línea 110:
   text-align: center;
   text-align: center;
}
}


/* Ocultar elementos vacíos - Versión mejorada */
/* Ocultar elementos vacíos - Versión mejorada */

Revisión del 14:30 5 julio 2025

/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */

/* Centrar el título principal */
.mw-first-heading {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    padding: 15px 0;
}

/* Opcional: estilo adicional para el título */
.mw-first-heading {
    font-size: 2.5em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    margin-bottom: 20px;
}








/* Estilo general del Infobox */
.infobox {
  border: 1px solid #a2a9b1;
  border-spacing: 3px;
  background-color: #f8f9fa;
  color: black;
  margin: 0.5em 0 0.5em 1em;
  padding: 0.2em;
  float: right;
  clear: right;
  font-size: 88%;
  line-height: 1.5em;
  width: 22em;
}

/* Encabezados principales (naranja) */
.infobox th {
  background-color: #ff9d00;  /* Color naranja */
  color: #000;
  text-align: center;
  padding: 0.2em 0.4em;
}

/* Encabezados secundarios */
.infobox tr th[scope="row"] {
  background-color: #f8f9fa;
  color: #222;
  text-align: left;
  width: 40%;
  padding: 0.2em 0.4em;
}

/* Celdas de datos */
.infobox td {
  vertical-align: top;
  padding: 0.2em 0.4em;
}

/* Bordes y separación */
.infobox tr + tr th,
.infobox tr + tr td {
  border-top: 1px solid #a2a9b1;
}

/* Imagen */
.infobox-image {
  text-align: center;
  padding: 0.4em 0;
}

.infobox-image img {
  max-width: 100%;
  height: auto;
}

/* Pie de infobox */
.infobox-footer {
  font-size: 85%;
  text-align: center;
  padding-top: 0.4em;
}

/* 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;
}

/* Título del infobox */
.infobox-title {
  font-size: 125%;
  font-weight: bold;
  text-align: center;
  padding: 0.2em;
  background-color: #ff9d00;  /* Naranja igual que los encabezados */
  border-bottom: 2px solid #a2a9b1;
}

/* Subtítulos */
.infobox-subtitle {
  font-weight: bold;
  text-align: center;
}









/* Ocultar elementos vacíos - Versión mejorada */
.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 de Type cuando no hay datos */
.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;
}

Publicidad:

Patrocinador Bottom