Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
m |
m |
||
(12 intermediate revisions by the same user not shown) | |||
Line 201: | Line 201: | ||
} | } | ||
− | .mw-parser-output | + | |
− | padding-left: 1em; | + | .mw-parser-output .tabbertab { |
+ | /* padding-left: 1em; */ | ||
+ | /* | ||
+ | border-left: 1px solid #CCC; | ||
+ | padding: 0.001em 0 0 0.125em; | ||
+ | */ | ||
} | } | ||
− | .mw-parser-output .tabbertab { | + | /* |
− | + | .mw-parser-output .tabbertab p { | |
+ | margin-left: -1em; | ||
+ | } | ||
+ | .mw-parser-output .tabbertab table p { | ||
+ | margin-left: initial; | ||
} | } | ||
+ | */ | ||
.infobox ul.tabbernav { | .infobox ul.tabbernav { | ||
− | + | text-align: center; | |
} | } | ||
.infobox .tabbertab { | .infobox .tabbertab { | ||
Line 228: | Line 238: | ||
.spoilerblur:hover { | .spoilerblur:hover { | ||
filter: none; | filter: none; | ||
+ | } | ||
+ | |||
+ | /* {{pp-template}} */ | ||
+ | /** | ||
+ | * Classes to make row N or thead top sticky, and/or column N left sticky. | ||
+ | * Reverse collapsible behavior: | ||
+ | * - Show (not mw-collapsed): Enabled w/ scroll and sticky. | ||
+ | * - Hide (mw-collapsed): Disabled w/o scroll or sticky. | ||
+ | * | ||
+ | * Div classes: | ||
+ | * - sticky-table-collapsible: Adds collapsible; contains scroll div. | ||
+ | * - sticky-table-scroll: Adds scroll; contains table. | ||
+ | * | ||
+ | * Table classes: | ||
+ | * - sticky-table-head: Top sticky thead rows. | ||
+ | * - sticky-table-row1: Top sticky first row. | ||
+ | * - sticky-table-row2: Top sticky second row. | ||
+ | * - sticky-table-col1: Left sticky first column. | ||
+ | * - sticky-table-col2: Left sticky second column. | ||
+ | * | ||
+ | * Cell classes: | ||
+ | * - sticky-table-none: Cell not sticky to fix span issues. | ||
+ | * - sticky-table-left: Cell left sticky to fix span issues. | ||
+ | * | ||
+ | * Notes: | ||
+ | * - Sortable moves to thead any header rows and (after sort) sorttop rows. | ||
+ | * - Sticky gadget (.mw-sticky-header) moves to thead any wikitable header rows. | ||
+ | * - Collapsible states reversed due to anchor links removing "mw-collapsed". | ||
+ | * Also reverses the "aria-expanded" attribute's true/false value. | ||
+ | */ | ||
+ | @media screen { | ||
+ | /** | ||
+ | * Div containers with collapsible and restricted height/width + scroll. | ||
+ | */ | ||
+ | .sticky-table-collapsible { | ||
+ | margin-bottom: 1em; /* Moved from table. */ | ||
+ | margin-top: 1em; /* Moved from table. */ | ||
+ | } | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-scroll { | ||
+ | max-height: 75vh; | ||
+ | max-width: max-content; /* Vertical scroll next to div. */ | ||
+ | min-width: 50px; /* In case another element floats right. */ | ||
+ | overflow-y: auto; | ||
+ | } | ||
+ | .sticky-table-collapsible table { | ||
+ | margin-bottom: 0; /* Move to div. */ | ||
+ | margin-top: 0; /* Move to div. */ | ||
+ | } | ||
+ | .sticky-table-collapsible table > caption { | ||
+ | text-align: left; /* Fix narrow, centered caption hidden on wide table. */ | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Modify collapsible. | ||
+ | */ | ||
+ | /* Button. */ | ||
+ | .sticky-table-collapsible > .mw-collapsible-toggle { | ||
+ | float: none; /* Was "right". */ | ||
+ | padding-left: 0; /* Was "0.2em". */ | ||
+ | padding-right: 0; /* Was "0.2em". */ | ||
+ | display: none; /* Was "inline-block". Hide. Below shows on mobile. */ | ||
+ | } | ||
+ | @media (max-width: 639px), (max-height: 639px) { | ||
+ | .sticky-table-collapsible > .mw-collapsible-toggle { | ||
+ | display: inline-block; /* Reset. */ | ||
+ | } | ||
+ | } | ||
+ | .sticky-table-collapsible .mw-collapsible-text { | ||
+ | font-size: 88%; | ||
+ | } | ||
+ | /* Disabled. */ | ||
+ | .sticky-table-collapsible.mw-collapsed .mw-collapsible-content { | ||
+ | display: block !important; /* Was "none". */ | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Make top sticky. | ||
+ | */ | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row1:not(.sticky-table-row2):not(.sticky-table-head) > thead > tr:nth-child(1), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row1:not(.sticky-table-row2):not(.sticky-table-head) > caption + tbody > tr:nth-child(1), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row1:not(.sticky-table-row2):not(.sticky-table-head) > tbody:first-child > tr:nth-child(1), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row2:not(.sticky-table-row1):not(.sticky-table-head) > thead > tr:nth-child(2), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row2:not(.sticky-table-row1):not(.sticky-table-head) > caption + tbody > tr:nth-child(2), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row2:not(.sticky-table-row1):not(.sticky-table-head) > tbody:first-child > tr:nth-child(2), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-head:not(.sticky-table-row1):not(.sticky-table-row2) > thead { | ||
+ | position: sticky; /* Was "static". */ | ||
+ | top: 0; | ||
+ | z-index: 10; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Make left sticky. | ||
+ | */ | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-col1:not(.sticky-table-col2) > * > tr > :nth-child(1):not(.sticky-table-none), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .sticky-table-col2:not(.sticky-table-col1) > * > tr > :nth-child(2):not(.sticky-table-none), | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) table > * > tr > .sticky-table-left { | ||
+ | position: sticky; /* Was "static". */ | ||
+ | left: 0; | ||
+ | z-index: 9; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Fix scrolling data shows through sticky's transparent background. | ||
+ | * | ||
+ | * Note: ":not(.mw-collapsed)" removed so "row hover highlight" hover works. | ||
+ | */ | ||
+ | .sticky-table-collapsible table:not(.wikitable) { | ||
+ | background-color: white; | ||
+ | } | ||
+ | .sticky-table-collapsible table > thead, | ||
+ | .sticky-table-collapsible table > tbody, | ||
+ | .sticky-table-collapsible table > tfoot, | ||
+ | .sticky-table-collapsible table > * > tr, | ||
+ | .sticky-table-collapsible table > * > tr > td, | ||
+ | .sticky-table-collapsible :not(.wikitable) > * > tr > th { | ||
+ | background-color: inherit; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Fix missing borders due to sticky position and wikitable collapsed borders. | ||
+ | * | ||
+ | * Skip rare plain table separated borders, which sometimes shows scrolling | ||
+ | * data through sticky's 2px "border-spacing". | ||
+ | * | ||
+ | * Skip very rare Timeless plain table ".mw-datatable" collapsed boarders. | ||
+ | * | ||
+ | * Note: {{Static row numbers}} border separating header/sorttop from numbers | ||
+ | * missing and may not be fixable until Wikipedia supports newer CSS. | ||
+ | */ | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .wikitable { | ||
+ | border-collapse: separate; /* Was "collapse". */ | ||
+ | border-spacing: 0; | ||
+ | border-width: 1px 0 0 1px; | ||
+ | } | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .wikitable > * > tr > td, | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .wikitable > * > tr > th { | ||
+ | border-width: 0 1px 1px 0; | ||
+ | } | ||
+ | /* Adjust {{static row numbers}} borders. */ | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > * > tr::before { | ||
+ | border-right-width: 1px; | ||
+ | } | ||
+ | /* .sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > * > .sorttop:not(:has(~ .sorttop))::before, */ | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > tbody > tr:last-child::before, | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > tfoot > tr:last-child::before { | ||
+ | border-bottom-width: 1px; | ||
+ | } | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > tbody > tr:not(.static-row-header)::before { | ||
+ | border-top-width: 0 !important; | ||
+ | border-left-width: 0 !important; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Fix Timeless skin very wide tables not sticky. | ||
+ | */ | ||
+ | body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .overflowed, | ||
+ | body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .overflowed .content-table { | ||
+ | overflow: visible; /* Reset. */ | ||
+ | } | ||
+ | body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .overflowed { | ||
+ | margin-top: 0; /* Was "1em". */ | ||
+ | margin-bottom: 0; /* Was "1em". */ | ||
+ | } | ||
+ | body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .scroll-right.overflowed .content-table-right { | ||
+ | box-shadow: none; /* Reset. */ | ||
+ | border-left: none; /* Reset. */ | ||
+ | } | ||
+ | body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .wikitable { | ||
+ | padding: 0; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Fix skins width <=639px (mobile) not sticky. | ||
+ | */ | ||
+ | @media (max-width: 639px) { | ||
+ | body.skin-minerva .sticky-table-collapsible:not(.mw-collapsed) table, | ||
+ | body.skin-monobook .sticky-table-collapsible:not(.mw-collapsed) table, | ||
+ | body.skin-vector-legacy .sticky-table-collapsible:not(.mw-collapsed) table, | ||
+ | body.skin-vector-2022 .sticky-table-collapsible:not(.mw-collapsed) table { | ||
+ | display: table; /* Was "block". */ | ||
+ | } | ||
+ | body.skin-minerva .sticky-table-collapsible:not(.mw-collapsed) table > caption { | ||
+ | display: table-caption; /* Was "block". */ | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Fix "Sticky Table Headers" gadget styles causing sticky issues. | ||
+ | */ | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .jquery-tablesorter > thead, | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .mw-sticky-header > thead { | ||
+ | top: 0 !important; /* Was value based on skin and max/min width. */ | ||
+ | } | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .jquery-tablesorter > tfoot, | ||
+ | .sticky-table-collapsible:not(.mw-collapsed) .mw-sticky-header > tfoot { | ||
+ | position: static; /* Was "sticky". */ | ||
+ | bottom: auto; /* Was "0". */ | ||
+ | } | ||
+ | } | ||
+ | |||
+ | @media all { | ||
+ | /* Set important to override template parameter. */ | ||
+ | .sticky-table-collapsible.mw-collapsed .sticky-table-scroll { | ||
+ | max-height: none !important; /* Default. */ | ||
+ | max-width: none !important; /* Default. */ | ||
+ | } | ||
} | } |
Latest revision as of 21:54, 28 October 2024
/* CSS placed here will be applied to all skins */
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
width: 6em;
}
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
/* @noflip */
float: right;
font-weight: normal;
/* @noflip */
margin-left: 0.5em;
/* @noflip */
text-align: right;
width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
width: 6em;
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
font-weight: normal;
/* @noflip */
text-align: right;
}
.navbox .mw-collapsible-toggle {
width: 6em;
}
/* Infobox template style */
.infobox {
border: 1px solid #aaa;
border-spacing: 3px;
background-color: #f9f9f9;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #aaa;
/* @noflip */
border-right: 1px solid #aaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
/* @noflip */
border-right: 1px solid #aaa;
}
/* Styles for geography infoboxes, eg countries,
country subdivisions, cities, etc. */
.infobox.geography {
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
.infobox.geography td,
.infobox.geography th {
border-top: 1px solid #aaa;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #aaa;
padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
border-top: 0;
border-bottom: 1px solid #aaa;
padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
border: 0;
padding: 0;
}
/* Theme */
hr {
overflow: hidden;
}
/* Tabber */
.tabber .tabbertab {
padding: 0;
/* border: 1px solid #CCC; */
border: none;
}
ul.tabbernav li a:link {
border-radius: 2px;
}
ul.tabbernav {
margin: 0;
padding: 0;
/* border-bottom: none; */
font-weight: bold;
}
ul.tabbernav li {
list-style: none;
margin: .5em 0;
padding: 0;
}
ul.tabbernav li a {
padding: 3px .5em;
margin-left: 3px;
background: #eaecf0;
border: 1px solid #a2a9b1;
text-decoration: none;
white-space: pre;
}
ul.tabbernav li.tabberactive a {
color: #000;
border-color: gray;
}
ul.tabbernav li.tabberactive a:hover {
border-color: #CCC;
}
.mw-parser-output .tabbertab {
/* padding-left: 1em; */
/*
border-left: 1px solid #CCC;
padding: 0.001em 0 0 0.125em;
*/
}
/*
.mw-parser-output .tabbertab p {
margin-left: -1em;
}
.mw-parser-output .tabbertab table p {
margin-left: initial;
}
*/
.infobox ul.tabbernav {
text-align: center;
}
.infobox .tabbertab {
padding-left: 0;
}
/* SpoilerBlur */
.spoilerblur {
filter: blur(3px);
-webkit-filter: blur(3px);
opacity: 0.40;
-webkit-transition: all 0.1s 0 ease-in;
-moz-transition: all 0.1s 0 ease-in;
-o-transition: all 0.1s 0 ease-in;
-ms-transition: all 0.1s 0 ease-in;
transition: all 0.1s 0 ease-in;
}
.spoilerblur:hover {
filter: none;
}
/* {{pp-template}} */
/**
* Classes to make row N or thead top sticky, and/or column N left sticky.
* Reverse collapsible behavior:
* - Show (not mw-collapsed): Enabled w/ scroll and sticky.
* - Hide (mw-collapsed): Disabled w/o scroll or sticky.
*
* Div classes:
* - sticky-table-collapsible: Adds collapsible; contains scroll div.
* - sticky-table-scroll: Adds scroll; contains table.
*
* Table classes:
* - sticky-table-head: Top sticky thead rows.
* - sticky-table-row1: Top sticky first row.
* - sticky-table-row2: Top sticky second row.
* - sticky-table-col1: Left sticky first column.
* - sticky-table-col2: Left sticky second column.
*
* Cell classes:
* - sticky-table-none: Cell not sticky to fix span issues.
* - sticky-table-left: Cell left sticky to fix span issues.
*
* Notes:
* - Sortable moves to thead any header rows and (after sort) sorttop rows.
* - Sticky gadget (.mw-sticky-header) moves to thead any wikitable header rows.
* - Collapsible states reversed due to anchor links removing "mw-collapsed".
* Also reverses the "aria-expanded" attribute's true/false value.
*/
@media screen {
/**
* Div containers with collapsible and restricted height/width + scroll.
*/
.sticky-table-collapsible {
margin-bottom: 1em; /* Moved from table. */
margin-top: 1em; /* Moved from table. */
}
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-scroll {
max-height: 75vh;
max-width: max-content; /* Vertical scroll next to div. */
min-width: 50px; /* In case another element floats right. */
overflow-y: auto;
}
.sticky-table-collapsible table {
margin-bottom: 0; /* Move to div. */
margin-top: 0; /* Move to div. */
}
.sticky-table-collapsible table > caption {
text-align: left; /* Fix narrow, centered caption hidden on wide table. */
}
/**
* Modify collapsible.
*/
/* Button. */
.sticky-table-collapsible > .mw-collapsible-toggle {
float: none; /* Was "right". */
padding-left: 0; /* Was "0.2em". */
padding-right: 0; /* Was "0.2em". */
display: none; /* Was "inline-block". Hide. Below shows on mobile. */
}
@media (max-width: 639px), (max-height: 639px) {
.sticky-table-collapsible > .mw-collapsible-toggle {
display: inline-block; /* Reset. */
}
}
.sticky-table-collapsible .mw-collapsible-text {
font-size: 88%;
}
/* Disabled. */
.sticky-table-collapsible.mw-collapsed .mw-collapsible-content {
display: block !important; /* Was "none". */
}
/**
* Make top sticky.
*/
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row1:not(.sticky-table-row2):not(.sticky-table-head) > thead > tr:nth-child(1),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row1:not(.sticky-table-row2):not(.sticky-table-head) > caption + tbody > tr:nth-child(1),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row1:not(.sticky-table-row2):not(.sticky-table-head) > tbody:first-child > tr:nth-child(1),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row2:not(.sticky-table-row1):not(.sticky-table-head) > thead > tr:nth-child(2),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row2:not(.sticky-table-row1):not(.sticky-table-head) > caption + tbody > tr:nth-child(2),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-row2:not(.sticky-table-row1):not(.sticky-table-head) > tbody:first-child > tr:nth-child(2),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-head:not(.sticky-table-row1):not(.sticky-table-row2) > thead {
position: sticky; /* Was "static". */
top: 0;
z-index: 10;
}
/**
* Make left sticky.
*/
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-col1:not(.sticky-table-col2) > * > tr > :nth-child(1):not(.sticky-table-none),
.sticky-table-collapsible:not(.mw-collapsed) .sticky-table-col2:not(.sticky-table-col1) > * > tr > :nth-child(2):not(.sticky-table-none),
.sticky-table-collapsible:not(.mw-collapsed) table > * > tr > .sticky-table-left {
position: sticky; /* Was "static". */
left: 0;
z-index: 9;
}
/**
* Fix scrolling data shows through sticky's transparent background.
*
* Note: ":not(.mw-collapsed)" removed so "row hover highlight" hover works.
*/
.sticky-table-collapsible table:not(.wikitable) {
background-color: white;
}
.sticky-table-collapsible table > thead,
.sticky-table-collapsible table > tbody,
.sticky-table-collapsible table > tfoot,
.sticky-table-collapsible table > * > tr,
.sticky-table-collapsible table > * > tr > td,
.sticky-table-collapsible :not(.wikitable) > * > tr > th {
background-color: inherit;
}
/**
* Fix missing borders due to sticky position and wikitable collapsed borders.
*
* Skip rare plain table separated borders, which sometimes shows scrolling
* data through sticky's 2px "border-spacing".
*
* Skip very rare Timeless plain table ".mw-datatable" collapsed boarders.
*
* Note: {{Static row numbers}} border separating header/sorttop from numbers
* missing and may not be fixable until Wikipedia supports newer CSS.
*/
.sticky-table-collapsible:not(.mw-collapsed) .wikitable {
border-collapse: separate; /* Was "collapse". */
border-spacing: 0;
border-width: 1px 0 0 1px;
}
.sticky-table-collapsible:not(.mw-collapsed) .wikitable > * > tr > td,
.sticky-table-collapsible:not(.mw-collapsed) .wikitable > * > tr > th {
border-width: 0 1px 1px 0;
}
/* Adjust {{static row numbers}} borders. */
.sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > * > tr::before {
border-right-width: 1px;
}
/* .sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > * > .sorttop:not(:has(~ .sorttop))::before, */
.sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > tbody > tr:last-child::before,
.sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > tfoot > tr:last-child::before {
border-bottom-width: 1px;
}
.sticky-table-collapsible:not(.mw-collapsed) .static-row-numbers.wikitable > tbody > tr:not(.static-row-header)::before {
border-top-width: 0 !important;
border-left-width: 0 !important;
}
/**
* Fix Timeless skin very wide tables not sticky.
*/
body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .overflowed,
body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .overflowed .content-table {
overflow: visible; /* Reset. */
}
body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .overflowed {
margin-top: 0; /* Was "1em". */
margin-bottom: 0; /* Was "1em". */
}
body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .scroll-right.overflowed .content-table-right {
box-shadow: none; /* Reset. */
border-left: none; /* Reset. */
}
body.skin-timeless .sticky-table-collapsible:not(.mw-collapsed) .wikitable {
padding: 0;
}
/**
* Fix skins width <=639px (mobile) not sticky.
*/
@media (max-width: 639px) {
body.skin-minerva .sticky-table-collapsible:not(.mw-collapsed) table,
body.skin-monobook .sticky-table-collapsible:not(.mw-collapsed) table,
body.skin-vector-legacy .sticky-table-collapsible:not(.mw-collapsed) table,
body.skin-vector-2022 .sticky-table-collapsible:not(.mw-collapsed) table {
display: table; /* Was "block". */
}
body.skin-minerva .sticky-table-collapsible:not(.mw-collapsed) table > caption {
display: table-caption; /* Was "block". */
}
}
/**
* Fix "Sticky Table Headers" gadget styles causing sticky issues.
*/
.sticky-table-collapsible:not(.mw-collapsed) .jquery-tablesorter > thead,
.sticky-table-collapsible:not(.mw-collapsed) .mw-sticky-header > thead {
top: 0 !important; /* Was value based on skin and max/min width. */
}
.sticky-table-collapsible:not(.mw-collapsed) .jquery-tablesorter > tfoot,
.sticky-table-collapsible:not(.mw-collapsed) .mw-sticky-header > tfoot {
position: static; /* Was "sticky". */
bottom: auto; /* Was "0". */
}
}
@media all {
/* Set important to override template parameter. */
.sticky-table-collapsible.mw-collapsed .sticky-table-scroll {
max-height: none !important; /* Default. */
max-width: none !important; /* Default. */
}
}