From 0058f7012f6b1c28ebe04792d22e6aeee597b483 Mon Sep 17 00:00:00 2001 From: JimhHan <50871214+JimhHan@users.noreply.github.com> Date: Sun, 4 Apr 2021 00:17:54 +0800 Subject: [PATCH] Add: dark mode --- docs/.vuepress/components/Tab.vue | 2 +- docs/.vuepress/components/Tabs.vue | 27 +++++++++++++++++++++------ docs/.vuepress/config.js | 4 +++- docs/.vuepress/styles/blockquote.styl | 19 +++++++++++++++++++ docs/.vuepress/styles/index.styl | 7 ++----- docs/.vuepress/styles/palette.styl | 21 ++------------------- docs/.vuepress/styles/theme.styl | 5 +++++ package.json | 3 ++- yarn.lock | 5 +++++ 9 files changed, 60 insertions(+), 33 deletions(-) create mode 100644 docs/.vuepress/styles/blockquote.styl create mode 100644 docs/.vuepress/styles/theme.styl diff --git a/docs/.vuepress/components/Tab.vue b/docs/.vuepress/components/Tab.vue index e06a38f..4f0f24a 100644 --- a/docs/.vuepress/components/Tab.vue +++ b/docs/.vuepress/components/Tab.vue @@ -24,7 +24,7 @@ export default Vue.extend({ labelID: "" }; }, - created() { + beforeMount() { let tag = "tab-" + Math.random() diff --git a/docs/.vuepress/components/Tabs.vue b/docs/.vuepress/components/Tabs.vue index 6c1d6a1..47a1423 100644 --- a/docs/.vuepress/components/Tabs.vue +++ b/docs/.vuepress/components/Tabs.vue @@ -1,17 +1,17 @@