From e8237eaf145c44122c4f784b31bde21197dfa4c0 Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Tue, 24 Aug 2021 10:14:27 +0800 Subject: [PATCH] refine code --- assets/app.css | 2 +- layouts/partials/header.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/app.css b/assets/app.css index 6b89b2e..cbbe809 100644 --- a/assets/app.css +++ b/assets/app.css @@ -221,7 +221,7 @@ img { .social a { width: 3rem; margin-left: 3rem; - background: var(--img) center center no-repeat; + background: var(--url) center center no-repeat; } .dark .social a { diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 59534a0..a67de26 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -31,7 +31,7 @@ buttonDark.addEventListener('click', () => { bodyClass.contains('dark') ? setLight() : setDark(); }); - schemeDark.addEventListener('change', event => { + schemeDark.addEventListener('change', (event) => { event.matches ? setDark() : setLight(); }); @@ -50,7 +50,7 @@ {{ range $key, $val := . }}