aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.scss
blob: a2f3911c53d331b08388c8d17e88bb869fa9ae13 (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
.pdfViewer-viewer {
    pointer-events:inherit;
    width: 100%;
    .pdfViewer-visibleElements {
        .pdfPage-cont {
            .pdfPage-textLayer {
                div {
                    user-select: text;
                }
                span {
                    color: transparent;
                    position: absolute;
                    white-space: pre;
                    cursor: text;
                    -webkit-transform-origin: 0% 0%;
                    transform-origin: 0% 0%;
                }
            }
        }
    }
    .pdfViewer-text {
        transform: scale(1.5);
        transform-origin: top left;
    }

    .pdfViewer-annotationLayer {
        position: absolute;
        top: 0;
        width: 100%;
        pointer-events: none;
        .pdfPage-annotationBox {
            position: absolute;
            background-color: red;
            opacity: 0.1;
        }
    }

    .pdfViewer-overlayCont {
        position: absolute;
        width: 100%;
        height: 100px;
        background: #121721;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        overflow: hidden;
        transition: left .5s;
        .pdfViewer-overlaySearchBar {
            width: 20%;
            height: 100%;
            font-size: 30px;
            padding: 5px;
        }
    }

    .pdfViewer-overlayButton {
        border-bottom-left-radius: 50%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 70px;
        background: none;
        padding: 0;
        position: absolute;

        .pdfViewer-overlayButton-arrow {
            width: 0;
            height: 0;
            border-top: 25px solid transparent;
            border-bottom: 25px solid transparent;
            border-right: 25px solid #121721;
            transition: all 0.5s;
        }

        .pdfViewer-overlayButton-iconCont {
            background: #121721;
            height: 50px;
            width: 70px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-left: -2px;
            border-radius: 3px;
        }
    }

    .pdfViewer-overlayButton:hover {
        background: none;
    }
}