From d6c8ad854b2c300eb8ab0f256b3c0afdc6626482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Thu, 23 May 2019 11:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=A4=9C=E9=97=B4=E6=A8=A1=E5=BC=8F=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/layout/layout.ejs | 7 ++++++- themes/yilia/source-src/css/grid.scss | 10 ++++------ themes/yilia/source-src/css/mobile.scss | 20 +++++--------------- themes/yilia/source-src/css/night.scss | 2 +- 4 files changed, 16 insertions(+), 23 deletions(-) diff --git a/themes/yilia/layout/layout.ejs b/themes/yilia/layout/layout.ejs index 8a6dd20..5c681d0 100644 --- a/themes/yilia/layout/layout.ejs +++ b/themes/yilia/layout/layout.ejs @@ -7,7 +7,12 @@ <%- partial('_partial/live2d') %>
-
+
+ +
+
+ +
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %> diff --git a/themes/yilia/source-src/css/grid.scss b/themes/yilia/source-src/css/grid.scss index 4a07dcf..0c03ff8 100644 --- a/themes/yilia/source-src/css/grid.scss +++ b/themes/yilia/source-src/css/grid.scss @@ -20,15 +20,13 @@ html, body, #container { #container{ position:relative; min-height:100%; + background: linear-gradient(200deg,#5aa5c6,#a4854b); .anm-canvas { display: none; } - &.show { - background: linear-gradient(200deg,#5aa5c6,#a4854b); - .anm-canvas { - display: block; - position: fixed; - } + &.show .anm-canvas { + display: block; + position: fixed; } } .body-wrap{ diff --git a/themes/yilia/source-src/css/mobile.scss b/themes/yilia/source-src/css/mobile.scss index e55e5e2..01041f9 100644 --- a/themes/yilia/source-src/css/mobile.scss +++ b/themes/yilia/source-src/css/mobile.scss @@ -55,25 +55,15 @@ } .btnctn{ position: fixed; - width: 50px; - height: 50px; z-index: 4; .slider-trigger{ - position: absolute; - z-index: 101; - width: 42px; - height: 42px; + width: 35px; + height: 35px; text-align: center; - line-height: 50px; - &.back { - top: 0; - left: 0; - } - &.list { - background-color: rgba(100,100,100,0.7) - } + line-height: 40px; + background-color: rgba(100,100,100,0.7); .icon{ - font-size: 24px; + font-size: 20px; color: #fff; } } diff --git a/themes/yilia/source-src/css/night.scss b/themes/yilia/source-src/css/night.scss index 1e3fa53..ecea14f 100644 --- a/themes/yilia/source-src/css/night.scss +++ b/themes/yilia/source-src/css/night.scss @@ -41,7 +41,7 @@ $textColor_night: #d5d5d5; // 文字颜色 body.night { background: $mainBg_night; // 展开菜单之后的背景 - #container.show { + #container { background: none; } // 主背景