about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-10 03:04:05 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-10 03:04:05 -0600
commit13f49590347dd350c534663c2876ab4db5613aba (patch)
tree7cb9f714d199e6a3bb3de3d5c04f943ec04dc54b /app/views
parent41b0d10e88e02810006657c27b8ea3576646d45e (diff)
add accessibility option to make everything lowercase
Diffstat (limited to 'app/views')
-rwxr-xr-xapp/views/layouts/application.html.haml4
-rw-r--r--app/views/settings/preferences/show.html.haml1
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 985e54683..a471d7b6f 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -87,6 +87,10 @@
         :css
           span.cursor:hover { animation: t_blink 1s linear infinite }
 
+    - if current_account&.user_forces_lowercase?
+      :css
+        * { text-transform: lowercase; font-variant: inherit !important; }
+
   %body{ class: body_classes }
     = content_for?(:content) ? yield(:content) : yield
 
diff --git a/app/views/settings/preferences/show.html.haml b/app/views/settings/preferences/show.html.haml
index bde3dcf23..74a643c14 100644
--- a/app/views/settings/preferences/show.html.haml
+++ b/app/views/settings/preferences/show.html.haml
@@ -81,6 +81,7 @@
     = f.input :setting_larger_drawer, as: :boolean, wrapper: :with_label
     = f.input :setting_larger_emoji, as: :boolean, wrapper: :with_label
     = f.input :setting_show_cursor, as: :boolean, wrapper: :with_label
+    = f.input :setting_force_lowercase, as: :boolean, wrapper: :with_label
 
   .fields-group
     = f.input :setting_hide_mascot, as: :boolean, wrapper: :with_label