Reduce specificity of wikitable overrides

Bug: T205945
Change-Id: I88d5b9699661005144f3eebc804438afaae373aa
This commit is contained in:
Ed Sanders 2018-10-11 14:38:07 +01:00
parent e8d4220799
commit 59c45c2b6d
1 changed files with 28 additions and 26 deletions

View File

@ -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;
}
}