Skip to content

Commit

Permalink
tablet responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
srishti023 committed Nov 10, 2024
1 parent 7fb8aeb commit b6a415b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions Alien.css
Original file line number Diff line number Diff line change
Expand Up @@ -793,3 +793,33 @@ body.dark-theme #instructionsTitle {
padding-left: 0;
}
}
@media (min-width: 768px) and (max-width: 1024px){
.navbar{
justify-content: flex-start;
flex-wrap: nowrap;
gap: 5px;

}
.navbar a{
padding: 0;
}
.slider{
visibility: hidden;
}
#gameControls.header {
flex-direction: column;
width: 50%;
}
#gameControls{
margin-left: 10px;
}
.sidebar{
height: auto;
}
#gameCanvas{
width: 100%;
}
#startButton{
transform: translate(0px, 0px);
}
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ <h2 class="uppercase">What power-up do you find most helpful?</h2>
</div>
<button id="pauseBtn" style="transform: translate(0px, 0px);">Pause</button>
<div class="controlGroup">
<button id="startButton"><i class="fas fa-play"></i> Start Game</button>
<button id="startButton"><i class="fas fa-play" style="transform: translate(0px, 0px);" ></i> Start Game</button>
<button id="pauseButton" style="display: none"><i class="fas fa-play"></i> Game paused</button>
<button id="restartButton" style="display: none"><i class="fas fa-redo"></i> Play Again </button>
</div>
Expand Down

0 comments on commit b6a415b

Please sign in to comment.