Skip to content

Commit

Permalink
Refactor start button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lewdry committed Oct 21, 2024
1 parent c5840cf commit 25864b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
<div>
<p>Bonk!<br>Bouncing balls.</p>
<p>Drag a ball to throw.<br>Double-tap screen to reset.</p>
<p>Tap to start.</p>
<p>🟣➰🟢</p>
<button id="startButton">Start</button>
<br>
</div>
</div>

Expand Down
15 changes: 15 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ canvas {
border-radius: 10px;
padding: 20px;
}

button {
margin-top: 5px;
padding: 0.3rem 20px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 5px;
cursor: pointer;
transition: all 0.25s;
}

button:hover {
background-color: #f0f0f0;
border-color: #999;
}

0 comments on commit 25864b4

Please sign in to comment.