Skip to content

Commit

Permalink
Centre keypad on page
Browse files Browse the repository at this point in the history
  • Loading branch information
SavageCore committed Sep 20, 2023
1 parent 580ce22 commit dc0b9ea
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions src/App/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
padding: 20px;
}

.atm-keypad {
background-color: #222;
border: 2px solid #666;
border-radius: 8px;
padding: 10px;
max-width: 25vw;
border-radius: 4px;
padding: 30px;
margin: auto;
-webkit-user-select: none;
-moz-user-select: none;
Expand All @@ -44,7 +44,7 @@
.display {
background-color: #444;
border: 2px solid #666;
border-radius: 6px;
border-radius: 4px;
margin-bottom: 10px;
font-family: "DINEngschrift", sans-serif;
font-size: 4vw;
Expand All @@ -69,6 +69,18 @@
user-select: none;
}

.btn {
background-color: #ccc;
border: 2px solid #888;
border-radius: 6px;
padding: 6vw 8vw;
font-size: 6vw;
margin: 0.25vw;
cursor: pointer;
text-align: center;
max-width: 3vw;
}

.btn.danger {
background-color: #c9302c;
border-color: #ac2925;
Expand All @@ -80,21 +92,6 @@
border-color: #d43f3a;
}

.keypad .row {
display: flex;
justify-content: space-around;
}

.btn {
background-color: #ccc;
border: 2px solid #888;
border-radius: 6px;
padding: 2vw 4vw;
font-size: 3vw;
margin: 5px;
cursor: pointer;
}

.btn:hover {
background-color: #ddd;
}
Expand All @@ -103,6 +100,10 @@
background-color: #bbb;
}

.keypad .row {
display: flex;
justify-content: space-around;
}
@media (max-width: 768px) {
.wrapper {
max-width: 100vw;
Expand Down

0 comments on commit dc0b9ea

Please sign in to comment.