add ismobile :3

This commit is contained in:
Ashley 2024-01-14 08:08:23 +00:00
parent 9d993d25f6
commit a3d1ea8b68

View file

@ -99,7 +99,6 @@
body {
justify-content: center;
overflow:hidden;
font-family: sans-serif;
}
@ -152,7 +151,6 @@
grid-area: translations;
}
@media screen and (prefers-color-scheme: dark) {
body {
background-color: #212529;
color: #f8f9fa;
@ -197,8 +195,24 @@
.use_in_sentence {
color: yellow;
}
}
</style>
<% if (isMobile) { %>
<style>
body {
overflow: auto;
}
</style>
<% } %>
<% if (!isMobile) { %>
<style>
body {
overflow: hidden;
}
</style>
<% } %>
</head>
<body>