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 );
|
2024-07-07 05:51:22 +00:00
|
|
|
border-collapse: collapse;
|
|
|
|
border-color: var( --border-color-base );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-medium );
|
2024-07-07 05:51:22 +00:00
|
|
|
box-shadow: var( --box-shadow-border );
|
2022-11-15 18:08:00 +00:00
|
|
|
|
|
|
|
caption {
|
2024-07-20 23:32:22 +00:00
|
|
|
padding: var( --space-xs ) var( --space-sm );
|
|
|
|
font-size: var( --font-size-medium );
|
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-07-17 00:25:04 +00:00
|
|
|
tbody tr {
|
2022-11-15 18:08:00 +00:00
|
|
|
&:hover {
|
2024-07-01 00:41:31 +00:00
|
|
|
background-color: var( --background-color-button-quiet--hover );
|
2022-11-15 18:08:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
2022-11-15 18:16:39 +00:00
|
|
|
text-align: start;
|
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 {
|
|
|
|
&:first-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
&:first-child {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-top-left-radius: var( --border-radius-medium );
|
2024-02-26 22:48:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-top-right-radius: var( --border-radius-medium );
|
2024-02-26 22:48:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
&:first-child {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-bottom-left-radius: var( --border-radius-medium );
|
2024-02-26 22:48:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
2024-07-05 17:24:31 +00:00
|
|
|
border-bottom-right-radius: var( --border-radius-medium );
|
2024-02-26 22:48:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-20 21:46:18 +00:00
|
|
|
|
2024-07-20 23:32:22 +00:00
|
|
|
thead:has( + tbody:not( :empty ) ),
|
|
|
|
thead:has( + tfoot:not( :empty ) ),
|
|
|
|
tbody:has( + tfoot:not( :empty ) ) {
|
2024-07-20 21:46:18 +00:00
|
|
|
tr:last-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
&:first-child {
|
|
|
|
border-bottom-left-radius: var( --border-radius-sharp );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom-right-radius: var( --border-radius-sharp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-20 23:32:22 +00:00
|
|
|
thead + tbody:not( :empty ),
|
|
|
|
thead + tfoot:not( :empty ),
|
|
|
|
tbody + tfoot:not( :empty ) {
|
2024-07-20 21:46:18 +00:00
|
|
|
tr:first-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
&:first-child {
|
|
|
|
border-top-left-radius: var( --border-radius-sharp );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-top-right-radius: var( --border-radius-sharp );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-15 18:08:00 +00:00
|
|
|
}
|