Skip to content

Commit

Permalink
💄 Make keyboard key sizing more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
vegeta897 committed Apr 11, 2024
1 parent 8c0237e commit 3d0ca92
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/Keyboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
padding: 0 4px;
touch-action: manipulation;
height: 100%;
/*max-width: 520px;*/
}
.key-row {
Expand All @@ -106,11 +105,11 @@
align-items: center;
text-transform: uppercase;
padding: 0;
margin-left: 0.125rem;
margin-right: 0.125rem;
width: 67px;
--key-margin: 0.125rem;
margin: 0 var(--key-margin);
width: calc((100% - var(--key-margin) * 20) / 10);
height: 100%;
border-radius: 4px;
border-radius: 0.25rem;
border: 0;
font-weight: 700;
font-size: 1.4em;
Expand Down Expand Up @@ -141,13 +140,11 @@
@media (max-width: 640px) {
.key-row button {
width: 51px;
font-size: 1.4em;
}
}
@media (max-width: 480px) {
.key-row button {
width: 38px;
font-size: 1.3em;
}
Expand Down

0 comments on commit 3d0ca92

Please sign in to comment.