Bugzilla – Attachment 120256 Details for
Bug 28179
Use a lightbox gallery to display the images - detail page, staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28179: (follow-up) Updates to styling of lightbox controls
Bug-28179-follow-up-Updates-to-styling-of-lightbox.patch (text/plain), 5.22 KB, created by
Jonathan Druart
on 2021-04-28 07:54:56 UTC
(
hide
)
Description:
Bug 28179: (follow-up) Updates to styling of lightbox controls
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-04-28 07:54:56 UTC
Size:
5.22 KB
patch
obsolete
>From feed4077775a6aa10198d92914b5a90c5b2e927b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 23 Apr 2021 13:52:29 +0000 >Subject: [PATCH] Bug 28179: (follow-up) Updates to styling of lightbox > controls > >This patch fixes a bug and adds some style changes which I think are >nice. The bugfix is to change the z-index of the lightbox footer so that >it isn't hidden when there is a language menu in the footer. > >The cosmetic changes replace the Chocolat image icons with new SVG >assets based on Bootstrap Icons (https://icons.getbootstrap.com/). The >color changes I think help the controls to be more visible. > >License information about Bootstrap Icons has been added to the About >page. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../lib/Chocolat/css/chocolat.css | 37 +++++++++++++++++++ > .../intranet-tmpl/prog/en/modules/about.tt | 5 +++ > 2 files changed, 42 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/lib/Chocolat/css/chocolat.css b/koha-tmpl/intranet-tmpl/lib/Chocolat/css/chocolat.css >index e5ad53cd1ac..16d2c95f249 100644 >--- a/koha-tmpl/intranet-tmpl/lib/Chocolat/css/chocolat.css >+++ b/koha-tmpl/intranet-tmpl/lib/Chocolat/css/chocolat.css >@@ -228,3 +228,40 @@ body.chocolat-open > .chocolat-image-wrapper { > opacity: 0; > } > */ >+ >+/* Local chnages for Koha */ >+.chocolat-wrapper { >+ z-index: 1035; >+} >+ >+.chocolat-wrapper .chocolat-left { >+ background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-arrow-left-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5z' style='fill:%237ab8ba;fill-opacity:1' /%3E%3C/svg%3E") 50% 50% no-repeat; >+ background-size: 35px; >+} >+.chocolat-wrapper .chocolat-right { >+ background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-arrow-right-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z' style='fill:%237ab8ba;fill-opacity:1' /%3E%3C/svg%3E") 50% 50% no-repeat; >+ background-size: 35px; >+} >+ >+.chocolat-wrapper .chocolat-close { >+ background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-x-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z' style='fill:%237ab8ba;fill-opacity:1' /%3E%3C/svg%3E") 50% 50% no-repeat; >+ background-size: 35px; >+} >+ >+.chocolat-wrapper .chocolat-bottom { >+ background: rgba(0, 0, 0, 0.8); >+} >+ >+.chocolat-wrapper .chocolat-bottom a { >+ color: #FFF; >+ text-decoration: underline; >+} >+ >+.chocolat-wrapper .chocolat-fullscreen { >+ width: 40px; >+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='currentColor' class='bi bi-arrow-down-left-square' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M14.357 3.656a.692.692 0 00-.691-.692H2.263a.692.692 0 00-.691.692v8.303c0 .382.31.692.691.692h11.403c.382 0 .691-.31.691-.692zm-13.477 0c0-.764.62-1.383 1.383-1.383h11.403c.764 0 1.383.62 1.383 1.383v8.303c0 .764-.62 1.383-1.383 1.383H2.263C1.5 13.342.88 12.723.88 11.96z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' d='M14.357 8.151a.692.692 0 00-.691-.692h-5.88a.692.692 0 00-.69.692v3.808c0 .382.309.692.69.692h5.88c.382 0 .691-.31.691-.692zm-7.954 0c0-.764.62-1.384 1.384-1.384h5.879c.764 0 1.383.62 1.383 1.384v3.808c0 .764-.62 1.383-1.383 1.383h-5.88c-.763 0-1.383-.619-1.383-1.383z' fill='%23fff'/%3E%3C/svg%3E"); >+ background-position: 50% 50%; >+ background-repeat: no-repeat; >+ background-size: 25px; >+} >+/* End local changes for Koha */ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index f4200e77a78..9a9da706539 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -691,8 +691,13 @@ > </p> > <h2>jQuery and jQueryUI</h2> > <p><a href="http://jquery.com/">jQuery</a> and <a href="http://jqueryui.com/">jQueryUI</a> are licensed under the <a href="http://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt">MIT license</a></p> >+ > <h2>Bootstrap</h2> > <p><a href="https://getbootstrap.com/">Bootstrap</a> code and <a href="http://glyphicons.com">Glyphicons Free</a> licensed under the <a href="https://github.com/twbs/bootstrap/blob/master/LICENSE">MIT license</a>.</p> >+ >+ <h2>Bootstrap Icons</h2> >+ <p><a href="https://icons.getbootstrap.com/">Bootstrap Icons</a> licensed under the <a href="https://github.com/twbs/icons/blob/main/LICENSE.md">MIT license</a>.</p> >+ > <h2>YUI</h2> > <p> > <a href="http://yuilibrary.com/license/">BSD License</a> >-- >2.20.1
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 28179
:
119914
|
119915
|
119916
|
120108
|
120253
|
120254
|
120255
|
120256
|
120409
|
120410
|
120411
|
120412
|
120413
|
120459
|
120460
|
120461
|
120462
|
120463
|
120731
|
120732
|
120733
|
120734
|
120735