From 342bf85b68f097d00fac560a16ca5eaa12136c19 Mon Sep 17 00:00:00 2001 From: Pranjali Bhardwaj <146981751+PranjaliBhardwaj@users.noreply.github.com> Date: Sun, 7 Jan 2024 11:13:32 +0530 Subject: [PATCH] Update game.css feature added of button to switch off audio --- Light/game.css | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/Light/game.css b/Light/game.css index 0109ee3..a358dcf 100644 --- a/Light/game.css +++ b/Light/game.css @@ -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; -} \ No newline at end of file +} +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; +}