1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

[pdf viewer] improved loading

- display a loading icon instead of a blue progress bar in the `#loadingBar`
- added loading icons for pdf pages
This commit is contained in:
llj
2022-03-03 14:43:48 +08:00
parent 2b3e71d4d5
commit 33ff193d8d
3 changed files with 22 additions and 8 deletions

View File

@@ -38,14 +38,20 @@
}
.page {
position:relative;
background:#fff;
box-shadow:0 0 6px #ccc;
margin:0 auto 20px;
position: relative;
background: #fff;
box-shadow: 0 0 6px #ccc;
margin: 0 auto 20px;
}
.page .loading-icon {
position: absolute;
top: 50%;
left: 50%;
}
#fileInput {
display:none;
display: none;
}
/*
@@ -380,7 +386,9 @@
/* loadingBar starts */
#loadingBar {
position: absolute;
height: 4px;
/*height: 4px;*/
height: 0; /* for seahub */
background-color: #ededf0;
border-bottom: 1px solid #ccc;
@@ -397,6 +405,11 @@ html[dir="rtl"] #loadingBar {
left: 0;
right: 0;
}
#loadingBar .loading-icon {
position: fixed;
top: 50%;
left: 50%;
}
#loadingBar .progress {
position: absolute;
top: 0;