about summary refs log tree commit diff
path: root/app/views/layouts
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-30 14:52:55 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-30 14:52:55 -0500
commit3f327a3ea75e0c635b88418e5b92454873815f9d (patch)
tree0f665442c84cd6162c0f42e4de561dbdbd653a63 /app/views/layouts
parent2ca0b8ce628032590ba1a719468ee6730094f549 (diff)
make cursor blink respect auto-play settings
Diffstat (limited to 'app/views/layouts')
-rwxr-xr-xapp/views/layouts/application.html.haml7
1 files changed, 6 insertions, 1 deletions
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