Bugzilla – Attachment 177290 Details for
Bug 37222
Standardize markup for sidebar menus
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37222: (follow-up) More corrections to sidebar style
Bug-37222-follow-up-More-corrections-to-sidebar-st.patch (text/plain), 4.94 KB, created by
Lucas Gass (lukeg)
on 2025-01-28 18:21:17 UTC
(
hide
)
Description:
Bug 37222: (follow-up) More corrections to sidebar style
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-01-28 18:21:17 UTC
Size:
4.94 KB
patch
obsolete
>From 15116f5f3935fc3b5cdf34619f75f034eb4d49d8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 13 Jan 2025 18:21:44 +0000 >Subject: [PATCH] Bug 37222: (follow-up) More corrections to sidebar style > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../prog/css/src/staff-global.scss | 6 +++- > .../prog/en/modules/tools/stockrotation.tt | 12 ++------ > .../intranet-tmpl/prog/js/staff-global.js | 28 ++++++++++--------- > .../prog/js/vue/components/ERM/Main.vue | 3 +- > 4 files changed, 24 insertions(+), 25 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 5f7f77c6734..1fd19749496 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -478,7 +478,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; >@@ -506,6 +506,10 @@ aside { > } > } > } >+ >+ .breadcrumb-item { >+ font-style: normal; >+ } > } > > div { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >index 015fcf28d24..715e1e388ca 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >@@ -640,18 +640,10 @@ > [% IF ( op == 'manage_stages' || op == 'manage_items' ) %] > <div id="stockrotation-menu" class="sidebar_menu"> > <ul> >- [% IF op == 'manage_stages' %] >- <li class="active"> >- [% ELSE %] >- <li> >- [% END %] >+ <li> > <a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_stages&rota_id=[% rota_id | uri %]">Manage stages</a> > </li> >- [% IF op == 'manage_items' %] >- <li class="active"> >- [% ELSE %] >- <li> >- [% END %] >+ <li> > <a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_items&rota_id=[% rota_id | uri %]">Manage items</a> > </li> > </ul> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 53f2eba8ef9..07348dc5213 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -181,19 +181,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 () { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >index e2ca0159ffa..3aa4164c9b2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue >@@ -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 { >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37222
:
168285
|
168560
|
168562
|
168595
|
169426
|
169739
|
170640
|
170997
|
171151
|
173971
|
174477
|
175333
|
175334
|
175969
|
176469
|
176732
|
176733
|
176734
|
177288
|
177289
| 177290 |
177291
|
177324