MediaWiki:Tables.css

/** * @Name:           Myriad Tables * @Description:   Applies uniform styles to the three main table classes * @Author         Banarama  * @Author         Ursuul  */

/* Special:ListUsers Table */ table.TablePager td.sorting_1 { background-color: transparent; }

.TablePager tr:hover td { background-color: #595959; }

/* Tables in general */ .WikiaArticle table.article-table, .WikiaArticle table.WikiaTable, .WikiaArticle table.wikitable { max-width: calc(100% - 17px); max-width: -webkit-fill-available; max-width: fill-available; background: transparent; border: none; border-collapse: separate; border-spacing: 0; box-shadow: 3px 3px 5px #CCCCCC; margin: 0 7px 0 0; }

.WikiaArticle .wikitable.filehistory { max-width: none; margin-right: 0; }

overflow-x: scroll; margin-right: 7px; }
 * 1) mw-imagepage-section-filehistory {

.sv-space { display: none; }

/* Cells */ .WikiaArticle table.wikitable > * > tr > td, .WikiaArticle table.wikitable > * > tr > th { border-color: #2a1818; border-top: none; }

.WikiaArticle table.article-table > * > tr > td, .WikiaArticle table.article-table > * > tr > th { border-color: #2a1818; }

.WikiaArticle table.article-table > * > tr > td, .WikiaArticle table.article-table > * > tr > th, .WikiaArticle table.WikiaTable > * > tr > td, .WikiaArticle table.WikiaTable > * > tr > th, .WikiaArticle table.wikitable > * > tr > td, .WikiaArticle table.wikitable > * > tr > th { height: 30px; padding: 5px 12px; }

.WikiaArticle table.article-table > * > tr > td:first-child, .WikiaArticle table.WikiaTable > * > tr > td:first-child, .WikiaArticle table.wikitable > * > tr > td:first-child { border-left: 2px solid #2a1818; }

.WikiaArticle table.article-table > * > tr > th:first-child, .WikiaArticle table.WikiaTable > * > tr > th:first-child, .WikiaArticle table.wikitable > * > tr > th:first-child { border-left: 2px solid #2a1818; }

.WikiaArticle table.article-table > * > tr > td:last-child, .WikiaArticle table.WikiaTable > * > tr > td:last-child, .WikiaArticle table.wikitable > * > tr > td:last-child { border-right: 2px solid #2a1818; }

.WikiaArticle table.article-table > * > tr > th:last-child, .WikiaArticle table.WikiaTable > * > tr > th:last-child, .WikiaArticle table.wikitable > * > tr > th:last-child { border-right: 2px solid #2a1818; }

.WikiaArticle table.article-table > * > tr:last-child > td, .WikiaArticle table.WikiaTable > * > tr:last-child > td, .WikiaArticle table.wikitable > * > tr:last-child > td { border-bottom: 2px solid #2a1818; }

.WikiaArticle table.article-table > * > tr:last-child > th, .WikiaArticle table.WikiaTable > * > tr:last-child > th, .WikiaArticle table.wikitable > * > tr:last-child > th { border-bottom: 2px solid #2a1818; }

/* Headers */ .WikiaArticle table.article-table > *:first-child > tr:first-child > td, .WikiaArticle table.article-table > *:first-child > tr:first-child > th, .WikiaArticle table.WikiaTable > *:first-child > tr:first-child > td, .WikiaArticle table.WikiaTable > *:first-child > tr:first-child > th, .WikiaArticle table.wikitable > *:first-child > tr:first-child > td, .WikiaArticle table.wikitable > *:first-child > tr:first-child > th { font-size: 16px; color: #FFFFFF; border: none; border-top: 2px solid #2a1818; border-bottom: 0 solid transparent; transition: 0.3s; }

.WikiaArticle table.article-table > *:first-child > tr:first-child > td:first-child, .WikiaArticle table.article-table > *:first-child > tr:first-child > th:first-child, .WikiaArticle table.WikiaTable > *:first-child > tr:first-child > td:first-child, .WikiaArticle table.WikiaTable > *:first-child > tr:first-child > th:first-child, .WikiaArticle table.wikitable > *:first-child > tr:first-child > td:first-child, .WikiaArticle table.wikitable > *:first-child > tr:first-child > th:first-child { border-left: 2px solid #2a1818; } .WikiaArticle table.article-table > *:first-child > tr:first-child > td:last-child, .WikiaArticle table.article-table > *:first-child > tr:first-child > th:last-child, .WikiaArticle table.WikiaTable > *:first-child > tr:first-child > td:last-child, .WikiaArticle table.WikiaTable > *:first-child > tr:first-child > th:last-child, .WikiaArticle table.wikitable > *:first-child > tr:first-child > td:last-child, .WikiaArticle table.wikitable > *:first-child > tr:first-child > th:last-child { border-right: 2px solid #2a1818; }

.WikiaArticle table.article-table.mw-collapsed > *:first-child > tr:first-child > td, .WikiaArticle table.article-table.mw-collapsed > *:first-child > tr:first-child > th, .WikiaArticle table.WikiaTable.mw-collapsed > *:first-child > tr:first-child > td, .WikiaArticle table.WikiaTable.mw-collapsed > *:first-child > tr:first-child > th, .WikiaArticle table.wikitable.mw-collapsed > *:first-child > tr:first-child > td, .WikiaArticle table.wikitable.mw-collapsed > *:first-child > tr:first-child > th { border-bottom: 2px solid #2a1818; }

.WikiaArticle table.article-table > * > tr > td:not(:first-child), .WikiaArticle table.article-table > * > tr > th:not(:first-child), .WikiaArticle table.WikiaTable > * > tr > td:not(:first-child), .WikiaArticle table.WikiaTable > * > tr > th:not(:first-child), .WikiaArticle table.wikitable > * > tr > td:not(:first-child), .WikiaArticle table.wikitable > * > tr > th:not(:first-child) { border-left: 0; }

/* Override first-child if there’s thead */ .WikiaArticle #mw-content-text table.article-table > thead + tbody > tr:first-child > *, .WikiaArticle #mw-content-text table.WikiaTable > thead + tbody > tr:first-child > *, .WikiaArticle #mw-content-text table.wikitable > thead + tbody > tr:first-child > * { background: inherit; border-bottom: 1px solid #2a1818; } .WikiaArticle #mw-content-text table.article-table > thead + tbody > tr:first-child a, .WikiaArticle #mw-content-text table.WikiaTable > thead + tbody > tr:first-child a, .WikiaArticle #mw-content-text table.wikitable > thead + tbody > tr:first-child a { color: #E5B076; } .WikiaArticle #mw-content-text table.article-table > thead + tbody > tr:first-child > td:first-child, .WikiaArticle #mw-content-text table.WikiaTable > thead + tbody > tr:first-child > td:first-child, .WikiaArticle #mw-content-text table.wikitable > thead + tbody > tr:first-child > td:first-child { border-left: 2px solid #2a1818; } .WikiaArticle #mw-content-text table.article-table > thead + tbody > tr:first-child > th:first-child, .WikiaArticle #mw-content-text table.WikiaTable > thead + tbody > tr:first-child > th:first-child, .WikiaArticle #mw-content-text table.wikitable thead + tbody tr:first-child > th:first-child { border-left: 2px solid #2a1818; } .WikiaArticle #mw-content-text table.article-table > thead + tbody > tr:first-child > td:last-child, .WikiaArticle #mw-content-text table.WikiaTable > thead + tbody > tr:first-child > td:last-child, .WikiaArticle #mw-content-text table.wikitable > thead + tbody > tr:first-child > td:last-child { border-right: 2px solid #2a1818; } .WikiaArticle #mw-content-text table.article-table > thead + tbody > tr:first-child > th:last-child, .WikiaArticle #mw-content-text table.WikiaTable > thead + tbody > tr:first-child > th:last-child, .WikiaArticle #mw-content-text table.wikitable > thead + tbody > tr:first-child > th:last-child { border-right: 2px solid #2a1818; }

/* Expand/Collapse Table Toggle */ .WikiaArticle table.article-table > * > tr:first-child > th > .mw-collapsible-toggle, .WikiaArticle table.WikiaTable > * > tr:first-child > th > .mw-collapsible-toggle, .WikiaArticle table.wikitable > * > tr:first-child > th > .mw-collapsible-toggle { font-size: 0.8rem; margin-left: 2px; margin-right: -10px; }