Fix button width, remove elements from display when not used

This commit is contained in:
Rory Healy 2023-04-19 18:34:57 +10:00
parent e616be7c5a
commit a57e06d952
Signed by: roryhealy
GPG key ID: 610ED1098B8F435B
3 changed files with 9 additions and 1 deletions

View file

@ -5,3 +5,4 @@ Icons:
- menu by Nawicon from <a href="https://thenounproject.com/browse/icons/term/menu/" target="_blank" title="menu Icons">Noun Project</a> - menu by Nawicon from <a href="https://thenounproject.com/browse/icons/term/menu/" target="_blank" title="menu Icons">Noun Project</a>
- square by Nawicon from <a href="https://thenounproject.com/browse/icons/term/square/" target="_blank" title="square Icons">Noun Project</a> - square by Nawicon from <a href="https://thenounproject.com/browse/icons/term/square/" target="_blank" title="square Icons">Noun Project</a>
- triangle by Nawicon from <a href="https://thenounproject.com/browse/icons/term/triangle/" target="_blank" title="triangle Icons">Noun Project</a - triangle by Nawicon from <a href="https://thenounproject.com/browse/icons/term/triangle/" target="_blank" title="triangle Icons">Noun Project</a
- headphones by Maxim Kulikov from <a href="https://thenounproject.com/browse/icons/term/headphones/" target="_blank" title="Headphones Icons">Noun Project</a>

View file

@ -43,6 +43,10 @@ const begin = () => {
for (let element of document.querySelectorAll('.controlButtonOff')) { for (let element of document.querySelectorAll('.controlButtonOff')) {
element.className = 'controlButtonOn'; element.className = 'controlButtonOn';
} }
for (let element of document.querySelectorAll('.headphonesOff')) {
element.style.display = 'none';
}
document.querySelector('#beginOff').style.display = 'none';
playPauseAudio() playPauseAudio()
}, 7000); }, 6500);
}; };

View file

@ -32,6 +32,7 @@ main {
margin: 40vh 0; margin: 40vh 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
} }
.centre #begin { .centre #begin {
@ -40,6 +41,7 @@ main {
border-radius: var(--border-radius); border-radius: var(--border-radius);
padding: 1rem 1.2rem; padding: 1rem 1.2rem;
transition: background 200ms, border 200ms; transition: background 200ms, border 200ms;
width: 75%;
} }
.centre #beginOff { .centre #beginOff {
@ -50,6 +52,7 @@ main {
border: 1px solid rgb(var(--card-border-rgb)); border: 1px solid rgb(var(--card-border-rgb));
border-radius: var(--border-radius); border-radius: var(--border-radius);
padding: 1rem 1.2rem; padding: 1rem 1.2rem;
width: 75%;
} }
.headphonesOff { .headphonesOff {