From 022a20ea026fa49507251b83d94d994ea83de998 Mon Sep 17 00:00:00 2001 From: reco_luan Date: Sun, 14 Apr 2019 20:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=BB=E9=A2=98=E8=89=B2?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Home.vue | 73 ++++++++++++----------- components/Page.vue | 2 +- components/Theme/CogIcon.vue | 20 ------- components/Theme/ThemeOptions.vue | 80 +++++++++++++++----------- components/Theme/index.vue | 40 ++++++------- components/Theme/recoConfig.js | 22 +++++++ components/Theme/themeHandler.js | 46 --------------- components/Theme/yuuConfig.js | 19 ------ fonts/iconfont.css | 16 ++++-- fonts/iconfont.eot | Bin 6168 -> 6376 bytes fonts/iconfont.svg | 5 +- fonts/iconfont.ttf | Bin 6000 -> 6208 bytes fonts/iconfont.woff | Bin 4132 -> 4260 bytes fonts/iconfont.woff2 | Bin 3380 -> 3556 bytes package.json | 2 +- styles/colorMode/colorMixin.styl | 55 ++++++++++++++++++ styles/colorMode/colorMode.styl | 17 ++++++ styles/colorMode/index.styl | 2 + styles/{ => colorMode}/nightMode.styl | 36 ++++++++++-- styles/theme.styl | 4 +- 20 files changed, 247 insertions(+), 192 deletions(-) delete mode 100755 components/Theme/CogIcon.vue create mode 100755 components/Theme/recoConfig.js delete mode 100755 components/Theme/themeHandler.js delete mode 100755 components/Theme/yuuConfig.js create mode 100644 styles/colorMode/colorMixin.styl create mode 100644 styles/colorMode/colorMode.styl create mode 100644 styles/colorMode/index.styl rename styles/{ => colorMode}/nightMode.styl (63%) diff --git a/components/Home.vue b/components/Home.vue index 35e6a32..2ee1f3e 100644 --- a/components/Home.vue +++ b/components/Home.vue @@ -174,56 +174,55 @@ export default { } &.reco-hide { - .hero { - img { - load-start() - } - .h1 { - load-start() - } - .description { - load-start() - } - .action-button { - load-start() - } - } - .features { + .hero { + img { load-start() } - .home-center { + .h1 { load-start() } - .footer { + .description { + load-start() + } + .action-button { load-start() } } + .features { + load-start() + } + .home-center { + load-start() + } + .footer { + load-start() + } +} - &.reco-show { - .hero { - img { - load-end(0.08s) - } - .h1 { - load-end(0.16s) - } - .description { - load-end(0.24s) - } - .action-button { - load-end(0.32s) - } +&.reco-show { + .hero { + img { + load-end(0.08s) } - .features { - load-end(0.40s) + .h1 { + load-end(0.16s) } - .home-center { - load-end(0.48s) + .description { + load-end(0.24s) } - .footer { - load-end(0.56s) + .action-button { + load-end(0.32s) } } + .features { + load-end(0.40s) + } + .home-center { + load-end(0.48s) + } + .footer { + load-end(0.56s) + } } @media (max-width: $MQMobile) { diff --git a/components/Page.vue b/components/Page.vue index 9f5b9ba..8c622f3 100644 --- a/components/Page.vue +++ b/components/Page.vue @@ -219,7 +219,7 @@ function flatten (items, res) {