From e12a4d410b7b3c9fd5dc21c96ba4fbf9e2fda2a8 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 2 Dec 2021 01:59:06 +0000 Subject: [PATCH] Bug 29604: Dont add psuedo content to highlighted terms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To test: 1. Do a search for something where the search terms will be in the 505 note. 2. Visit the OPAC detail page of the record. 3. The first occurance of the term highlighting will include the CSS pseduo element "→ "; 4. Apply patch 5. Do the stuff to regenerate the CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface) 6. Do 1 & 2 again. 7. No weird psuedo element in the term highlighting --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 2f48d69f60..b88cc9b7b5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -2415,7 +2415,7 @@ nav { line-height: 135%; margin-left: 2em; - :first-child::before { + :first-child:not(.term)::before { content: "→ "; } } -- 2.20.1