about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-12-23 19:48:31 -0800
committerEugen Rochko <eugen@zeonfederated.com>2017-12-24 04:48:31 +0100
commita8eb0bf44fe2ec77e9db58b2a602188392f2fc6c (patch)
treef1e48f9acfb92136ff7466854bf9e76b18f8e347 /app/views
parent35fdf561be94200c7e7923ed11cde73b5b681314 (diff)
Reduce motion for boost animation (#5871)
* Reduce motion for boost animation

Fixes #5833

* Fix ternary expression
Diffstat (limited to 'app/views')
-rwxr-xr-xapp/views/layouts/application.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index ee995c987..c0e01da30 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -28,6 +28,7 @@
 
   - body_classes ||= @body_classes || ''
   - body_classes += ' system-font' if current_account&.user&.setting_system_font_ui
+  - body_classes += current_account&.user&.setting_reduce_motion ? ' reduce-motion' : ' no-reduce-motion'
 
   %body{ class: add_rtl_body_class(body_classes) }
     = content_for?(:content) ? yield(:content) : yield