added mobile config button

This commit is contained in:
Miodec 2022-08-25 14:24:17 +02:00
parent 0e25e39dc3
commit bd427c0e01
4 changed files with 35 additions and 1 deletions

View file

@ -982,6 +982,16 @@
}
}
#mobileTestConfig {
padding: 0.25rem 1rem;
background: var(--sub-alt-color);
border-radius: var(--roundness);
width: max-content;
justify-self: center;
display: none;
height: max-content;
}
#testConfig {
display: grid;
font-size: 0.75rem;

View file

@ -857,6 +857,14 @@
}
}
#testConfig {
display: none;
}
#mobileTestConfig {
display: block;
}
#bottom {
font-size: 0.65rem;
.leftright {
@ -930,6 +938,16 @@
}
}
@media (pointer: coarse) and (max-width: 800px) {
#testConfig {
display: none;
}
#mobileTestConfig {
display: block;
}
}
@media (hover: none) and (pointer: coarse) {
#commandLineMobileButton {
display: block !important;

View file

@ -89,7 +89,7 @@ $("#mobileTestConfigPopupWrapper").on("click", (e) => {
}
});
$("#top .mobileConfig").on("click", () => {
$("#mobileTestConfig").on("click", () => {
showPopup();
});

View file

@ -102,6 +102,12 @@
</div>
</div>
</div>
<div id="mobileTestConfig">
<div class="textButton">
<i class="fas fa-fw fa-cog"></i>
Test Settings
</div>
</div>
<div id="typingTest">
<div id="capsWarning" class="hidden">
<i class="fas fa-lock"></i>