From d563822005fff9cd336c87272ae7402f22424016 Mon Sep 17 00:00:00 2001 From: XPoet Date: Fri, 8 Jan 2021 16:22:13 +0800 Subject: [PATCH] style: delete invalid CSS in first screen --- source/css/layout/_partial/first-screen.styl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/css/layout/_partial/first-screen.styl b/source/css/layout/_partial/first-screen.styl index e6d725a..3d33f4d 100644 --- a/source/css/layout/_partial/first-screen.styl +++ b/source/css/layout/_partial/first-screen.styl @@ -10,14 +10,14 @@ $first-screen-img = $temp-img ? $temp-img:'/images/bg.svg'; width: 100%; overflow: hidden; background: url($first-screen-img) center center / cover no-repeat; - background-position-y: $header-height - $scroll-progress-bar-height; + background-position-y: $header-height; +keep-tablet() { - background-position-y: $header-height * 0.9 - $scroll-progress-bar-height; + background-position-y: $header-height * 0.9; } +keep-mobile() { - background-position-y: $header-height * 0.8 - $scroll-progress-bar-height; + background-position-y: $header-height * 0.8; } .content {