From a3d1ea8b68930e6df951efe4928b2003efd79125 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 14 Jan 2024 08:08:23 +0000 Subject: [PATCH] add ismobile :3 --- html/translate.ejs | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/html/translate.ejs b/html/translate.ejs index 94d737b0..ddde942e 100644 --- a/html/translate.ejs +++ b/html/translate.ejs @@ -7,8 +7,8 @@ - - + + @@ -99,7 +99,6 @@ body { justify-content: center; - overflow:hidden; font-family: sans-serif; } @@ -152,22 +151,21 @@ grid-area: translations; } - @media screen and (prefers-color-scheme: dark) { - body { + body { background-color: #212529; color: #f8f9fa; } - #could_not_switch_languages_text { + #could_not_switch_languages_text { color: #F13333; } - a:visited { + a:visited { color: #9759f6; text-decoration: none; } - a { + a { color: #599bf6; text-decoration: none; } @@ -197,8 +195,24 @@ .use_in_sentence { color: yellow; } - } + + + <% if (isMobile) { %> + + <% } %> + + <% if (!isMobile) { %> + + <% } %>