[Pkg-javascript-commits] [pdf.js] 124/174: Create a new indeterminate loading bar animation for the default viewer
David Prévot
taffit at moszumanska.debian.org
Thu Nov 19 18:45:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 0f50147ba84008a0d7d7f1add4bc3fcbb0bbea13
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Sun Nov 1 14:19:59 2015 +0100
Create a new indeterminate loading bar animation for the default viewer
This patch contains an alternative solution (see the referenced PRs in 4718), in order for the indeterminate loading bar to have a consistent speed regardless of width.
Fixes 4718.
---
web/viewer.css | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/web/viewer.css b/web/viewer.css
index 426b292..b012631 100644
--- a/web/viewer.css
+++ b/web/viewer.css
@@ -336,15 +336,13 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
}
@-webkit-keyframes progressIndeterminate {
- 0% { left: 0%; }
- 50% { left: 100%; }
- 100% { left: 100%; }
+ 0% { left: -142px; }
+ 100% { left: 0; }
}
@keyframes progressIndeterminate {
- 0% { left: 0%; }
- 50% { left: 100%; }
- 100% { left: 100%; }
+ 0% { left: -142px; }
+ 100% { left: 0; }
}
#loadingBar .progress.indeterminate {
@@ -353,19 +351,20 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
transition: none;
}
-#loadingBar .indeterminate .glimmer {
+#loadingBar .progress.indeterminate .glimmer {
position: absolute;
top: 0;
left: 0;
height: 100%;
- width: 50px;
+ width: calc(100% + 150px);
- background-image: linear-gradient(to right, #999 0%, #fff 50%, #999 100%);
- background-size: 100% 100%;
- background-repeat: no-repeat;
+ background: repeating-linear-gradient(135deg,
+ #bbb 0, #999 5px,
+ #999 45px, #ddd 55px,
+ #ddd 95px, #bbb 100px);
- -webkit-animation: progressIndeterminate 2s linear infinite;
- animation: progressIndeterminate 2s linear infinite;
+ -webkit-animation: progressIndeterminate 950ms linear infinite;
+ animation: progressIndeterminate 950ms linear infinite;
}
.findbar, .secondaryToolbar {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list