From 018475bffcc767c188c47a5cd6aa0bf5c46d0684 Mon Sep 17 00:00:00 2001 From: linguist <22963968+lowlighter@users.noreply.github.com> Date: Tue, 5 Jan 2021 13:43:00 +0100 Subject: [PATCH] Update style for mobile --- source/app/web/statics/app.js | 10 ++++++++++ source/app/web/statics/index.html | 21 +++++++++++++++++++++ source/app/web/statics/style.css | 14 ++++++++++++-- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/source/app/web/statics/app.js b/source/app/web/statics/app.js index 7aca6c91..2eb45f74 100644 --- a/source/app/web/statics/app.js +++ b/source/app/web/statics/app.js @@ -18,6 +18,16 @@ } catch (error) {} }, components:{Prism:PrismComponent}, + //Watchers + watch:{ + palette:{ + immediate:true, + handler(current, previous) { + document.querySelector("body").classList.remove(previous) + document.querySelector("body").classList.add(current) + } + } + }, //Data initialization data:{ version, diff --git a/source/app/web/statics/index.html b/source/app/web/statics/index.html index 194c848b..acdb50fb 100644 --- a/source/app/web/statics/index.html +++ b/source/app/web/statics/index.html @@ -237,6 +237,27 @@
+ + + + +
diff --git a/source/app/web/statics/style.css b/source/app/web/statics/style.css index 2b921daa..86ba3635 100644 --- a/source/app/web/statics/style.css +++ b/source/app/web/statics/style.css @@ -3,6 +3,7 @@ font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; padding: 0; margin: 0; + background-color: var(--color-bg-canvas); } main { height: auto; @@ -11,6 +12,9 @@ display: flex; flex-direction: column; } + .flex { + display: flex; + } /* Title */ .title { margin: 0; @@ -32,7 +36,7 @@ } /* Tabs */ nav { - display: flex; + display: none; border-bottom: 1px solid var(--color-border-secondary); flex-shrink: 0; overflow-x: auto; @@ -64,7 +68,6 @@ nav .right { display: flex; border: none; - height: 100%; } nav .left { display: none; @@ -288,10 +291,14 @@ nav { margin: 32px 0 24px; overflow: hidden; + display: flex; } nav .left { display: block; } + nav .right { + height: 100%; + } .container { flex-direction: row; } @@ -303,4 +310,7 @@ .avatar { display: flex; } + .mobile { + display: none; + } }