mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 14:37:56 +01:00
add ismobile :3
This commit is contained in:
parent
9d993d25f6
commit
a3d1ea8b68
1 changed files with 23 additions and 9 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue