From 3f327a3ea75e0c635b88418e5b92454873815f9d Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 30 Jul 2019 14:52:55 -0500 Subject: [PATCH] make cursor blink respect auto-play settings --- app/views/layouts/application.html.haml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index f21d8dd97..f183bfab7 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -83,8 +83,13 @@ -if current_account&.user_shows_cursor? :css - span.cursor { animation: t_blink 1s linear infinite } span.cursor::before { content: " █" } + -if current_account&.user&.setting_auto_play_gif + :css + span.cursor { animation: t_blink 1s linear infinite } + -else + :css + span.cursor:hover { animation: t_blink 1s linear infinite } %body{ class: body_classes } = content_for?(:content) ? yield(:content) : yield