Skip to content

Commit

Permalink
Better display on desktop
Browse files Browse the repository at this point in the history
Set a max width of 800px, remove the side borders and add in a whole
card border instead. Max out the font-size at 20px.
  • Loading branch information
dgmstuart committed Apr 24, 2024
1 parent 03b92fa commit 47a6fee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Cell.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.Cell {
text-align: center;
font-size: calc(2vw + 4px);
font-size: calc(1.97vw + 4px);
font-size: clamp(4px, calc(1.97vw + 4px), 20px);
padding: calc(2vmin - 4px);
border: 2px solid var(--dark);
vertical-align: middle;
Expand Down
10 changes: 10 additions & 0 deletions src/components/Grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
border-bottom: none;
}

@media (width >= 800px) {
.Grid td:first-child {
border-left: none;
}

.Grid td:last-child {
border-right: none;
}
}

.Row {
height: 80px;
}
8 changes: 8 additions & 0 deletions src/layouts/MainLayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
box-shadow: 0px 5px 23px -8px #000000;
position: relative;
overflow: hidden;
max-width: 800px;
}

@media (width > 800px) {
.Card {
padding: 0 15px 15px;
margin: auto;
}
}

.Main-header {
Expand Down

0 comments on commit 47a6fee

Please sign in to comment.