From ea004108b8564eb17151adba7500d39cca5aa568 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Thu, 28 Sep 2023 10:39:38 +0200 Subject: [PATCH] [Glitch] Make notification respect reduce-motion Port 6d0767558a86c1ae3c42cb5ab0f6f78a2e93c1eb to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/components/misc.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/components/misc.scss b/app/javascript/flavours/glitch/styles/components/misc.scss index 9a1ba64537..24ac12e16a 100644 --- a/app/javascript/flavours/glitch/styles/components/misc.scss +++ b/app/javascript/flavours/glitch/styles/components/misc.scss @@ -1701,14 +1701,17 @@ noscript { box-shadow: 0 10px 15px -3px rgba($base-shadow-color, 0.25), 0 4px 6px -4px rgba($base-shadow-color, 0.25); cursor: default; - transition: 0.5s cubic-bezier(0.89, 0.01, 0.5, 1.1); - transform: translateZ(0); font-size: 15px; line-height: 21px; &.notification-bar-active { inset-inline-start: 1rem; } + + .no-reduce-motion & { + transition: 0.5s cubic-bezier(0.89, 0.01, 0.5, 1.1); + transform: translateZ(0); + } } .notification-bar-title {