Files
CTFd/assets/scss/includes/components/_table.scss
Kevin Chung a64e7d51ef Squashed 'CTFd/themes/core-beta/' changes from 9126d77d..5ce3003b
5ce3003b Merge pull request #47 from aCursedComrade/patch-1
c9887cb1 Fix team template

git-subtree-dir: CTFd/themes/core-beta
git-subtree-split: 5ce3003b4d68352e629ee2d390bc999e7d6b071e
2023-06-11 15:56:28 -04:00

34 lines
678 B
SCSS

/* Table styles
-------------------------------------------------- */
// Center text in tables, after the first cell
// Override with text-center on cells
.table tr > td:not(:first-of-type) {
text-align: center !important;
}
// Vertically center text in cells
.table td,
th {
vertical-align: middle !important;
}
// Add some default spacing
.table > tbody > tr > td {
padding: 0.8rem 1rem !important;
}
// Remove border line from thead of all tables
.table > tbody {
border-top: none !important;
}
// Add some padding from the edge of table
.table > thead > tr > td:first-of-type {
padding-left: 1rem !important;
}
.table > thead > th {
white-space: nowrap;
}