Bug 37222: (follow-up) More corrections to sidebar style

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2025-01-13 18:21:44 +00:00 committed by Katrin Fischer
parent 2b1ba6982d
commit 48789031f5
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 22 additions and 15 deletions

View File

@ -483,7 +483,7 @@ aside {
list-style: none;
a {
border-left: 5px solid #E6E6E6;
border-left: 5px solid transparent;
color: #000;
display: block;
padding: .7em .3em .7em 1rem;
@ -511,6 +511,10 @@ aside {
}
}
}
.breadcrumb-item {
font-style: normal;
}
}
div {

View File

@ -208,19 +208,21 @@ $(document).ready(function () {
var sidebar_menu = $(".sidebar_menu");
if (sidebar_menu.length > 0) {
var path = location.pathname.substring(1);
var url = window.location.toString();
var params = "";
if (url.match(/\?(.+)$/)) {
params = "?" + RegExp.$1;
}
if ($('a[href$="/' + path + params + '"]', sidebar_menu).length == 0) {
$('a[href$="/' + path + '"]', sidebar_menu).addClass("current");
} else {
$('a[href$="/' + path + params + '"]', sidebar_menu).addClass(
"current"
);
}
sidebar_menu.each(function () {
var path = location.pathname.substring(1);
var url = window.location.toString();
var params = "";
if (url.match(/\?(.+)$/)) {
params = "?" + RegExp.$1;
}
if ($('a[href$="/' + path + params + '"]', $(this)).length == 0) {
$('a[href$="/' + path + '"]', $(this)).addClass("current");
} else {
$('a[href$="/' + path + params + '"]', $(this)).addClass(
"current"
);
}
});
}
$("#catalog-search-link a").on("mouseenter mouseleave", function () {

View File

@ -173,6 +173,7 @@ export default {
<style>
#menu ul ul,
.sidebar_menu ul ul {
background-color: transparent;
padding-left: 2em;
font-size: 100%;
}
@ -198,7 +199,7 @@ textarea {
}
.sidebar_menu ul li a.current.disabled {
background-color: inherit;
border-left: 5px solid #e6e6e6;
border-left: 5px solid transparent;
color: #000;
}
.sidebar_menu ul li a.disabled {