Skip to content

Commit

Permalink
Merge pull request #33 from EboMike/morecleanup
Browse files Browse the repository at this point in the history
Fix the table background color on desktop.
  • Loading branch information
spookybear0 authored Mar 29, 2024
2 parents 42d3834 + d22d008 commit 87565a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions assets/html/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@
.login-item {
float: right;
}

:root {
--alternate-table-background-color: #1A1A1A;
}
}

@media screen and (max-width: 991px) {
:root {
--alternate-table-background-color: #000000;
}
}

.fire-team {
Expand Down
4 changes: 2 additions & 2 deletions assets/html/game/laserball.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
}

tr:nth-child(odd) > td:nth-child(1) {
background-color: #000000;
background-color: var(--alternate-table-background-color);
}

tr > th:nth-child(1) {
background-color: #000000;
background-color: var(--alternate-table-background-color);
}

body {
Expand Down
8 changes: 4 additions & 4 deletions assets/html/game/sm5.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,23 @@
}

tr:nth-child(odd) > td:nth-child(1) {
background-color: #000000;
background-color: var(--alternate-table-background-color);
}

tr:nth-child(even) > td:nth-child(2) {
background-color: #252525;
}

tr:nth-child(odd) > td:nth-child(2) {
background-color: #000000;
background-color: var(--alternate-table-background-color);
}

tr > th:nth-child(1) {
background-color: #000000;
background-color: var(--alternate-table-background-color);
}

tr > th:nth-child(2) {
background-color: #000000;
background-color: var(--alternate-table-background-color);
}

.fixed-column {
Expand Down

0 comments on commit 87565a4

Please sign in to comment.