Bugzilla – Attachment 133220 Details for
Bug 30136
Add back to top button when scrolling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30136: [DO NO PUSH] CSS styling for OPAC
Bug-30136-DO-NO-PUSH-CSS-styling-for-OPAC.patch (text/plain), 1.36 KB, created by
Fridolin Somers
on 2022-04-12 15:02:03 UTC
(
hide
)
Description:
Bug 30136: [DO NO PUSH] CSS styling for OPAC
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-04-12 15:02:03 UTC
Size:
1.36 KB
patch
obsolete
>From 5367fcd42e1430983825d1b40d21fa8895b2012f Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 18 Feb 2022 10:51:40 -1000 >Subject: [PATCH] Bug 30136: [DO NO PUSH] CSS styling for OPAC > >This patch is for easy testing of the CSS to apply on button. > >If feature is validated this must be written in opac SCSS file. > >Maybe this sould only appear on large screens. > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> >--- > .../opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index 9da60f8824..acefc3b885 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -214,6 +214,15 @@ > }); > > $("body").append('<button id="backtotop" class="btn btn-primary"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>'); >+ $("#backtotop").css({ >+ "display": "inline-block", >+ "text-align": "center", >+ "font-size": "120%", >+ "position": "fixed", >+ "bottom": "40px", >+ "right": "40px", >+ "z-index": "1000" >+ }); > $("#backtotop").hide(); > $(window).scroll(function(){ > if ( $(window).scrollTop() < 300 ) { >-- >2.35.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 30136
:
130896
|
130897
|
130898
|
130902
|
130903
|
133219
|
133220
|
133737
|
134011
|
134012
|
134063
|
134064