From f8d23f70b9e5658b109a0180881fb272fccc28ca Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Thu, 30 Jul 2020 15:08:05 -0500 Subject: [UI, Accessibility] Make underlining hyperlinks optional --- app/views/layouts/application.html.haml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'app/views/layouts') 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 -- cgit