MediaWiki:Tables.css
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* table header and cell alignment */
.mw-parser-output :is(.article-table, .wikitable) tr :is(td, th) {
text-align: inherit;
padding: 0.2em 0.4em;
border-color: var(--theme-accent-color);
}
.page-content :is(.article-table, .wikitable) {
margin: 1em 0;
}
/* collapsible button in tables */
:is(.wikitable, .article-table) .mw-collapsible-toggle {
width: 5em;
width: auto;
width: fit-content;
}
/* collapsible button at caption on top of table */
:is(.wikitable, .article-table) caption .mw-collapsible-toggle {
display: inline-block;
float: left !important;
}
/* Reducing left margin when using lists in a table. */
.mw-parser-output td > .columntemplate > :is(ul, ol),
.mw-parser-output td > :is(ul, ol) {
margin-left: 1em;
}
/* Prevent fandom-table header from being covered */
.fandom-table .fixed-header {
z-index: 9;
}
/* New table styling */
.article-table,
.wikitable,
.fandom-table,
.wikitable.filehistory {
border-radius: 4px;
overflow: hidden;
outline: 1px solid var(--theme-accent-color);
outline-offset: -1px;
}
.wikitable,
.wikitable td,
.wikitable th,
.wikitable tr,
.fandom-table,
.fandom-table td,
.fandom-table th,
.fandom-table tr {
border: 1px solid var(--theme-accent-color);
}
/* remove left and right td and th border if both article-table and fandom-table used */
.fandom-table.article-table tr td,
.fandom-table.article-table tr th {
border: 1px solid var(--theme-accent-color);
border-left: 0;
border-right: 0;
}
.fandom-table.article-table tr td,
.fandom-table.article-table tr th {
border: 1px solid var(--theme-accent-color);
border-left: 0;
border-right: 0;
}
/* tr styling */
.article-table tr:last-child,
.wikitable tr:last-child,
.fandom-table tr:last-child,
.wikitable.filehistory tr:last-child {
border-radius: 0 0 4px 4px;
overflow: hidden;
}
/* th styling */
.wikitable th,
.fandom-table th,
.wikitable.filehistory th {
font-weight: bold;
border: 1px solid var(--theme-accent-color);
line-height: 20px;
padding: 10px;
}
.wikitable th hr,
.fandom-table th hr,
.wikitable.filehistory th hr {
border: 1px solid var(--theme-accent-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-accent-color);
}
/* td styling */
.wikitable td,
.wikitable td,
.wikitable.filehistory td {
padding: 5px 10px;
border: 1px solid var(--theme-accent-color);
}
.wikitable td:last-child,
.fandom-table:not(.article-table) td:last-child,
.wikitable.filehistory td:last-child {
border: 1px solid var(--theme-accent-color);
}
/* dark mode colors */
.mw-datatable > :is(tbody, thead) > tr > th,
.mw-datatable > tr > th,
.mw-json > :is(tbody, thead) > tr > th,
.mw-json > tr > th,
.wikitable > :is(tbody, thead) > tr > th,
.wikitable > tr > th {
background-color: #121212;
}
/* th colors */
.article-table th,
.wikitable th,
.fandom-table th,
.wikitable.filehistory th {
background-color: #121212;
border: 1px solid;
}
/* td colors */
.alternating-colors-table tr:nth-child(odd) {
background-color: #1F1F1F !important;
}
.sortable.alternating-colors-table tr:nth-child(odd) {
background-color: #1F1F1F !important;
}
.alternating-colors-table tr:nth-child(even) {
background-color: #161616 !important;
}
.sortable.alternating-colors-table tr:nth-child(even) {
background-color: #161616 !important;
}
/* ascension and stats */
.wikitable.promotion-stats th {
background-color: #121212;
}
.wikitable.promotion-stats tr.alternating1 {
background-color: #1F1F1F;
}
.wikitable.promotion-stats tr.alternating2 {
background-color: #161616;
}
.wikitable.promotion-stats tr.promotion {
background-color: #1F1F1F;
}
/*======================================================*/
/* Styles that can be added to an entire table itself */
/* to apply to each cell in the respective column. */
/* Removes the need to apply styles to individual cells.*/
/*======================================================*/
#content .mw-parser-output {
.tdl td,
.tdl1 td:nth-child(1),
.tdl2 td:nth-child(2),
.tdl3 td:nth-child(3),
.tdl4 td:nth-child(4),
.tdl5 td:nth-child(5),
.tdl6 td:nth-child(6),
.tdl7 td:nth-child(7),
.tdl8 td:nth-child(8),
.tdl9 td:nth-child(9),
.tdl10 td:nth-child(10),
.tdl11 td:nth-child(11),
.tdl12 td:nth-child(12),
.tdl13 td:nth-child(13),
.tdl14 td:nth-child(14),
.tdl15 td:nth-child(15),
.tdl16 td:nth-child(16),
.tdl17 td:nth-child(17),
.tdl18 td:nth-child(18),
.tdl19 td:nth-child(19),
.tdl20 td:nth-child(20) {
text-align: left;
}
.thl th,
.thl1 th:nth-child(1),
.thl2 th:nth-child(2),
.thl3 th:nth-child(3),
.thl4 th:nth-child(4),
.thl5 th:nth-child(5),
.thl6 th:nth-child(6),
.thl7 th:nth-child(7),
.thl8 th:nth-child(8),
.thl9 th:nth-child(9),
.thl10 th:nth-child(10),
.thl11 th:nth-child(11),
.thl12 th:nth-child(12),
.thl13 th:nth-child(13),
.thl14 th:nth-child(14),
.thl15 th:nth-child(15),
.thl16 th:nth-child(16),
.thl17 th:nth-child(17),
.thl18 th:nth-child(18),
.thl19 th:nth-child(19),
.thl20 th:nth-child(20) {
text-align: left;
}
.tdc td,
.tdc1 td:nth-child(1),
.tdc2 td:nth-child(2),
.tdc3 td:nth-child(3),
.tdc4 td:nth-child(4),
.tdc5 td:nth-child(5),
.tdc6 td:nth-child(6),
.tdc7 td:nth-child(7),
.tdc8 td:nth-child(8),
.tdc9 td:nth-child(9),
.tdc10 td:nth-child(10),
.tdc11 td:nth-child(11),
.tdc12 td:nth-child(12),
.tdc13 td:nth-child(13),
.tdc14 td:nth-child(14),
.tdc15 td:nth-child(15),
.tdc16 td:nth-child(16),
.tdc17 td:nth-child(17),
.tdc18 td:nth-child(18),
.tdc19 td:nth-child(19),
.tdc20 td:nth-child(20) {
text-align: center;
}
.thc th,
.thc1 th:nth-child(1),
.thc2 th:nth-child(2),
.thc3 th:nth-child(3),
.thc4 th:nth-child(4),
.thc5 th:nth-child(5),
.thc6 th:nth-child(6),
.thc7 th:nth-child(7),
.thc8 th:nth-child(8),
.thc9 th:nth-child(9),
.thc10 th:nth-child(10),
.thc11 th:nth-child(11),
.thc12 th:nth-child(12),
.thc13 th:nth-child(13),
.thc14 th:nth-child(14),
.thc15 th:nth-child(15),
.thc16 th:nth-child(16),
.thc17 th:nth-child(17),
.thc18 th:nth-child(18),
.thc19 th:nth-child(19),
.thc20 th:nth-child(20) {
text-align: center;
}
.tdr td,
.tdr1 td:nth-child(1),
.tdr2 td:nth-child(2),
.tdr3 td:nth-child(3),
.tdr4 td:nth-child(4),
.tdr5 td:nth-child(5),
.tdr6 td:nth-child(6),
.tdr7 td:nth-child(7),
.tdr8 td:nth-child(8),
.tdr9 td:nth-child(9),
.tdr10 td:nth-child(10),
.tdr11 td:nth-child(11),
.tdr12 td:nth-child(12),
.tdr13 td:nth-child(13),
.tdr14 td:nth-child(14),
.tdr15 td:nth-child(15),
.tdr16 td:nth-child(16),
.tdr17 td:nth-child(17),
.tdr18 td:nth-child(18),
.tdr19 td:nth-child(19),
.tdr20 td:nth-child(20) {
text-align: right;
}
.thr th,
.thr1 th:nth-child(1),
.thr2 th:nth-child(2),
.thr3 th:nth-child(3),
.thr4 th:nth-child(4),
.thr5 th:nth-child(5),
.thr6 th:nth-child(6),
.thr7 th:nth-child(7),
.thr8 th:nth-child(8),
.thr9 th:nth-child(9),
.thr10 th:nth-child(10),
.thr11 th:nth-child(11),
.thr12 th:nth-child(12),
.thr13 th:nth-child(13),
.thr14 th:nth-child(14),
.thr15 th:nth-child(15),
.thr16 th:nth-child(16),
.thr17 th:nth-child(17),
.thr18 th:nth-child(18),
.thr19 th:nth-child(19),
.thr20 th:nth-child(20) {
text-align: right;
}
.tdt td,
.tdt1 td:nth-child(1),
.tdt2 td:nth-child(2),
.tdt3 td:nth-child(3),
.tdt4 td:nth-child(4),
.tdt5 td:nth-child(5),
.tdt6 td:nth-child(6),
.tdt7 td:nth-child(7),
.tdt8 td:nth-child(8),
.tdt9 td:nth-child(9),
.tdt10 td:nth-child(10),
.tdt11 td:nth-child(11),
.tdt12 td:nth-child(12),
.tdt13 td:nth-child(13),
.tdt14 td:nth-child(14),
.tdt15 td:nth-child(15),
.tdt16 td:nth-child(16),
.tdt17 td:nth-child(17),
.tdt18 td:nth-child(18),
.tdt19 td:nth-child(19),
.tdt20 td:nth-child(20) {
vertical-align: top;
}
.tht th,
.tht1 th:nth-child(1),
.tht2 th:nth-child(2),
.tht3 th:nth-child(3),
.tht4 th:nth-child(4),
.tht5 th:nth-child(5),
.tht6 th:nth-child(6),
.tht7 th:nth-child(7),
.tht8 th:nth-child(8),
.tht9 th:nth-child(9),
.tht10 th:nth-child(10),
.tht11 th:nth-child(11),
.tht12 th:nth-child(12),
.tht13 th:nth-child(13),
.tht14 th:nth-child(14),
.tht15 th:nth-child(15),
.tht16 th:nth-child(16),
.tht17 th:nth-child(17),
.tht18 th:nth-child(18),
.tht19 th:nth-child(19),
.tht20 th:nth-child(20) {
vertical-align: top;
}
.tdm td,
.tdm1 td:nth-child(1),
.tdm2 td:nth-child(2),
.tdm3 td:nth-child(3),
.tdm4 td:nth-child(4),
.tdm5 td:nth-child(5),
.tdm6 td:nth-child(6),
.tdm7 td:nth-child(7),
.tdm8 td:nth-child(8),
.tdm9 td:nth-child(9),
.tdm10 td:nth-child(10),
.tdm11 td:nth-child(11),
.tdm12 td:nth-child(12),
.tdm13 td:nth-child(13),
.tdm14 td:nth-child(14),
.tdm15 td:nth-child(15),
.tdm16 td:nth-child(16),
.tdm17 td:nth-child(17),
.tdm18 td:nth-child(18),
.tdm19 td:nth-child(19),
.tdm20 td:nth-child(20) {
vertical-align: middle;
}
.thm th,
.thm1 th:nth-child(1),
.thm2 th:nth-child(2),
.thm3 th:nth-child(3),
.thm4 th:nth-child(4),
.thm5 th:nth-child(5),
.thm6 th:nth-child(6),
.thm7 th:nth-child(7),
.thm8 th:nth-child(8),
.thm9 th:nth-child(9),
.thm10 th:nth-child(10),
.thm11 th:nth-child(11),
.thm12 th:nth-child(12),
.thm13 th:nth-child(13),
.thm14 th:nth-child(14),
.thm15 th:nth-child(15),
.thm16 th:nth-child(16),
.thm17 th:nth-child(17),
.thm18 th:nth-child(18),
.thm19 th:nth-child(19),
.thm20 th:nth-child(20) {
vertical-align: middle;
}
.tdb td,
.tdb1 td:nth-child(1),
.tdb2 td:nth-child(2),
.tdb3 td:nth-child(3),
.tdb4 td:nth-child(4),
.tdb5 td:nth-child(5),
.tdb6 td:nth-child(6),
.tdb7 td:nth-child(7),
.tdb8 td:nth-child(8),
.tdb9 td:nth-child(9),
.tdb10 td:nth-child(10),
.tdb11 td:nth-child(11),
.tdb12 td:nth-child(12),
.tdb13 td:nth-child(13),
.tdb14 td:nth-child(14),
.tdb15 td:nth-child(15),
.tdb16 td:nth-child(16),
.tdb17 td:nth-child(17),
.tdb18 td:nth-child(18),
.tdb19 td:nth-child(19),
.tdb20 td:nth-child(20) {
vertical-align: bottom;
}
.thb th,
.thb1 th:nth-child(1),
.thb2 th:nth-child(2),
.thb3 th:nth-child(3),
.thb4 th:nth-child(4),
.thb5 th:nth-child(5),
.thb6 th:nth-child(6),
.thb7 th:nth-child(7),
.thb8 th:nth-child(8),
.thb9 th:nth-child(9),
.thb10 th:nth-child(10),
.thb11 th:nth-child(11),
.thb12 th:nth-child(12),
.thb13 th:nth-child(13),
.thb14 th:nth-child(14),
.thb15 th:nth-child(15),
.thb16 th:nth-child(16),
.thb17 th:nth-child(17),
.thb18 th:nth-child(18),
.thb19 th:nth-child(19),
.thb20 th:nth-child(20) {
vertical-align: bottom;
}
}
/** Classes for table width **/
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-33 { width: 33%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-66 { width: 66%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }
/** For custom Wiki Collapsible, [[Template:Talent Table]], [[Template:Constellation Table]] **/
.zzw-collapsible.mw-collapsible,
.zzw-collapsible .mw-collapsible,
.talent-table .mw-collapsible,
.constellation-table .mw-collapsible {
padding: 0px 0;
}
.zzw-collapsible .mw-collapsible-toggle,
.talent-table .mw-collapsible-toggle,
.constellation-table .mw-collapsible-toggle {
padding: 3px;
border: solid 1px var(--accent-color);
border-radius: 5px;
float: none;
}
.zzw-collapsible .mw-collapsible-toggle-default::before,
.zzw-collapsible .mw-collapsible-toggle-default::after,
.zzw-collapsible .mw-collapsible-toggle-expanded::before,
.zzw-collapsible .mw-collapsible-toggle-expanded::after,
.zzw-collapsible .mw-collapsible-toggle-collapsed::before,
.zzw-collapsible .mw-collapsible-toggle-collapsed::after,
.talent-table .mw-collapsible-toggle-default::before,
.talent-table .mw-collapsible-toggle-default::after,
.talent-table .mw-collapsible-toggle-expanded::before,
.talent-table .mw-collapsible-toggle-expanded::after,
.talent-table .mw-collapsible-toggle-collapsed::before,
.talent-table .mw-collapsible-toggle-collapsed::after,
.constellation-table .mw-collapsible-toggle-default::before,
.constellation-table .mw-collapsible-toggle-default::after,
.constellation-table .mw-collapsible-toggle-expanded::before,
.constellation-table .mw-collapsible-toggle-expanded::after,
.constellation-table .mw-collapsible-toggle-collapsed::before,
.constellation-table .mw-collapsible-toggle-collapsed::after {
content: "";
color: var(--theme-link-color)
}
.zzw-collapsible.mw-collapsible:not(.mw-made-collapsible):before {
float: unset;
}
/* Talent Table Infobox Formatting */
.type-talent-details {
margin: 0;
width: 100%;
border-radius: 0;
float: none;
}
.type-talent-details .pi-data {
text-align: left;
background-color: var(--theme-page-background-color);
}
.type-talent-details .pi-group {
background-color: var(--theme-color-8);
}
.type-talent-details .pi-horizontal-group-item {
padding: 8px 0;
}
.type-talent-details .pi-font {
font-size: 14px;
}
.cell-scroll-table .table-wide::before,
.talent-table-container .table-wide::before,
.constellation-table-container .table-wide::before {
display: none;
}
.cell-scroll-table .table-wide,
.talent-table-container .table-wide,
.constellation-table-container .table-wide {
display: grid;
}
.talent-table .mw-collapsible-content,
.constellation-table .mw-collapsible-content {
overflow: auto;
}
/** For [[Template:VO/Traveler]] **/
.voice-over-table .mw-collapsible {
padding: 3px 0;
}
.voice-over-table .mw-collapsible-toggle {
padding: 3px;
border: solid 1px var(--accent-color);
border-radius: 5px;
float: none;
}
.voice-over-table .mw-collapsible-toggle-expanded::before {
content: "";
color: var(--theme-link-color);
}
.voice-over-table .mw-collapsible-toggle-expanded::after {
content: "";
color: var(--theme-link-color);
}
.voice-over-table .mw-collapsible-toggle-collapsed::before {
content: "";
color: var(--theme-link-color);
}
.voice-over-table .mw-collapsible-toggle-collapsed::after {
content: "";
color: var(--theme-link-color);
}
/** For [[Template:Enemy Attacks]] **/
.enemy-attack .enemy-attack-header {
display: block;
border: solid 1px var(--accent-color);
border-radius: 5px;
color: var(--accent-color);
padding: 0px 5px;
margin-top: 7px;
width: min-content;
}
/** For [[Archon Quests]] Character Appearances **/
.page-content .appearances-table > * > tr > th,
.page-content .appearances-table > * > tr > td {
padding-top: 0;
padding-bottom: 0;
}
.page-content
.appearances-table
tr:not(:first-child):not(:nth-child(2))
th:not(:nth-child(1)) {
border: solid 1px var(--theme-accent-color);
}
/** zero padding table cell and header **/
.page-content table.p-0 td,
.page-content table.p-0 th {
padding: 0;
}
/** zero margin cell and header **/
.page-content table.m-0 td,
.page-content table.m-0 th {
margin: 0;
}
/** Diagonal middle header line for Template:Diagonal Split Header **/
th.split-header,
td.split-header {
background: linear-gradient(
to top right,
var(--theme-page-background-color--secondary) 49.5%,
var(--theme-accent-color) 49.5%,
var(--theme-accent-color) 50.5%,
var(--theme-page-background-color--secondary) 50.5%
);
line-height: 1;
}
table.nowrap th, table.nowrap td {
white-space: nowrap;
}
/** For [[Template:Wish List]] **/
.wish-banners {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.wish-banners > div {
text-align: center;
}
/** For [[Template:Wish Pool]] **/
.wish-pool-table {
width: 100%;
}
.wish-pool-table tr:first-child th:first-child {
width: 7.5rem;
}
/* Horizontal sticky of first column in table */
.sticky-table tr > th:first-child {
position: -webkit-sticky;
position: sticky;
display: table-cell;
left: 0;
z-index: 9999;
}
/* For [[Template:Messages]] */
.zzw-messages-show {
display: inline;
}
.zzw-messages-hide {
display: none;
}
.zzw-messages-mc {
text-align: right;
}
/* inline unordered list seperated by pipe */
/* Includes styles for [[Module:New Article Text]] that appears on new article pages */
.mw-content-ltr ul.pipe_delimit,
.mw-newarticletext ul.pipe_delimit,
.ve-ui-mwNoticesPopupTool-popup ul.pipe_delimit {
margin: 0px;
}
.mw-content-ltr ul.pipe_delimit li,
.mw-newarticletext ul.pipe_delimit li,
.ve-ui-mwNoticesPopupTool-popup ul.pipe_delimit li {
display: inline;
}
.mw-content-ltr ul.pipe_delimit li + li::before,
.mw-newarticletext ul.pipe_delimit li + li::before,
.ve-ui-mwNoticesPopupTool-popup ul.pipe_delimit li + li::before{
content: " | ";
}
/* Fixing sortable arrow icons in tables using "article-table fandom-table sortable" classes */
table.article-table.sortable.jquery-tablesorter th.headerSort.headerSortUp::before,
table.article-table.sortable.jquery-tablesorter th:not(.headerSortUp).headerSort::before {
content: none;
}
table.article-table.sortable.jquery-tablesorter th.headerSort.headerSortDown::before,
table.article-table.sortable.jquery-tablesorter th:not(.headerSortUp).headerSort::after {
clip-path: none;
-webkit-clip-path: none
}
table.article-table.sortable.jquery-tablesorter th.headerSort.headerSortUp::after {
display: flex
}
table.article-table.sortable.jquery-tablesorter th.headerSort::after,
table.article-table.sortable.jquery-tablesorter th.headerSort::before {
right: 0
}
/* Fix text overlapping with sortable arrow icons in fandom-tables */
.fandom-table.jquery-tablesorter th.headerSort {
padding-right: 20px;
}