Diferencia entre revisiones de «MediaWiki:Common.css»
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 82: | Línea 82: | ||
} | } | ||
/* | /* TABLAS ESTILO CEBRA*/ | ||
// Initialises stripes on all zebra tables after page load | |||
. | $(document).ready(function() { | ||
$('table.dqwtabla tbody tr:nth-child(even)').addClass('even'); | |||
$('table.dqwtabla tbody tr:nth-child(odd)').addClass('odd'); | |||
}); | |||
} | |||
table { | // Re do stripes on a table after sort finishes | ||
$(document).on('sortEnd.tablesorter', function(event) { | |||
var table = $(event.target); | |||
if(table.hasClass('dqwtabla')) { | |||
$('tbody tr:nth-child(even)',table).addClass('even').removeClass('odd'); | |||
$('tbody tr:nth-child(odd)',table).addClass('odd').removeClass('even'); | |||
} | |||
}); | |||
. | table.dqwtabla tr.odd { | ||
background-color: #aad7fd; | |||
} | } | ||