mediawiki-skins-Citizen/resources/skins.citizen.styles/common/wikitable.less

46 lines
921 B
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
table.wikitable {
border: 0; // Override core MW styles
background-color: transparent; // Override core MW styles
border-collapse: collapse;
color: var( --color-base ); // Override core MW styles
text-align: left; // So that it can be overrided from table element
2019-08-15 17:40:13 +00:00
2020-06-10 02:59:54 +00:00
caption {
margin-top: @content-margin-top;
font-weight: 600;
2020-06-10 02:59:54 +00:00
text-align: left;
}
2019-12-26 10:21:50 +00:00
tr {
vertical-align: top;
2019-08-15 17:40:13 +00:00
2019-12-26 10:21:50 +00:00
th {
background-color: transparent;
color: var( --color-base--subtle );
2019-12-26 10:21:50 +00:00
font-size: @content-caption-size;
font-weight: 500;
2019-12-26 10:21:50 +00:00
}
2019-11-12 20:40:11 +00:00
2019-12-26 10:21:50 +00:00
td {
font-size: @content-monospace-size;
}
2019-08-15 17:40:13 +00:00
2019-12-26 10:21:50 +00:00
th,
td {
padding: @margin-side / 2 @margin-side @margin-side / 2 0;
border: 0;
border-bottom: 1px solid var( --border-color-base );
2019-12-26 10:21:50 +00:00
}
2019-11-12 20:40:11 +00:00
2019-12-26 10:21:50 +00:00
&:hover {
background-color: var( --background-color-quiet--hover );
2019-12-26 10:21:50 +00:00
}
}
2019-08-15 17:40:13 +00:00
}
2019-10-07 23:28:16 +00:00
2021-04-11 21:57:50 +00:00
@media ( max-width: @width-breakpoint-desktop-wide ) {
2019-12-26 10:21:50 +00:00
table.wikiatble {
white-space: nowrap;
}
2020-06-10 03:00:57 +00:00
}