From b305552695f7a4192229f6531da413725fcbc23a Mon Sep 17 00:00:00 2001 From: Qing Date: Tue, 19 Dec 2023 20:24:32 +0800 Subject: [PATCH] dark light update --- src/assets/css/home-style.css | 8 ++++---- src/components/Home/HomePage.vue | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/assets/css/home-style.css b/src/assets/css/home-style.css index ae764e6..2920156 100644 --- a/src/assets/css/home-style.css +++ b/src/assets/css/home-style.css @@ -43,7 +43,7 @@ html { -webkit-font-smoothing: antialiased; } -.body { +body { font-family: var(--body-font); background-image: url(../../assets/img/macos-big-sur-1280x720-dark-wwdc-2020-22655.jpg); background-size: cover; @@ -57,7 +57,7 @@ html { height: 100vh; } @media screen and (max-width: 480px) { - .body { + body { padding: 0.8em; } } @@ -118,8 +118,8 @@ img { background-color: rgba(255, 255, 255, 0.94); } -.body.light-mode:before, -.body.light-mode .video-bg:before { +body.light-mode:before, +body.light-mode .video-bg:before { content: ""; position: absolute; left: 0; diff --git a/src/components/Home/HomePage.vue b/src/components/Home/HomePage.vue index 6f7b83b..24c19ab 100644 --- a/src/components/Home/HomePage.vue +++ b/src/components/Home/HomePage.vue @@ -1,5 +1,5 @@