From 504cef8452bccd3b0b6f22a9458527150a70506d Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 4 Apr 2019 09:04:13 +0800 Subject: [PATCH] update --- _config.yml | 6 +++--- layout/layout.ejs | 2 +- source/less/_base.less | 16 +++++++++------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/_config.yml b/_config.yml index 17388c8..d6ed9b4 100755 --- a/_config.yml +++ b/_config.yml @@ -4,10 +4,10 @@ info: docs: https://xaoxuu.com/wiki/material-x/ cdn: # 把对应的那一行注释掉就使用本地的文件 css: - style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/css/style.css + # style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/css/style.css js: - app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/js/app.js - search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.9/js/search.js + # app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/js/app.js + search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/js/search.js volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1/js/volantis.min.js diff --git a/layout/layout.ejs b/layout/layout.ejs index 0e5329a..6b74a84 100755 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -15,7 +15,7 @@ <%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %> <% } %>
-
+
<%- body %>
diff --git a/source/less/_base.less b/source/less/_base.less index 288898f..791190b 100755 --- a/source/less/_base.less +++ b/source/less/_base.less @@ -78,13 +78,6 @@ fancybox{ line-height: @fontsize_h1*2.2; } } - &.half{ - height: ~"calc(60vh - @{gap} - @{height_navbar})"; - .title, .logo{ - margin-top: ~"calc(20vh - 2*@{gap})"; - } - } - .m_search{ margin-top: 2vh; position: relative; @@ -156,6 +149,15 @@ fancybox{ } } + &.half{ + height: ~"calc(60vh - @{gap} - @{height_navbar})"; + .title, .logo{ + margin-top: ~"calc(20vh - 2*@{gap})"; + } + .m_search{ + margin-top: 0; + } + } &, a{ color: @theme_main; }