From 8c702e221de8de293d2dcf1613ff57e305636085 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Sat, 17 Jul 2021 21:55:34 -0700 Subject: [PATCH] doc: add styling to runtime.styl --- .../butterfly/source/css/_layout/runtime.styl | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/themes/butterfly/source/css/_layout/runtime.styl b/themes/butterfly/source/css/_layout/runtime.styl index e69de29..ac8c3a8 100644 --- a/themes/butterfly/source/css/_layout/runtime.styl +++ b/themes/butterfly/source/css/_layout/runtime.styl @@ -0,0 +1,26 @@ +/*电子钟字体*/ +@font-face + font-family 'UnidreamLED' + src url('https://cdn.jsdelivr.net/gh/Akilarlxh/Akilarlxh.github.io@v3.3.3_3/clock/fonts/UnidreamLED.ttf') + font-display swap +//页脚计时器 +div#runtime + width 180px + margin auto + color white + padding-inline 5px + border-radius 10px + background-color rgba(0,0,0,0.7) + font-family 'UnidreamLED' + +// 夜间全局透明度 +[data-theme="dark"] + div#runtime + color rgb(40, 180, 200) + box-shadow 0 0 5px rgba(28, 69, 218, 0.71) + animation flashlight 1s linear infinite alternate +@keyframes flashlight + from + box-shadow 0 0 5px rgb(20, 120, 210) + to + box-shadow 0 0 2px rgb(20, 120, 210)