User:Eddieringle/vector.css

/* sortable tables and JS enhanced wikitables with thead, works with Safari. This is ideal. */ /* But borders are broken: https://bugs.webkit.org/show_bug.cgi?id=128486 */ .jquery-tablesorter thead th, .mw-sticky-header thead th { position: sticky; top: 0; }

/* This does not seem to work, possibly due to the absolute/relative hacking mess of timeless */ @media screen and (max-width: 1099px) and (min-width: 851px) { .skin-timeless .jquery-tablesorter > thead, .skin-timeless .mw-sticky-header > thead { top: 3.125em; } }

@media screen and (min-width: 1100px) { .skin-timeless .jquery-tablesorter > thead, .skin-timeless .mw-sticky-header > thead { top: 6em; } }

.jquery-tablesorter tfoot th, .mw-sticky-header tfoot th { position: sticky; bottom: 0; } /* On mobile, where we have tables in overflowable boxes to avoid viewport overflows, * by using display:block, sticky never works though :( */