Skip to content

Commit

Permalink
Fix: Updated game controls
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Feb 23, 2024
1 parent 4447d84 commit 5d87dc0
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ body, html {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px; /* Space between buttons */
gap: 10px;
margin-top: 10px;
}

.horizontal-controls {
display: flex;
justify-content: center;
gap: 10px; /* Space between horizontal buttons */
gap: 10px;
}

header {
Expand All @@ -53,7 +53,6 @@ canvas {
}
}


canvas {
background-color: #fff;
display: block;
Expand All @@ -70,10 +69,13 @@ canvas {
#regenerateMaze {
font-family: "Poppins", sans-serif;
font-size: 16px;
background-color: white;
border-radius: 8px;
}

#regenerateMaze:hover {
cursor: pointer;
background-color: #ececec;
}

header {
Expand All @@ -95,4 +97,19 @@ header h2 {
color: #fff;
}

#moveUp {
margin-left: -5px;
}

#moveUp, #moveDown, #moveLeft, #moveRight {
font-family: "Poppins", sans-serif;
font-size: 16px;
background-color: white;
border-radius: 8px;
}

#moveUp:hover, #moveDown:hover, #moveLeft:hover, #moveRight:hover {
cursor: pointer;
background-color: #ececec;
border-radius: 8px;
}

0 comments on commit 5d87dc0

Please sign in to comment.