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

MediaWiki:Common.css

Página de la interfaz de MediaWiki

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

.infobox-title, .infobox caption {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
    padding: 0.2em;
}

.infobox-header {
    background-color: #ddd;
    text-align: center;
}

.infobox-label, .infobox th {
    text-align: left;
    vertical-align: top;
    width: 30%;
}

.infobox-data, .infobox td {
    text-align: left;
    vertical-align: top;
}

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

.infobox-caption {
    font-size: 90%;
    padding: 0.2em;
}

/* Responsive */
@media (max-width: 500px) {
    .infobox {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }
}


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

/* Efecto hover para filas */
.infobox tr:hover th,
.infobox tr:hover td {
  background-color: #f1f1f1;
}

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