style: some file styles have been updated

This commit is contained in:
XPoet 2020-04-10 22:24:16 +08:00
parent 2f1f0d62e3
commit 83b147499b
9 changed files with 100 additions and 40 deletions

View File

@ -24,24 +24,24 @@ comments:
# Valine. # Valine.
# more info please open https://github.com/xCss/Valine # more info please open https://github.com/xCss/Valine
valine: valine:
enable: false enable: true
appid: # your leancloud application appid appid: ih2nzG3ilVNdLgJK4kBXTjOq-gzGzoHsz
appkey: # your leancloud application appkey appkey: gdf6tXXLBTLg9qpjS2y6Tbw7
notify: false # mail notifier, https://github.com/xCss/Valine/wiki notify: false # mail notifier, https://github.com/xCss/Valine/wiki
verify: false # Verification code verify: false # Verification code
placeholder: your placeholder placeholder: 填写昵称和邮箱才能收到回复通知哦 ~
# Show PV/UV of the website/page with busuanzi. # Show PV/UV of the website/page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi/ # Get more information on http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count: busuanzi_count:
# count values only if the other configs are false # count values only if the other configs are false
enable: false enable: true
# custom uv span for the whole site # custom uv span for the whole site
site_uv: false site_uv: true
# custom pv span for the whole site # custom pv span for the whole site
site_pv: false site_pv: true
# custom pv span for one page only # custom pv span for one page only
page_pv: false page_pv: true
# Local Search # Local Search
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb # Dependencies: https://github.com/theme-next/hexo-generator-searchdb

58
_config2.yml Normal file
View File

@ -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

View File

@ -1,6 +1,5 @@
<% if(page.title == 'about') { %> <div class="about-container">
<div class="about-container"> <div class="about-content markdown-body">
<div class="about-content markdown">
<%- page.content %> <%- page.content %>
</div> </div>
<div class="about-comments"> <div class="about-comments">
@ -8,5 +7,4 @@
<%- partial('_partial/valine') %> <%- partial('_partial/valine') %>
<% } %> <% } %>
</div> </div>
</div> </div>
<% } %>

View File

@ -26,7 +26,7 @@
font-weight: bold; font-weight: bold;
letter-spacing: 1px; letter-spacing: 1px;
color: var(--first-text-color); color: var(--first-text-color);
transform-origin: left center; transition: transform 0.3s ease;
} }
@ -222,7 +222,6 @@
.header-wrapper-shrink { .header-wrapper-shrink {
//background: var(--background-color);
box-shadow: 0 1px 2px var(--border-color); box-shadow: 0 1px 2px var(--border-color);
.header-content { .header-content {

View File

@ -95,7 +95,9 @@
.info { .info {
.txt-right { .txt-right {
display none //display: none;
} }
} }

View File

@ -1,3 +1,5 @@
.about-container { .about-container {
.about-content {
margin-bottom: 40px;
}
} }

View File

@ -25,14 +25,14 @@ $z-index-6 = 1006;
// color // color
// =============================== // ===============================
// normal mode color // normal mode color
$primary-color = #f05026; // $primary-color = #0b6ff0; //
$background-color = #fdfdfd; // $background-color = #fdfdfd; //
$normal-text-color = #535163; // $normal-text-color = #44424e; //
$first-text-color = darken($normal-text-color, 20%); // $first-text-color = darken($normal-text-color, 15%); //
$second-text-color = darken($normal-text-color, 10%); // $second-text-color = darken($normal-text-color, 5%); //
$third-text-color = lighten($normal-text-color, 30%); // $third-text-color = lighten($normal-text-color, 30%); //
$border-color = darken($background-color, 15%); // $border-color = darken($background-color, 15%); //
$selection-color = lighten($primary-color, 8%); $selection-color = lighten($primary-color, 20%);
// dark mode color // dark mode color
$dark-primary-color = $primary-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 = 'Microsoft YaHei', 'SimHei', 'WenQuanYi Micro Hei', sans-serif;
//$default-font-family = "Exo 2", "Trebuchet MS", "Helvetica", "Arial"; //$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-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-line-height = 20px;
$default-font-weight = 400; $default-font-weight = 400;

View File

@ -12,17 +12,17 @@
.home-article-title { .home-article-title {
position: relative; position: relative;
&::before { //&::before {
content: ''; // content: '';
position: absolute; // position: absolute;
top: 50%; // top: 50%;
transform: translateY(-50%); // transform: translateY(-50%);
left: -16px; // left: -12px;
width: 3px; // width: 3px;
height: 22px; // height: 22px;
background: $primary-color; // background: var(--primary-color);
transition: all 0.5s ease; // transition: all 0.5s ease;
} //}
font-weight: 600; font-weight: 600;
color: var(--second-text-color); color: var(--second-text-color);

View File

@ -7,6 +7,7 @@
@import "layout/_partial/header.styl" @import "layout/_partial/header.styl"
@import "layout/_partial/tools.styl" @import "layout/_partial/tools.styl"
@import "layout/_partial/footer.styl" @import "layout/_partial/footer.styl"
@import "layout/about.styl"
@import "layout/_partial/article-meta-info.styl" @import "layout/_partial/article-meta-info.styl"
@import "layout/home-content.styl" @import "layout/home-content.styl"
@import "layout/archive-content.styl" @import "layout/archive-content.styl"