From e938e8a8429084d3f3a0d2a70e4f2eef917d1179 Mon Sep 17 00:00:00 2001 From: Liu Xiaoyi Date: Sat, 29 Feb 2020 01:26:36 +0800 Subject: [PATCH] Adjusted background opacity of the 404 page --- 404.html | 47 ++++++++++++++++++++++--------------------- static/css/style.scss | 35 +++++++++++++++++++++++--------- 2 files changed, 50 insertions(+), 32 deletions(-) diff --git a/404.html b/404.html index d980aee..1d4ec75 100644 --- a/404.html +++ b/404.html @@ -11,30 +11,31 @@ permalink: /404.html
-
-
- 404 NOT FOUND +
+
+
+ 404 NOT FOUND +
+ 呜喵,金枪鱼被吃掉了 +
+
+ 如果您认为这一定是出了什么问题,或者正在寻找暂未包含的镜像,欢迎您前往 + + tuna/issues + + 提交错误报告或者镜像申请 +
+ - 呜喵,金枪鱼被吃掉了 -
-
- 如果您认为这一定是出了什么问题,或者正在寻找暂未包含的镜像,欢迎您前往 - - tuna/issues - - 提交错误报告或者镜像申请 -
-
diff --git a/static/css/style.scss b/static/css/style.scss index 374ec5a..903258d 100644 --- a/static/css/style.scss +++ b/static/css/style.scss @@ -322,6 +322,29 @@ body { .not-found { height: 600px; + + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + position: relative; +} + +.not-found-bg { + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + + z-index: -1; + opacity: .5; + filter: grayscale(0.2); + + background-repeat: no-repeat; + background-position: center; + background-image: url(/static/img/missing.png); background-image: -webkit-image-set(url("/static/img/missing.png") 1x, url("/static/img/missing@2x.png") 2x, @@ -331,15 +354,9 @@ body { url("/static/img/missing@2x.png") 2x, url("/static/img/missing@3x.png") 3x, url("/static/img/missing@4x.png") 4x); - background-repeat: no-repeat; - background-position: center; - - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - @include dark { + opacity: 1; + filter: none; background-image: url(/static/img/missing-dark.png); background-image: -webkit-image-set(url("/static/img/missing-dark.png") 1x, url("/static/img/missing-dark@2x.png") 2x, @@ -352,7 +369,7 @@ body { } } -.nonthu .not-found { +.nonthu .not-found-bg { background-image: none; }