Reduce specificity of wikitable overrides
Bug: T205945 Change-Id: I88d5b9699661005144f3eebc804438afaae373aa
This commit is contained in:
parent
e8d4220799
commit
59c45c2b6d
|
@ -33,31 +33,33 @@
|
||||||
caption {
|
caption {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// For skinning normal data tables
|
}
|
||||||
// Compare with mediawiki.legacy/shared.css
|
|
||||||
&.wikitable {
|
// For skinning normal data tables
|
||||||
border: 1px solid @colorGray5;
|
// Compare with mediawiki.legacy/shared.css
|
||||||
// Note older browsers will fall back to @grayLight
|
// Move out of .content selector to avoid increased
|
||||||
border-color: fade( @colorGray5, 30 );
|
// specificty conflicts e.g. with tablesorter (T205945)
|
||||||
|
table.wikitable {
|
||||||
// We only style cells that are direct children of the wikitable table since
|
border: 1px solid @colorGray5;
|
||||||
// table tags may be used for non-table purposes within the cells.
|
// Note older browsers will fall back to @grayLight
|
||||||
> tr > th,
|
border-color: fade( @colorGray5, 30 );
|
||||||
> tr > td,
|
|
||||||
> * > tr > th,
|
// We only style cells that are direct children of the wikitable table since
|
||||||
> * > tr > td {
|
// table tags may be used for non-table purposes within the cells.
|
||||||
border: 1px solid @colorGray5;
|
> tr > th,
|
||||||
// Note older browsers will fall back to @grayLight
|
> tr > td,
|
||||||
border-color: fade( @colorGray5, 30 );
|
> * > tr > th,
|
||||||
padding: 0.2em;
|
> * > tr > td {
|
||||||
}
|
border: 1px solid @colorGray5;
|
||||||
|
// Note older browsers will fall back to @grayLight
|
||||||
// Make headings distinguishable
|
border-color: fade( @colorGray5, 30 );
|
||||||
> tr > th,
|
padding: 0.2em;
|
||||||
> * > tr > th {
|
}
|
||||||
background-color: @grayLightest;
|
|
||||||
}
|
// Make headings distinguishable
|
||||||
}
|
> tr > th,
|
||||||
|
> * > tr > th {
|
||||||
|
background-color: @grayLightest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue