mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 00:48:46 +00:00
Reduce specificity of wikitable overrides
Bug: T205945 Change-Id: I88d5b9699661005144f3eebc804438afaae373aa
This commit is contained in:
parent
e8d4220799
commit
59c45c2b6d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue