mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
added mobile config button
This commit is contained in:
parent
0e25e39dc3
commit
bd427c0e01
4 changed files with 35 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ $("#mobileTestConfigPopupWrapper").on("click", (e) => {
|
|||
}
|
||||
});
|
||||
|
||||
$("#top .mobileConfig").on("click", () => {
|
||||
$("#mobileTestConfig").on("click", () => {
|
||||
showPopup();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue