Pause when tab is hidden, using visibility change api

This commit is contained in:
Renan LE CARO 2025-03-15 10:34:01 +01:00
parent 1a56b5f1d1
commit 33d74e8c84
68 changed files with 7290 additions and 6933 deletions

View file

@ -1,9 +1,10 @@
* {
font-family: Courier New,
Courier,
Lucida Sans Typewriter,
Lucida Typewriter,
monospace;
font-family:
Courier New,
Courier,
Lucida Sans Typewriter,
Lucida Typewriter,
monospace;
box-sizing: border-box;
}
@ -50,7 +51,6 @@ body {
background: rgba(0, 0, 0, 0.3);
cursor: pointer;
}
}
#score {
@ -66,7 +66,6 @@ body {
}
}
.popup {
position: fixed;
inset: 0;
@ -199,7 +198,6 @@ body {
}
}
/*Unlocks progress bar*/
.progress {
display: block;
@ -239,7 +237,6 @@ body {
}
}
#level-recording-container {
max-width: 400px;
text-align: center;
@ -270,7 +267,6 @@ body {
}
}
.histogram {
display: flex;
gap: 10px;
@ -311,10 +307,9 @@ body {
left: 50%;
transform: translate(-50%, 0);
}
}
}
&> span:not(:hover):not(.active) > span > span {
& > span:not(:hover):not(.active) > span > span {
opacity: 0;
}
}