2017-07-12 15:12:40 +00:00
|
|
|
// Tables
|
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@import 'minerva.variables.less';
|
|
|
|
@import 'minerva.mixins.less';
|
|
|
|
|
|
|
|
.content {
|
|
|
|
table {
|
|
|
|
margin: 1em 0;
|
|
|
|
|
|
|
|
/* following 4 rules are needed for scrolling */
|
|
|
|
overflow: auto; /* for browsers that don't support overflow-y */
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
display: block;
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
|
|
caption {
|
|
|
|
display: block;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
// For skinning normal data tables
|
|
|
|
// Compare with mediawiki.legacy/shared.css
|
|
|
|
&.wikitable {
|
2017-08-28 20:35:53 +00:00
|
|
|
border: 1px solid @colorGray5;
|
2017-08-24 17:38:09 +00:00
|
|
|
// Note older browsers will fall back to @grayLight
|
2017-08-28 20:35:53 +00:00
|
|
|
border-color: fade( @colorGray5, 30 );
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
// 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 {
|
2017-08-28 20:35:53 +00:00
|
|
|
border: 1px solid @colorGray5;
|
2017-08-24 17:38:09 +00:00
|
|
|
// Note older browsers will fall back to @grayLight
|
2017-08-28 20:35:53 +00:00
|
|
|
border-color: fade( @colorGray5, 30 );
|
2017-07-12 15:12:40 +00:00
|
|
|
padding: 0.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make headings distinguishable
|
|
|
|
> tr > th,
|
|
|
|
> * > tr > th {
|
|
|
|
background-color: @grayLightest;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|