Created
August 16, 2020 06:29
-
-
Save ashishmaurya/5eae61a587f74b02c42d950999ceef3a to your computer and use it in GitHub Desktop.
Create Piano Tile Game in Web
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
margin: 0px; | |
} | |
.canvasContainer{ | |
margin: 0 auto; | |
text-align: center; | |
position: relative; | |
font-size: 0px; | |
} | |
.canvasContainer canvas{ | |
border: 0.5px solid #DDD; | |
} | |
.canvasContainer .score{ | |
position: absolute; | |
font-weight: bold; | |
font-size: 1.5em; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
} | |
.gameEnd,.gameStart{ | |
position: absolute; | |
top: 50%; | |
margin-top: -25px; | |
left: 0px; | |
width: 100%; | |
font-size: 1.5rem; | |
text-shadow: -1px -1px #FFF; | |
} | |
.canvasContainer button{ | |
background-color: #FFF; | |
border: 1px solid #AAA; | |
padding: 10px 15px; | |
margin-top: 10px; | |
border-radius: 20px; | |
cursor: pointer; | |
} | |
.none{ | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment