MediaWiki:Tables.css: Difference between revisions
Jump to navigation
Jump to search
Salty Nori (talk | contribs) (Created page with "→BG COLOR Background color to highlight specific columns. Removes the need to use th for first few columns of items in tables.: #mw-content-text .mw-parser-output .tdbg td, #mw-content-text .mw-parser-output .tdbg1 td:nth-child(1), #mw-content-text .mw-parser-output .tdbg2 td:nth-child(2), #mw-content-text .mw-parser-output .tdbg3 td:nth-child(3), #mw-content-text .mw-parser-output .tdbg4 td:nth-child(4), #mw-content-text .mw-parser-output .tdbg5 td:nth-ch...") |
m (table structure start) Tag: Replaced |
||
| (40 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
/* | /** Table Systems **/ | ||
.wikitable, .scheduletable { | |||
width: auto; | |||
min-width: 300px; | |||
* | margin: 1.5em auto; | ||
border-collapse: collapse; | |||
border: 1px solid var(--theme-border-color); | |||
background-color: var(--card-bg-main, #fff); | |||
border-radius: 4px; | |||
*/ | |||
# | |||
} | } | ||
.wikitable > tr > th, .wikitable > * > tr > th { | |||
background-color: var(--gold-accent) !important; | |||
color: #1a2a2a !important; | |||
padding: 0.5em 1em; | |||
# | |||
} | } | ||
/* Schedule Specific Positioning */ | |||
.scheduletable td:first-child { | |||
width: 150px !important; | |||
font-weight: 600; | |||
background-color: rgba(56, 178, 172, 0.08); | |||
border-right: 2px solid var(--teal-300); | |||
} | } | ||
Latest revision as of 11:54, 25 March 2026
/** Table Systems **/
.wikitable, .scheduletable {
width: auto;
min-width: 300px;
margin: 1.5em auto;
border-collapse: collapse;
border: 1px solid var(--theme-border-color);
background-color: var(--card-bg-main, #fff);
border-radius: 4px;
}
.wikitable > tr > th, .wikitable > * > tr > th {
background-color: var(--gold-accent) !important;
color: #1a2a2a !important;
padding: 0.5em 1em;
}
/* Schedule Specific Positioning */
.scheduletable td:first-child {
width: 150px !important;
font-weight: 600;
background-color: rgba(56, 178, 172, 0.08);
border-right: 2px solid var(--teal-300);
}