2022-11-15 18:08:00 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.content.tables
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
2024-02-26 22:48:21 +00:00
|
|
|
* Date: 2024-02-26
|
2022-11-15 18:08:00 +00:00
|
|
|
*/
|
|
|
|
|
2024-05-29 21:47:13 +00:00
|
|
|
// TODO: Revisit on MW 1.43 since Minerva table styles are merged upstream
|
2022-11-15 18:08:00 +00:00
|
|
|
.wikitable {
|
2024-05-29 21:47:13 +00:00
|
|
|
display: block;
|
|
|
|
max-width: max-content; // Needed for the border
|
2022-11-15 18:08:00 +00:00
|
|
|
margin: var( --space-md ) 0;
|
2024-05-29 21:47:13 +00:00
|
|
|
overflow-x: auto;
|
2024-04-16 05:28:45 +00:00
|
|
|
font-size: var( --font-size-small );
|
|
|
|
border-spacing: 0;
|
2024-02-26 23:47:44 +00:00
|
|
|
border: 1px solid var( --border-color-base );
|
|
|
|
border-radius: var( --border-radius--medium );
|
2022-11-15 18:08:00 +00:00
|
|
|
|
|
|
|
caption {
|
|
|
|
padding-right: var( --space-sm );
|
|
|
|
padding-left: var( --space-sm );
|
2024-05-29 21:47:13 +00:00
|
|
|
margin-bottom: var( --space-xs );
|
2022-11-15 18:08:00 +00:00
|
|
|
font-weight: var( --font-weight-semibold );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-11-15 18:08:00 +00:00
|
|
|
text-align: start;
|
|
|
|
}
|
2023-05-07 20:29:45 +00:00
|
|
|
|
2023-05-07 20:28:38 +00:00
|
|
|
thead + tbody {
|
|
|
|
border-top: 1px solid var( --border-color-base );
|
|
|
|
}
|
2022-11-15 18:08:00 +00:00
|
|
|
|
2023-07-17 00:25:04 +00:00
|
|
|
tbody tr {
|
2022-11-15 18:08:00 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
font-weight: var( --font-weight-normal );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-15 18:16:39 +00:00
|
|
|
text-align: start;
|
2023-07-28 01:19:27 +00:00
|
|
|
letter-spacing: 0.05em;
|
2022-11-15 18:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: var( --space-xs ) var( --space-sm );
|
|
|
|
}
|
2024-02-26 22:48:21 +00:00
|
|
|
|
|
|
|
tr {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border-top: 1px solid var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border-top: 0;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
border-top-left-radius: var( --border-radius--medium );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-top-right-radius: var( --border-radius--medium );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
&:first-child {
|
|
|
|
border-bottom-left-radius: var( --border-radius--medium );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom-right-radius: var( --border-radius--medium );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-15 18:08:00 +00:00
|
|
|
}
|