mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 14:34:09 +00:00
feat(wikitable): ✨ use more accurate selectors to apply border and border radius
This commit is contained in:
parent
2fe94438ee
commit
cc0820c204
|
@ -41,6 +41,7 @@
|
|||
&-content {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
|
||||
> .wikitable {
|
||||
display: table;
|
||||
|
|
|
@ -70,9 +70,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
thead:has( + tbody:not( :empty ) ),
|
||||
thead:has( + tfoot:not( :empty ) ),
|
||||
tbody:has( + tfoot:not( :empty ) ) {
|
||||
/* Add border separator between tr, thead, tbody, tfoot */
|
||||
> :not( [ hidden ] ) ~ :not( [ hidden ] ),
|
||||
> * > :not( [ hidden ] ) ~ :not( [ hidden ] ) {
|
||||
border-top: var( --border-width-base ) solid var( --border-color-base );
|
||||
}
|
||||
|
||||
/* Reset border radius between thead tbody, tbody tfoot, etc. */
|
||||
> :has( + :not( :empty ) ) {
|
||||
tr:last-of-type {
|
||||
th,
|
||||
td {
|
||||
|
@ -87,9 +92,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
thead + tbody:not( :empty ),
|
||||
thead + tfoot:not( :empty ),
|
||||
tbody + tfoot:not( :empty ) {
|
||||
> * + :not( :empty ) {
|
||||
tr:first-of-type {
|
||||
th,
|
||||
td {
|
||||
|
|
Loading…
Reference in a new issue