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 41: Línea 41:
/* TABLAS ESTILO CEBRA*/
/* TABLAS ESTILO CEBRA*/
// Initialises stripes on all zebra tables after page load
// Initialises stripes on all zebra tables after page load
$(document).ready(function() {
$(document).ready(function() {
$('table.dqwtabla tbody tr:nth-child(even)').addClass('even');
$('table.zebra tbody tr:nth-child(even)').addClass('even');
$('table.dqwtabla tbody tr:nth-child(odd)').addClass('odd');
$('table.zebra tbody tr:nth-child(odd)').addClass('odd');
});
});


Línea 50: Línea 49:
$(document).on('sortEnd.tablesorter', function(event) {
$(document).on('sortEnd.tablesorter', function(event) {
var table = $(event.target);
var table = $(event.target);
if(table.hasClass('dqwtabla')) {
if(table.hasClass('zebra')) {
$('tbody tr:nth-child(even)',table).addClass('even').removeClass('odd');
$('tbody tr:nth-child(even)',table).addClass('even').removeClass('odd');
$('tbody tr:nth-child(odd)',table).addClass('odd').removeClass('even');
$('tbody tr:nth-child(odd)',table).addClass('odd').removeClass('even');
Línea 56: Línea 55:
});
});


table.dqwtabla tr.odd {
table.zebra tr.odd {
background-color: #aad7fd;
background-color: #aad7fd;
}
}

Revisión del 16:38 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 CEBRA*/
// Initialises stripes on all zebra tables after page load
$(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
$(document).on('sortEnd.tablesorter', function(event) {
	var table = $(event.target);
	if(table.hasClass('zebra')) {
		$('tbody tr:nth-child(even)',table).addClass('even').removeClass('odd');
		$('tbody tr:nth-child(odd)',table).addClass('odd').removeClass('even');
	}
});

table.zebra tr.odd {
	background-color: #aad7fd;
}

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