make cursor blink respect auto-play settings

staging
multiple creatures 2019-07-30 14:52:55 -05:00
parent 2ca0b8ce62
commit 3f327a3ea7
1 changed files with 6 additions and 1 deletions

View File

@ -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