aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.scss
blob: 4f81c6f7055e0d035d6fef9c7ec6ad2a757feb70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
 
.pdfViewer, .pdfViewer-zoomed {
    pointer-events: all;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow-y: auto;
    overflow-x: hidden;
    transform-origin: top left;
    
    // .canvasWrapper {
    //     transform: scale(0.75);
    //     transform-origin: top left;
    // }
    .textLayer {
        
        mix-blend-mode: multiply;// bcz: makes text fuzzy!
        span {
            padding-right: 5px;
            padding-bottom: 4px;
        }
    }
    .textLayer ::selection { background: yellow; } // should match the backgroundColor in createAnnotation()
    .textLayer .highlight {
        background-color: yellow;
    }
    .textLayer .highlight.selected {
        background-color: orange;
    }

    .page {
        position: relative;
    }
    .collectionfreeformview-container {
        pointer-events: none;
    }

    .pdfViewer-text-selected {
        .textLayer{
           pointer-events: all;
           user-select: text;
        }
    }
    .pdfViewer-text {
        transform-origin: top left;
        .textLayer {
            will-change: transform;
        }
    }

    .pdfViewer-dragAnnotationBox {
        position:absolute;
        background-color: transparent;
        opacity: 0.1;
    }

    .pdfViewer-overlay, .pdfViewer-overlay-inking {
        transform-origin: left top;
        position: absolute;
        top: 0px;
        left: 0px;
        display: inline-block;
        width:100%;
        pointer-events: none;
    }
    .pdfViewer-overlay-inking {
        .collectionfreeformview-container {
            pointer-events: all;
        }
    }
    .pdfViewer-annotationLayer {
        position: absolute;
        transform-origin: left top;
        top: 0;
        width: 100%;
        pointer-events: none;
        mix-blend-mode: multiply; // bcz: makes text fuzzy!

        .pdfViewer-annotationBox {
            position: absolute;
            background-color: rgba(245, 230, 95, 0.616);
        }
    }
    .pdfViewer-waiting {
        width: 70%;
        height: 70%;
        margin : 15%;
        transition: 0.4s opacity ease;
        opacity: 0.7; 
        position: absolute;
        z-index: 10;
    }
}
.pdfViewer-zoomed {
    overflow-x: scroll;
}