about summary refs log tree commit diff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-30 15:08:05 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commitf8d23f70b9e5658b109a0180881fb272fccc28ca (patch)
treefd3477b383d9ceeed4c384f087ba88d4d9d33863 /app/views/layouts
parentb2129db547f89ec1e02bf0742cd08fe466867386 (diff)
[UI, Accessibility] Make underlining hyperlinks optional
Diffstat (limited to 'app/views/layouts')
-rwxr-xr-xapp/views/layouts/application.html.haml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index 98ee041c1..aa3c560cb 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -46,6 +46,24 @@
           border-style: dashed;
         }
 
+    - if current_account&.user&.setting_style_underline_a
+      :css
+        .status__content__text a,
+        .reply-indicator__content a,
+        .composer--reply > .content a,
+        .account__header__content a
+        {
+          text-decoration: underline;          
+        }
+
+        .status__content__text a:hover,
+        .reply-indicator__content a:hover,
+        .composer--reply > .content a:hover,
+        .account__header__content a:hover
+        {
+          text-decoration: none;          
+        }
+
   %body{ class: body_classes }
     = content_for?(:content) ? yield(:content) : yield