From bf0c2c7d8c8c31219a6891a62689a3e4cdff0bef 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 13 +++++++++++++ .../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 bcae03e538..e44ae2f111 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 %]