From 48c46f0eb442bb9d2ce63e83bb8a714ff8ebd952 Mon Sep 17 00:00:00 2001 From: W1ndys Date: Fri, 12 Apr 2024 20:13:09 +0800 Subject: [PATCH] Update extra.css MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加昼夜切换的颜色过渡效果,更加平滑 --- docs/stylesheets/extra.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index ba1f0b0..4b2a12c 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -459,6 +459,25 @@ padding: 20px 0; font-size: 30px; } +/* 添加过渡效果 */ +* { + transition-property: color, background-color; + /* 设置过渡的属性 */ + transition-duration: 0.5s; + /* 设置过渡的时间 */ + transition-timing-function: cubic-bezier(0.01, 0.34, 0.9, 1.14); + /* 设置过渡的缓动函数 */ +} + +/* 屏蔽过渡效果 */ +p, +h1, +h2, +hr { + transition: none !important; +} + +/*上面是过渡效果*/