Skip to content

Instantly share code, notes, and snippets.

@neslinesli93
Created January 2, 2020 20:40
Show Gist options
  • Save neslinesli93/79760061eb31b436e3c7bb03f63a2909 to your computer and use it in GitHub Desktop.
Save neslinesli93/79760061eb31b436e3c7bb03f63a2909 to your computer and use it in GitHub Desktop.
CSS specific for the game
.game-container {
position: relative;
margin-top: 4rem;
/* Subtract half of the board width*/
left: calc(50% - 260px);
}
.game-container .block {
display: block;
position: absolute;
}
.game-container .block.wall,
.game-container .block.floor {
background: #717d7e;
}
.game-container .block.brick {
border-style: solid;
border-color: gray;
border-width: 1px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment