Skip to content

Commit

Permalink
Merge pull request #1 from COVID19Tracking/beep/web-tables
Browse files Browse the repository at this point in the history
Smol style tweaks
  • Loading branch information
Dana Sulit authored May 1, 2020
2 parents e37e055 + 9f53447 commit 623b6e1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
28 changes: 16 additions & 12 deletions src/components/common/table.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../scss/colors.module.scss';
@import '../../scss/breakpoints.module.scss';

.align-left {
text-align: left;
Expand All @@ -7,11 +8,11 @@
.table {
line-height: 1rem;
border-collapse: collapse;
margin: 0.5rem 0;
margin: 0.5rem 0 1.5rem;
font-variant-numeric: lining-nums tabular-nums;
width: 100%;

@media only screen and (max-width: 640px) {
@media only screen and (max-width: $viewport-lg) {
display: block;
overflow-x: auto;
white-space: nowrap;
Expand All @@ -28,16 +29,6 @@
border-left: 1px solid $color-slate-300;
}

td {
text-align: right;
padding: 0.75rem 0.5rem;
font-size: 1rem;

&.align-left {
text-align: left;
}
}

thead {
border-bottom: 1px solid $color-slate-400;

Expand Down Expand Up @@ -66,6 +57,10 @@
}

tbody {
th,
td {
vertical-align: top;
}
th {
font-weight: normal;
}
Expand All @@ -78,4 +73,13 @@
}
}
}
td {
text-align: right;
padding: 0.75rem 0.5rem;
font-size: 1rem;

&.align-left {
text-align: left;
}
}
}
18 changes: 14 additions & 4 deletions src/components/pages/state/state-history.module.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
@import '../../../scss/breakpoints.module.scss';

.history {
th:last-child,
td:last-child {
padding-right: 0.25em;
}

ul {
list-style: none;
margin: 0;
padding: 0;
list-style: none;
display: inline list-item;
}

li {
display: inline;
padding: 0.8em;
padding-left: 0;
margin-bottom: 0.5em;
}
@media (min-width: $viewport-md) {
li {
display: inline;
margin-bottom: 0;
margin-left: 0.75em;
}
li:first-child {
margin-left: 0;
}
}
}

0 comments on commit 623b6e1

Please sign in to comment.