Diferencia entre revisiones de «MediaWiki:Common.css»
Ir a la navegación
Ir a la búsqueda
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; | |||
} | } | ||
Revisión del 17:33 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%;
}
}
/* 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;
}
/* 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');
});
// 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;
}
/* Indicadores de bytes en Cambios recientes */
.mw-plusminus-pos { color: #2aa933; }
.mw-plusminus-neg { color: #e3636d; }