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