diff --git a/resources/skins.minerva.content.styles/tables.less b/resources/skins.minerva.content.styles/tables.less index b2f4519..94bbe09 100644 --- a/resources/skins.minerva.content.styles/tables.less +++ b/resources/skins.minerva.content.styles/tables.less @@ -33,31 +33,33 @@ caption { text-align: left; } - - // For skinning normal data tables - // Compare with mediawiki.legacy/shared.css - &.wikitable { - border: 1px solid @colorGray5; - // Note older browsers will fall back to @grayLight - border-color: fade( @colorGray5, 30 ); - - // We only style cells that are direct children of the wikitable table since - // table tags may be used for non-table purposes within the cells. - > tr > th, - > tr > td, - > * > tr > th, - > * > tr > td { - border: 1px solid @colorGray5; - // Note older browsers will fall back to @grayLight - border-color: fade( @colorGray5, 30 ); - padding: 0.2em; - } - - // Make headings distinguishable - > tr > th, - > * > tr > th { - background-color: @grayLightest; - } - } + } +} + +// For skinning normal data tables +// Compare with mediawiki.legacy/shared.css +// Move out of .content selector to avoid increased +// specificty conflicts e.g. with tablesorter (T205945) +table.wikitable { + border: 1px solid @colorGray5; + // Note older browsers will fall back to @grayLight + border-color: fade( @colorGray5, 30 ); + + // We only style cells that are direct children of the wikitable table since + // table tags may be used for non-table purposes within the cells. + > tr > th, + > tr > td, + > * > tr > th, + > * > tr > td { + border: 1px solid @colorGray5; + // Note older browsers will fall back to @grayLight + border-color: fade( @colorGray5, 30 ); + padding: 0.2em; + } + + // Make headings distinguishable + > tr > th, + > * > tr > th { + background-color: @grayLightest; } }