-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tables: use <th>, use Bootstrap align-middle and fix scoreboard table…
… alignment issue (#84) * Use th element for table headers * Use align-middle on tables * Explicitely align username in scoreboard table * _table.scss: cleanup * yarn build
- Loading branch information
Showing
12 changed files
with
59 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,22 @@ | ||
/* 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; | ||
// Center text in table cells, except the first cell | ||
.table tr > :not(:first-child) { | ||
text-align: center; | ||
} | ||
|
||
// Vertically center text in cells | ||
.table td, | ||
th { | ||
vertical-align: middle !important; | ||
} | ||
|
||
// Add some default spacing | ||
// Add some default spacing to table cells | ||
.table > tbody > tr > td { | ||
padding: 0.8rem 1rem !important; | ||
} | ||
|
||
// Remove border line from thead of all tables | ||
.table > tbody { | ||
border-top: none !important; | ||
padding: 0.8rem 1rem; | ||
} | ||
|
||
// Add some padding from the edge of table | ||
.table > thead > tr > td:first-of-type { | ||
padding-left: 1rem !important; | ||
.table > thead > tr > :first-child { | ||
padding-left: 1rem; | ||
} | ||
|
||
// Do not wrap text in table headers | ||
.table > thead > th { | ||
white-space: nowrap; | ||
} |
2 changes: 1 addition & 1 deletion
2
static/assets/main.3095e2ea.css → static/assets/main.dad26364.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters