Diferencia entre revisiones de «MediaWiki:Common.css»

Sin resumen de edición
Sin resumen de edición
 
(No se muestran 15 ediciones intermedias del mismo usuario)
Línea 39: Línea 39:




/* TABLAS ESTILO CEBRA*/
/* Indicadores de bytes en Cambios recientes */
// Initialises stripes on all zebra tables after page load
.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 */
/* Estilo visual para tablas con estilo zebra */
 
.wikitable > tr > th, .wikitable > * > tr > th {
    background-color: #e1caac;
    color: #000;
    text-align: center;
  }
}


$(document).ready(function() {
table {
$('table.dqwtabla tbody tr:nth-child(even)').addClass('even');
  table-layout: fixed;
$('table.dqwtabla tbody tr:nth-child(odd)').addClass('odd');
  width: 80%;
});
  min-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #ffffff;
  text-align:center;
  vertical-align: top;
  padding: 0.6em;
}
 
 
th {
  background-color: #e1caac;
  color: black;
}


// Re do stripes on a table after sort finishes
thead {
$(document).on('sortEnd.tablesorter', function(event) {
  background-color: #e1caac;
var table = $(event.target);
  color: black;
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 {
tbody tr:nth-child(odd) {
background-color: #aad7fd;
  background-color: #f9f5ef;
}
}


/* Indicadores de bytes en Cambios recientes */
tbody tr:nth-child(even) {
.mw-plusminus-pos { color: #2aa933; }
  background-color: #ffffff;
.mw-plusminus-neg { color: #e3636d; }
}