diff --git a/package.json b/package.json index 8db79b2..80917f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo_blog", - "version": "1.0.6", + "version": "1.1.0", "private": true, "hexo": { "version": "3.8.0" diff --git a/themes/yilia/package.json b/themes/yilia/package.json index b03db4e..b6f9ea7 100644 --- a/themes/yilia/package.json +++ b/themes/yilia/package.json @@ -1,6 +1,6 @@ { "name": "yilia", - "version": "5.1.0", + "version": "5.1.1", "description": "Hexo响应式主题", "scripts": { "dev": "webpack --progress --mode development", diff --git a/themes/yilia/source-src/css/core/_variables.scss b/themes/yilia/source-src/css/core/_variables.scss index 4c4f558..1abc86b 100644 --- a/themes/yilia/source-src/css/core/_variables.scss +++ b/themes/yilia/source-src/css/core/_variables.scss @@ -24,6 +24,7 @@ $colorBg: #f0eae3 !default; $colorBorder: #dbdbdb !default; $colorLink: #08c !default; $colorPlaceholder: #999 !default; // input placeholder color +$tagcolorList: #88acdb #ffa07a #ca5757 #76becc #7e608d #6fc0e4 #bc8f8f; // 标签颜色组 $colorDisabled: (text: #999, bg: #e3e3e3, border: #dbdbdb) !default; // textColor bgColor borderColor diff --git a/themes/yilia/source-src/css/night.scss b/themes/yilia/source-src/css/night.scss index ecea14f..1d0e5be 100644 --- a/themes/yilia/source-src/css/night.scss +++ b/themes/yilia/source-src/css/night.scss @@ -115,4 +115,19 @@ body.night { .category-list li.category-list-item { border-color: $borderColor_night; } + // 标签颜色组 + .tagcloud { + @for $index from 1 to length($tagcolorList)+1 { + a.color#{$index}{ + background: darken(nth($tagcolorList,$index), 25%); + &::before{ + border-right-color: darken(nth($tagcolorList,$index), 25%); + } + } + } + } + // 滚动条 + ::-webkit-scrollbar { + background-color: $articleBg_night; + } } \ No newline at end of file diff --git a/themes/yilia/source-src/css/scroll.scss b/themes/yilia/source-src/css/scroll.scss index 6b513ab..979c0d8 100644 --- a/themes/yilia/source-src/css/scroll.scss +++ b/themes/yilia/source-src/css/scroll.scss @@ -2,12 +2,12 @@ ::-webkit-scrollbar { width: 10px; height: 10px; + background-color: $colorBg; } ::-webkit-scrollbar-button { width: 0; height: 0; - background-color: $colorBg; } ::-webkit-scrollbar-button:start:increment,::-webkit-scrollbar-button:end:decrement { diff --git a/themes/yilia/source-src/css/tags.scss b/themes/yilia/source-src/css/tags.scss index 2bb5bd5..2a69945 100644 --- a/themes/yilia/source-src/css/tags.scss +++ b/themes/yilia/source-src/css/tags.scss @@ -14,7 +14,7 @@ position:relative; border-radius:0 5px 5px 0; margin: 5px 9px 5px 8px; - font-family: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace; + font-family: Menlo, Monaco, "Andale Mono", "lucida console"; &:hover{ opacity: 0.8; } @@ -39,14 +39,12 @@ left: 2px; } } - // 标签背景色 - $tagcolorlist: #88acdb #ffa07a #f08080 #76becc #918597 #6fc0e4 #bc8f8f; - @for $index from 1 to length($tagcolorlist)+1 { + @for $index from 1 to length($tagcolorList)+1 { a.color#{$index}{ - background: nth($tagcolorlist,$index); + background: nth($tagcolorList,$index); &::before{ - border-right-color: nth($tagcolorlist,$index); + border-right-color: nth($tagcolorList,$index); } } }