From 968f5f09ed8a276fe59f4e4f7a4aa33c066f702f Mon Sep 17 00:00:00 2001 From: Stranck Date: Thu, 22 Feb 2024 15:53:06 +0100 Subject: [PATCH] Added back rainbow animation to sponsorcount text --- res/styles/base.css | 15 +++++++++++++++ res/styles/navbar.css | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/res/styles/base.css b/res/styles/base.css index 52cf4fb..37d9a1a 100644 --- a/res/styles/base.css +++ b/res/styles/base.css @@ -12,6 +12,21 @@ summary:has(span.status) { background-color: #ffaf0377; } +.rainbow-text { + background-image: repeating-linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff); + background-size: 2000% 2000%; + color: transparent; + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + animation: rainbow 4s linear infinite; +} + +@keyframes rainbow { + 0% { background-position:0% 0%; } + 100% { background-position:57.75% 0%; } +} + /* Dark theme */ @media only screen and (prefers-color-scheme: dark) { .icon {filter: invert(1);} diff --git a/res/styles/navbar.css b/res/styles/navbar.css index 91f083d..4d34f22 100644 --- a/res/styles/navbar.css +++ b/res/styles/navbar.css @@ -43,21 +43,6 @@ nav img { box-sizing: border-box; } -a.rainbow-text { - background-image: repeating-linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff); - background-size: 2000% 2000%; - color: transparent; - background-clip: text; - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - animation: rainbow 4s linear infinite; -} - -@keyframes rainbow { - 0% { background-position:0% 0%; } - 100% { background-position:57.75% 0%; } -} - nav a#mobileMenu { display: none; }