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 @@