aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.scss
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-09-21 17:01:07 -0400
committeryipstanley <stanley_yip@brown.edu>2019-09-21 17:01:07 -0400
commitc3e5b50ed59f474cddace89ad4ca25f2ef0c2f74 (patch)
treef30c00343005b64b1369f14830173f64f3359c1a /src/client/views/pdf/PDFViewer.scss
parent1d5dc3eb4095cea017412de9519b8eaee979c16c (diff)
mostly refactored
Diffstat (limited to 'src/client/views/pdf/PDFViewer.scss')
-rw-r--r--src/client/views/pdf/PDFViewer.scss14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/client/views/pdf/PDFViewer.scss b/src/client/views/pdf/PDFViewer.scss
index a2f3911c5..8290a0ee3 100644
--- a/src/client/views/pdf/PDFViewer.scss
+++ b/src/client/views/pdf/PDFViewer.scss
@@ -1,13 +1,14 @@
-
.pdfViewer-viewer {
- pointer-events:inherit;
+ pointer-events: inherit;
width: 100%;
+
.pdfViewer-visibleElements {
.pdfPage-cont {
.pdfPage-textLayer {
div {
user-select: text;
}
+
span {
color: transparent;
position: absolute;
@@ -19,9 +20,14 @@
}
}
}
+
.pdfViewer-text {
transform: scale(1.5);
transform-origin: top left;
+
+ .page .textLayer {
+ user-select: text;
+ }
}
.pdfViewer-annotationLayer {
@@ -29,6 +35,7 @@
top: 0;
width: 100%;
pointer-events: none;
+
.pdfPage-annotationBox {
position: absolute;
background-color: red;
@@ -48,6 +55,7 @@
padding: 20px;
overflow: hidden;
transition: left .5s;
+
.pdfViewer-overlaySearchBar {
width: 20%;
height: 100%;
@@ -90,4 +98,4 @@
.pdfViewer-overlayButton:hover {
background: none;
}
-}
+} \ No newline at end of file