aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.scss
blob: 198e7ef108decfac2250d458d0ae4d3c502a585d (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
@import "../globalCssVariables.scss";


.webBox {
    height: 100%;
    position: relative;
    display: flex;



    .webBox-tagList {
        display: flex;
        flex-direction: row;
        overflow: auto;
        flex-flow: row;
        flex-wrap: wrap;
        .webBox-filterTag, .webBox-filterTag-active {
            font-weight: bold;
            padding-left: 6;
            padding-right: 6;
            box-shadow: black 1px 1px 4px;
            border-radius: 5;
            margin: 2; 
            height: 20;
            background-color: lightgrey;
        }
        .webBox-filterTag-active {
            background-color: white;
        }
    }

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

    .webBox-annotationLayer {
        position: absolute;
        transform-origin: left top;
        top: 0;
        width: 100%;
        pointer-events: none;
        mix-blend-mode: multiply; // bcz: makes text fuzzy!
    }

    .webBox-annotationBox {
        position: absolute;
        background-color: rgba(245, 230, 95, 0.616);
    }

    .webBox-container {
        transform-origin: top left;
        width: 100%;
        height: 100%;

        .webBox-htmlSpan {
            position: absolute;
            top: 0;
            left: 0;
        }

        .webBox-cont {
            pointer-events: none;
        }
        .webBox-cont,
        .webBox-cont-interactive {
            padding: 0vw;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform-origin: top left;
            overflow: auto;

            .webBox-iframe {
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
            }
        }

        .webBox-cont-interactive {
            span {
                user-select: text !important;
            }
        }

        .webBox-outerContent {
            width: 100%;
            height: 100%;
            position: absolute;
            transform-origin: top left;
            top: 0;
            left: 0;
            overflow: auto;
            .webBox-innerContent {
                position: relative;
            }
        }

        div.webBox-outerContent::-webkit-scrollbar-thumb {
            display: none;
        }
    }

    .webBox-overlay {
        width: 100%;
        height: 100%;
        position: absolute;
    }

    .webBox-buttons {
        margin-left: 44;
        background: lightGray;
        width: 100%;
    }

    .webBox-annotationToggle {
        z-index: 901;
        position: absolute;
        top: 2;
        left: 2;
        cursor: pointer;
        box-shadow: black 0.3em 0.3em 1em;
        border-radius: 5px;
        display: flex;
        opacity: 0.3;
        width: 25px;
        height: 25px;
        align-items: center;

        >svg {
            margin: auto;
        }
    }

    .webBox-annotationToggle:hover {
        opacity: 1;
    }

    .touch-iframe-overlay {
        width: 100%;
        height: 100%;
        position: absolute;

        .indicator {
            position: absolute;

            &.active {
                background-color: rgba(0, 0, 0, 0.1);
            }
        }
    }
}