Skip to content

Commit

Permalink
space out arrow controls for mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
NLie2 committed Aug 18, 2023
1 parent 75c0349 commit 46fac8f
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
Binary file removed assets/tetris_i.png
Binary file not shown.
Binary file removed assets/tetris_j.png
Binary file not shown.
Binary file removed assets/tetris_l.png
Binary file not shown.
Binary file removed assets/tetris_o.png
Binary file not shown.
Binary file removed assets/tetris_s.png
Binary file not shown.
Binary file removed assets/tetris_t.png
Binary file not shown.
Binary file removed assets/tetris_z.png
Binary file not shown.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ <h4>Current Block</h4>
<div class="board"></div>

<div class="controls">
<button id="left"> &lt </button>
<button id="right"> &gt </button>
<button id="down"> v </button>
<div id="left-right">
<button id="left"> &lt </button>
<button id="right"> &gt </button>
</div>
<button id="down"> v </button>
</div>


Expand Down
15 changes: 8 additions & 7 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,23 @@ main{
border: none;
width: 40vh;
display: flex;
flex-wrap: wrap;
flex-direction: column;
justify-content: center;
align-items: center;
}
#left, #right, #down{
width: 4rem;
margin: 0.5rem
}

#left{
margin-right: 10vh;
}
#right{
margin-left: 10vh;
#left-right{
display: flex;
width: 40vh;
justify-content: space-between;
}




/* PLAYER-INFO */

.player-info{
Expand Down

0 comments on commit 46fac8f

Please sign in to comment.