From e4209f798dbaed320527ca086af058ba7352335b Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 26 Mar 2023 12:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=AE=E7=BD=A9=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/css/theme-hexo.css | 10 ++++++++++ public/css/theme-matery.css | 11 +++++++++++ themes/hexo/components/Header.js | 2 +- themes/matery/LayoutBase.js | 5 +++++ themes/matery/components/Header.js | 2 +- 6 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 public/css/theme-matery.css diff --git a/package.json b/package.json index 3e8bb5ba..f8094330 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-next", - "version": "3.13.1", + "version": "3.13.2", "homepage": "https://github.com/tangly1024/NotionNext.git", "license": "MIT", "repository": { diff --git a/public/css/theme-hexo.css b/public/css/theme-hexo.css index d279c691..da253800 100644 --- a/public/css/theme-hexo.css +++ b/public/css/theme-hexo.css @@ -13,3 +13,13 @@ color: #928CEE; } +/* 设置了从上到下的渐变黑色 */ +#theme-hexo .header-cover::before { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.5) 100%); +} \ No newline at end of file diff --git a/public/css/theme-matery.css b/public/css/theme-matery.css new file mode 100644 index 00000000..e3a01f01 --- /dev/null +++ b/public/css/theme-matery.css @@ -0,0 +1,11 @@ + +/* 设置了从上到下的渐变黑色 */ +#theme-matery .header-cover::before { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.5) 100%); +} \ No newline at end of file diff --git a/themes/hexo/components/Header.js b/themes/hexo/components/Header.js index 658e2e77..81838608 100644 --- a/themes/hexo/components/Header.js +++ b/themes/hexo/components/Header.js @@ -86,7 +86,7 @@ const Header = props => { )