From 83b147499bd4119484e0c2c4e16a5341789527a4 Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 10 Apr 2020 22:24:16 +0800 Subject: [PATCH] style: some file styles have been updated --- _config.yml | 16 +++---- _config2.yml | 58 +++++++++++++++++++++++++ layout/about.ejs | 20 ++++----- source/css/layout/_partial/header.styl | 3 +- source/css/layout/_partial/valine.styl | 4 +- source/css/layout/about.styl | 4 +- source/css/layout/common/variables.styl | 12 ++--- source/css/layout/home-content.styl | 22 +++++----- source/css/style.styl | 1 + 9 files changed, 100 insertions(+), 40 deletions(-) create mode 100644 _config2.yml diff --git a/_config.yml b/_config.yml index 8e4d03a..a31ce6a 100644 --- a/_config.yml +++ b/_config.yml @@ -24,24 +24,24 @@ comments: # Valine. # more info please open https://github.com/xCss/Valine valine: - enable: false - appid: # your leancloud application appid - appkey: # your leancloud application appkey + enable: true + appid: ih2nzG3ilVNdLgJK4kBXTjOq-gzGzoHsz + appkey: gdf6tXXLBTLg9qpjS2y6Tbw7 notify: false # mail notifier, https://github.com/xCss/Valine/wiki verify: false # Verification code - placeholder: your placeholder + placeholder: 填写昵称和邮箱才能收到回复通知哦 ~ # Show PV/UV of the website/page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi/ busuanzi_count: # count values only if the other configs are false - enable: false + enable: true # custom uv span for the whole site - site_uv: false + site_uv: true # custom pv span for the whole site - site_pv: false + site_pv: true # custom pv span for one page only - page_pv: false + page_pv: true # Local Search # Dependencies: https://github.com/theme-next/hexo-generator-searchdb diff --git a/_config2.yml b/_config2.yml new file mode 100644 index 0000000..74d1f5c --- /dev/null +++ b/_config2.yml @@ -0,0 +1,58 @@ +# theme basic info +theme_info: + name: ILS + version: 1.0.0 + author: XPoet + repository: https://github.com/XPoet/hexo-theme-ils + +# navigation menu +menu: + Home: / + Archives: /archives + About: /about + # Links: /links + # ... + +# RSS +rss: /atom.xml + +# favicon +favicon: images/favicon.png + +# comment plugin +comments: + # Valine. + # more info please open https://github.com/xCss/Valine + valine: + enable: false + appid: # your leancloud application appid + appkey: # your leancloud application appkey + notify: false # mail notifier, https://github.com/xCss/Valine/wiki + verify: false # Verification code + placeholder: your placeholder + +# Show PV/UV of the website/page with busuanzi. +# Get more information on http://ibruce.info/2015/04/04/busuanzi/ +busuanzi_count: + # count values only if the other configs are false + enable: false + # custom uv span for the whole site + site_uv: false + # custom pv span for the whole site + site_pv: false + # custom pv span for one page only + page_pv: false + +# Local Search +# Dependencies: https://github.com/theme-next/hexo-generator-searchdb +local_search: + enable: false + # If auto, trigger search by changing input. + # If manual, trigger search by pressing enter key or search button. + trigger: auto + # Show top n results per article, show all results by setting to -1 + top_n_per_article: 1 + # Unescape html strings to the readable one. + unescape: false + # Preload the search data when the page loads. + preload: false \ No newline at end of file diff --git a/layout/about.ejs b/layout/about.ejs index 4b6d153..d039e86 100644 --- a/layout/about.ejs +++ b/layout/about.ejs @@ -1,12 +1,10 @@ -<% if(page.title == 'about') { %> -
-
- <%- page.content %> -
-
- <% if (page.comments) { %> - <%- partial('_partial/valine') %> - <% } %> -
+
+
+ <%- page.content %>
-<% } %> +
+ <% if (page.comments) { %> + <%- partial('_partial/valine') %> + <% } %> +
+
diff --git a/source/css/layout/_partial/header.styl b/source/css/layout/_partial/header.styl index 9c6200a..0c5bb6f 100644 --- a/source/css/layout/_partial/header.styl +++ b/source/css/layout/_partial/header.styl @@ -26,7 +26,7 @@ font-weight: bold; letter-spacing: 1px; color: var(--first-text-color); - transform-origin: left center; + transition: transform 0.3s ease; } @@ -222,7 +222,6 @@ .header-wrapper-shrink { - //background: var(--background-color); box-shadow: 0 1px 2px var(--border-color); .header-content { diff --git a/source/css/layout/_partial/valine.styl b/source/css/layout/_partial/valine.styl index 431a084..9eeadcb 100644 --- a/source/css/layout/_partial/valine.styl +++ b/source/css/layout/_partial/valine.styl @@ -95,7 +95,9 @@ .info { .txt-right { - display none + //display: none; + + } } diff --git a/source/css/layout/about.styl b/source/css/layout/about.styl index ba32d34..8c89484 100644 --- a/source/css/layout/about.styl +++ b/source/css/layout/about.styl @@ -1,3 +1,5 @@ .about-container { - + .about-content { + margin-bottom: 40px; + } } \ No newline at end of file diff --git a/source/css/layout/common/variables.styl b/source/css/layout/common/variables.styl index f17934f..47ed406 100644 --- a/source/css/layout/common/variables.styl +++ b/source/css/layout/common/variables.styl @@ -25,14 +25,14 @@ $z-index-6 = 1006; // color // =============================== // normal mode color -$primary-color = #f05026; // 主题颜色 +$primary-color = #0b6ff0; // 主题颜色 $background-color = #fdfdfd; // 背景颜色 -$normal-text-color = #535163; // 通用文本颜色(默认字体颜色) -$first-text-color = darken($normal-text-color, 20%); // 第一文本颜色 -$second-text-color = darken($normal-text-color, 10%); // 第二文本颜色 +$normal-text-color = #44424e; // 通用文本颜色(默认字体颜色) +$first-text-color = darken($normal-text-color, 15%); // 第一文本颜色 +$second-text-color = darken($normal-text-color, 5%); // 第二文本颜色 $third-text-color = lighten($normal-text-color, 30%); // 第三文本颜色 $border-color = darken($background-color, 15%); // 边框颜色 -$selection-color = lighten($primary-color, 8%); +$selection-color = lighten($primary-color, 20%); // dark mode color $dark-primary-color = $primary-color; @@ -53,7 +53,7 @@ $dark-selection-color = $selection-color; //$default-font-family = 'Microsoft YaHei', 'SimHei', 'WenQuanYi Micro Hei', sans-serif; //$default-font-family = "Exo 2", "Trebuchet MS", "Helvetica", "Arial"; $default-font-family = Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; -$default-font-size = 14px; +$default-font-size = 15px; $default-font-line-height = 20px; $default-font-weight = 400; diff --git a/source/css/layout/home-content.styl b/source/css/layout/home-content.styl index 00cf73a..851a057 100644 --- a/source/css/layout/home-content.styl +++ b/source/css/layout/home-content.styl @@ -12,17 +12,17 @@ .home-article-title { position: relative; - &::before { - content: ''; - position: absolute; - top: 50%; - transform: translateY(-50%); - left: -16px; - width: 3px; - height: 22px; - background: $primary-color; - transition: all 0.5s ease; - } + //&::before { + // content: ''; + // position: absolute; + // top: 50%; + // transform: translateY(-50%); + // left: -12px; + // width: 3px; + // height: 22px; + // background: var(--primary-color); + // transition: all 0.5s ease; + //} font-weight: 600; color: var(--second-text-color); diff --git a/source/css/style.styl b/source/css/style.styl index 1beff41..8488516 100644 --- a/source/css/style.styl +++ b/source/css/style.styl @@ -7,6 +7,7 @@ @import "layout/_partial/header.styl" @import "layout/_partial/tools.styl" @import "layout/_partial/footer.styl" +@import "layout/about.styl" @import "layout/_partial/article-meta-info.styl" @import "layout/home-content.styl" @import "layout/archive-content.styl"