From 5165b3e8b62536ea52c1538e0d304b6f06b1fed7 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Mon, 14 Nov 2022 14:14:06 +0800 Subject: [PATCH] Update noscript.styl and @keyframes --- source/css/_common/components/index.styl | 14 -------------- source/css/main.styl | 2 ++ source/css/noscript.styl | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/source/css/_common/components/index.styl b/source/css/_common/components/index.styl index 77f5cd3..b2ac2e2 100644 --- a/source/css/_common/components/index.styl +++ b/source/css/_common/components/index.styl @@ -1,17 +1,3 @@ -.noscript-warning { - background-color: lighten($red, 20%); - color: white; - font-family: sans-serif; - font-size: 1rem; - font-weight: bold; - left: 0; - position: fixed; - text-align: center; - top: 0; - width: 100%; - z-index: $zindex-5; -} - @import 'back-to-top'; @import 'reading-progress'; diff --git a/source/css/main.styl b/source/css/main.styl index ca6ded3..96f10e4 100644 --- a/source/css/main.styl +++ b/source/css/main.styl @@ -1,5 +1,7 @@ // CSS Style Guide: https://codeguide.co/#css +// https://stylus-lang.com/docs/keyframes.html +vendors = official $scheme = hexo-config('scheme') ? hexo-config('scheme') : 'Muse'; diff --git a/source/css/noscript.styl b/source/css/noscript.styl index 0230c80..3ed8214 100644 --- a/source/css/noscript.styl +++ b/source/css/noscript.styl @@ -28,3 +28,17 @@ body { margin-top: 2rem; } .search-pop-overlay, .sidebar-nav { display: none; } .sidebar-panel { display: block; } + +.noscript-warning { + background-color: lighten($red, 20%); + color: white; + font-family: sans-serif; + font-size: 1rem; + font-weight: bold; + left: 0; + position: fixed; + text-align: center; + top: 0; + width: 100%; + z-index: $zindex-5; +}