A platform for community discussion. Free, open, simple.
UX: update ring animation to avoid scroll (#21150)
Krisaf58dbeb24a4
diff --git a/app/assets/stylesheets/color_definitions.scss b/app/assets/stylesheets/color_definitions.scssindex e181fed2074..820ca3b333b 100644--- a/app/assets/stylesheets/color_definitions.scss+++ b/app/assets/stylesheets/color_definitions.scss@@ -25,6 +25,7 @@--header_background-rgb: #{hexToRGB($header_background)};--tertiary-rgb: #{hexToRGB($tertiary)};--highlight-rgb: #{hexToRGB($highlight)};+ --success-rgb: #{hexToRGB($success)};--primary-very-low: #{$primary-very-low};--primary-low: #{$primary-low};diff --git a/app/assets/stylesheets/common/base/discourse.scss b/app/assets/stylesheets/common/base/discourse.scssindex 0d1e38e3e9c..15041981b4e 100644--- a/app/assets/stylesheets/common/base/discourse.scss+++ b/app/assets/stylesheets/common/base/discourse.scss@@ -5,13 +5,17 @@// Animation Keyframes@keyframes ping {- from {- transform: scale(0.25);- opacity: 1;+ 0% {+ transform: scale(0.6);+ box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0.7);}- to {- transform: scale(2);- opacity: 0;+ 70% {+ transform: scale(1);+ box-shadow: 0 0 0 10px rgba(var(--success-rgb), 0);+ }+ 100% {+ transform: scale(0.95);+ box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0);}}diff --git a/app/assets/stylesheets/common/base/header.scss b/app/assets/stylesheets/common/base/header.scssindex 169e7784895..4c1c70223bb 100644--- a/app/assets/stylesheets/common/base/header.scss+++ b/app/assets/stylesheets/common/base/header.scss@@ -210,10 +210,11 @@right: 23.5px;z-index: z("base");margin-left: 0;- background: radial-gradient(transparent, var(--success));border-radius: 100%;width: 20px;height: 20px;+ box-shadow: 0 0 0 rgba(var(--success-rgb), 1);+ transform: scale(1);transform-origin: center;animation-iteration-count: infinite;animation-duration: 3s;