MediaWiki:Tables.css: Difference between revisions

Kuhlau (talk | contribs)
No edit summary
Kuhlau (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 23: Line 23:
}
}


.page-content :is(.article-table, .wikitable, .fandom-table) {
.article-table {
border: 1px solid var(--theme-border-color);
}
.article-table tr {
border-bottom: 1px solid var(--theme-border-color);
}
 
.mw-parser-output :is(.article-table, .wikitable, .fandom-table) {
margin: 1em 0;
margin: 1em 0;
}
}


.page-content .article-table {
.mw-parser-output .article-table,
.mw-parser-output .sortable {
border-collapse: collapse;
border-collapse: collapse;
}
}
Line 60: Line 68:
border-radius: 4px;
border-radius: 4px;
overflow: hidden;
overflow: hidden;
outline: 1px solid var(--theme-border-color);
outline-offset: -1px;
}
}


Line 112: Line 118:
.fandom-table th hr,
.fandom-table th hr,
.wikitable.filehistory th hr {
.wikitable.filehistory th hr {
border: 1px solid var(--theme-border-color);
}
.wikitable tr th:last-child,
.fandom-table:not(.article-table) tr th:last-child,
.wikitable.filehistory tr th:last-child {
border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
}
}
Line 126: Line 126:
.wikitable.filehistory td {
.wikitable.filehistory td {
padding: 5px 10px;
padding: 5px 10px;
border: 1px solid var(--theme-border-color);
}
.wikitable td:last-child,
.fandom-table:not(.article-table) td:last-child,
.wikitable.filehistory td:last-child {
border: 1px solid var(--theme-border-color);
border: 1px solid var(--theme-border-color);
}
}
Line 632: Line 626:


/** For [[Archon Quests]] Character Appearances **/
/** For [[Archon Quests]] Character Appearances **/
.page-content .appearances-table > * > tr > :is(th, td) {
.mw-parser-output .appearances-table > * > tr > :is(th, td) {
padding-top: 0;
padding-top: 0;
padding-bottom: 0;
padding-bottom: 0;
}
}


.page-content .appearances-table tr:not(:first-child):not(:nth-child(2)) th:not(:nth-child(1)) {
.mw-parser-output .appearances-table tr:not(:first-child):not(:nth-child(2)) th:not(:nth-child(1)) {
border: solid 1px var(--theme-border-color);
border: solid 1px var(--theme-border-color);
}
}


/** zero padding table cell and header **/
/** zero padding table cell and header **/
.page-content table.p-0 td,
.mw-parser-output table.p-0 td,
.page-content table.p-0 th {
.mw-parser-output table.p-0 th {
padding: 0;
padding: 0;
}
}


/** zero margin cell and header **/
/** zero margin cell and header **/
.page-content table.m-0 td,
.mw-parser-output table.m-0 td,
.page-content table.m-0 th {
.mw-parser-output table.m-0 th {
margin: 0;
margin: 0;
}
}
Line 725: Line 719:
:root .mediawiki .jquery-tablesorter {
:root .mediawiki .jquery-tablesorter {
.headerSort {
.headerSort {
padding-right: 12px;
padding-right: 20px;
&:before, &:after {
&:before, &:after {
margin-right: 2px;
margin-right: 2px;
Line 763: Line 757:
}
}
}
}
}
/* fix border color base overriding border color */
.wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td {
border: 1px solid var(--theme-border-color);
}
}