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
|
|
|
|
2024-07-07 05:55:49 +00:00
|
|
|
// Avoid double border (#902)
|
|
|
|
&[ border='1' ] {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
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 {
|
2024-07-15 06:07:25 +00:00
|
|
|
border-top: var( --border-width-base ) solid var( --border-color-base );
|
2023-05-07 20:28:38 +00:00
|
|
|
}
|
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 {
|
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 {
|
|
|
|
th,
|
|
|
|
td {
|
2024-07-15 06:07:25 +00:00
|
|
|
border-top: var( --border-width-base ) solid var( --border-color-base );
|
2024-02-26 22:48:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border-top: 0;
|
|
|
|
|
|
|
|
&: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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-15 18:08:00 +00:00
|
|
|
}
|