Skip to content

Commit

Permalink
Update game.css
Browse files Browse the repository at this point in the history
feature added of button to switch off audio
  • Loading branch information
PranjaliBhardwaj authored Jan 7, 2024
1 parent 395f695 commit 342bf85
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion Light/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,41 @@ footer{
box-shadow: 0 0.4rem 1.4rem 0 rgba(86, 185, 235, 0.5);
transform: translateY(-0.1rem);
transition: transform 150ms;
}
}
input#un-mute {
display: none;
}

.unmute img {
display: none;
}

input#un-mute:checked ~ .unmute img {
display: initial;
}

input#un-mute:checked ~ .mute img {
display: none;
}
.mute img {
height: 50px;
width: 50px;
margin-top: 50px;
margin-left:1009px;
border-style: groove;
border-color: rgb(9, 9, 54);
border-radius: 50%;
padding: 1rem;
position: absolute;
}
.unmute img {
position: absolute;
margin-top: 50px;
padding: 1rem;
border-radius: 50%;
border-style: groove;
border-color: rgb(9, 9, 54);
margin-left: 1009px;
height: 50px;
width: 50px;
}

0 comments on commit 342bf85

Please sign in to comment.