Diferencia entre revisiones de «MediaWiki:Common.css»

De Dragon Quest Wiki
Ir a la navegación Ir a la búsqueda
Sin resumen de edición
Sin resumen de edición
Línea 39: Línea 39:




/* TABLAS ESTILO CEBRA*/
/* TABLAS ESTILO ZEBRA*/
// Initialises stripes on all zebra tables after page load
/* Estilo visual para tablas con estilo zebra */
$(document).ready(function() {
$('table.zebra tbody tr:nth-child(even)').addClass('even');
$('table.zebra tbody tr:nth-child(odd)').addClass('odd');
});


// Re do stripes on a table after sort finishes
.wikitable > tr > th, .wikitable > * > tr > th {
$(document).on('sortEnd.tablesorter', function(event) {
    background-color: #e1caac;
var table = $(event.target);
    color: #000;
if(table.hasClass('zebra')) {
    text-align: center;
$('tbody tr:nth-child(even)',table).addClass('even').removeClass('odd');
  }
$('tbody tr:nth-child(odd)',table).addClass('odd').removeClass('even');
}
}
 
});
table {
  table-layout: fixed;
  width: 80%;
  min-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #ffffff;
  text-align:center;
}
 
th,
td {
  vertical-align: top;
  padding: 0.6em;
}
 
th {
  background-color: #e1caac;
  color: black;
}


table.zebra tr.odd {
thead {
background-color: #aad7fd;
  background-color: #e1caac;
  color: black;
}
}
tbody tr:nth-child(odd) {
  background-color: #f9f5ef;
}
tbody tr:nth-child(even) {
  background-color: #ffffff;
}


/* Indicadores de bytes en Cambios recientes */
/* Indicadores de bytes en Cambios recientes */
.mw-plusminus-pos { color: #2aa933; }
.mw-plusminus-pos { color: #2aa933; }
.mw-plusminus-neg { color: #e3636d; }
.mw-plusminus-neg { color: #e3636d; }
.mw-plusminus-null { color: #aaaaaa; }
/*CSS Sacado de Wikipedia.es (https://es.wikipedia.org/wiki/MediaWiki:Common.css)
/* Arregla problemas interlineado para <sup> y <sub> */
sup, sub {
    line-height: 1em;
}
/* Margen inferior en encabezados de nivel 3 en adelante (ya presente en h2) */
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
    margin-bottom:.25em;
}
/* TABLAS */
/* distinto color en filas pares */
/* default: grisecito */
table.striped tr:nth-child(even) {
background-color: #f2f3f4;
}

Revisión del 17:50 1 mar 2026

/* Los estilos CSS definidos aquí se aplicarán a todas las pieles (skins) de la web*/
/* Todos los cambios aplicados a esta página deben verse reflejados en MediaWiki:Mobile.css, y vice versa. */

/* Galerías */
/* Ayuda para eliminar las etiquetas <center> anticuadas */
.gallery.mw-gallery-traditional {
 text-align: center;
}

h2 {
    padding-top: 15px;
}

li.main li {
    padding-right: 2px;
    text-align: left;
    padding-left: 20px;
}

@media screen and (min-width: 1024px)
{
.item1
{
  width: 65%;
  margin-right: 1%;
}

.item2
{
  width: 35%;
}

.index-div
{
   display: flex;
   width: 100%;
}
}


/* TABLAS ESTILO ZEBRA*/
/* Estilo visual para tablas con estilo zebra */

.wikitable > tr > th, .wikitable > * > tr > th {
    background-color: #e1caac;
    color: #000;
    text-align: center;
  }
}

table {
  table-layout: fixed;
  width: 80%;
  min-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #ffffff;
  text-align:center;
}

th,
td {
  vertical-align: top;
  padding: 0.6em;
}

th {
  background-color: #e1caac;
  color: black;
}

thead {
  background-color: #e1caac;
  color: black;
}

tbody tr:nth-child(odd) {
  background-color: #f9f5ef;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}


/* Indicadores de bytes en Cambios recientes */
.mw-plusminus-pos { color: #2aa933; }
.mw-plusminus-neg { color: #e3636d; }
.mw-plusminus-null { color: #aaaaaa; }


/*CSS Sacado de Wikipedia.es (https://es.wikipedia.org/wiki/MediaWiki:Common.css)
/* Arregla problemas interlineado para <sup> y <sub> */
sup, sub {
    line-height: 1em;
}

/* Margen inferior en encabezados de nivel 3 en adelante (ya presente en h2) */
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
    margin-bottom:.25em;
}

/* TABLAS */
/* distinto color en filas pares */
/* default: grisecito */
table.striped tr:nth-child(even) {
	background-color: #f2f3f4;
}