improve(pdf): load pdf assets to viewer

This commit is contained in:
charlie
2021-07-20 15:41:07 +08:00
parent f5fade2d5d
commit 7131d1b0cf
7 changed files with 107 additions and 50 deletions

View File

@@ -44,10 +44,28 @@
}
}
&-container {
display: flex;
}
&-loader {
position: relative;
}
&-toolbar {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 38px;
z-index: 5;
background: linear-gradient(0deg, rgba(255, 255, 255, 0) 3%, rgba(255, 255, 255, 1) 100%);
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 20px;
}
&-viewer {
position: absolute;
overflow: auto;
@@ -152,10 +170,6 @@
}
}
}
.Highlight--scrolledTo .hls-text-region-item {
background: var(--ph-highlight-scroll-into-color);
}
}
.hls-text-region-item {
@@ -253,6 +267,10 @@ body.is-pdf-active {
#sidebar-nav-wrapper {
border: none !important;
}
#head {
padding-left: 0;
}
}
/* overrides for pdf_viewer.css from PDF.JS web viewer */