From 64fcceaeec3759087de1c986369a6a43918f0232 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 15 Jan 2021 19:15:06 +0000 Subject: [PATCH] Bug 27445: OPAC header tweaks for non-JavaScript users This patch makes some minor changes to the header menu in the OPAC visible only to users with JavaScript support. To test, apply the patch and rebuild the OPAC CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - View the OPAC with JS disabled in your browser. - The "Cart" button should not be visible. - The "List," "Log in," and "Search history" links should be styled blue like other links. - Log in to the OPAC and confirm that the "Welcome " link is also styled like other links. - Enable JavaScript and verify that the links appear and function just as they did before the patch. Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 13 +++++++++++++ koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 7bab9bc9b6..0bdb49d70d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -20,6 +20,19 @@ padding-left: 0; padding-right: 0; } + .dropdown-toggle::after { + border: 0; + } + + #listsmenu, + #user-menu, + .nav-item .login-link { + color: $links; + + &:hover { + color: $links-hover; + } + } } .js { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index b58703b8d0..5c10234c1e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -27,7 +27,7 @@ [% END %]