-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
333 lines (291 loc) · 6.48 KB
/
style.css
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
#toolbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #f8f8f8;
border-bottom: 1px solid #e7e7e7;
padding: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
z-index: 1000;
}
body {
padding-top: 70px;
/* Add padding to prevent content from hiding behind the toolbar */
display: flex;
flex-direction: column;
}
/* #crop-container {
margin-top: 20px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
} */
#crop-container input,
#crop-container button {
margin: 5px;
}
#pdf-inputs-container {
margin-bottom: 10px;
}
.pdf-input {
display: block;
margin-top: 5px;
}
#add-pdf-input {
margin-right: 5px;
}
/* #extract-container {
margin-top: 20px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
} */
#extract-container input,
#extract-container button {
margin: 5px;
}
/* Container for tab links */
.tab {
display: flex;
/* Aligns children in a row */
overflow: hidden;
background-color: #f1f1f1;
border-bottom: 1px solid #ccc;
}
/* Style the tab links */
.tab .tab-links {
flex-grow: 1;
text-align: center;
border: 1px solid #ccc;
border-bottom: none;
/* Remove bottom border to merge with the content box */
outline: none;
cursor: pointer;
padding: 10px 16px;
transition: 0.3s;
font-size: 17px;
background-color: inherit;
margin-right: 2px;
/* Creates a small gap between tabs */
}
/* Last tab link should not have a margin on the right */
.tab .tab-links:last-child {
margin-right: 0;
}
/* Change background color of tab links on hover */
.tab .tab-links:hover {
background-color: #ddd;
}
/* Create an active/current tablink class */
.tab .tab-links.active {
background-color: #ccc;
border-bottom: 1px solid white;
/* To blend with the content box */
}
/* Create an active/current tablink class */
.active {
background-color: #ccc;
border-bottom: 1px solid white;
/* To blend with the content box */
}
/* Style the tab content */
.tab-content {
display: none;
/* position: fixed; */
/* z-index: 1000; */
padding: 6px 12px;
border: 1px solid #ccc;
background-color: white;
grid-row: 1;
}
#content-container {
display: flex;
flex-direction: row;
}
#bookmarks-super-container {
position: sticky;
top: 100px;
/* Adjust this value based on your layout */
left: 10px;
/* Adjust this value to position the container */
max-height: calc(100vh - 120px);
/* vh unit ensures it takes viewport height into account */
overflow-y: visible;
/* Adds a scrollbar when content overflows */
/* Adjust width as needed */
display: flex;
flex-direction: column;
/* Make sure it's visible */
z-index: 10;
/* Ensure it's above other content */
max-width: 80vw;
/* 20% of the viewport width */
min-width: 100px;
width: 20vw;
}
#resize-grip {
width: 10px;
/* Width of the grip area */
height: 100%;
background-color: #ccc;
/* Just for visibility, style as needed */
cursor: ew-resize;
/* Cursor indicates the element is resizable */
position: absolute;
right: 0;
top: 0;
}
#bookmarks-container {
margin-top: 1px;
max-height: calc(100vh - 170px);
margin-left: 5%;
overflow: auto;
}
/* Style the tab links */
#toggle-button {
text-align: center;
border: 1px solid #ccc;
border-bottom: none;
padding: 10px 16px;
background-color: inherit;
margin-right: 2px;
position: sticky;
top: 0;
padding-bottom: 5%;
border-bottom: 1px solid #ccc;
}
#toggle-button.hidden-bookmarks {
padding: 5px 16px;
/* Reduced padding */
font-size: 0.8em;
/* Smaller font size */
width: inherit;
min-width: inherit;
max-width: 100%;
/* Add other style changes as necessary */
}
/* Change background color of tab links on hover */
#toggle-button:hover {
background-color: #ddd;
}
/* new stuff for visual cropping */
#pdf-viewer-container {
position: relative;
grid-row: 2;
flex-grow: 1;
}
#crop-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
/* Semi-transparent overlay */
}
#confirm-crop {
/* position: absolute; */
/* bottom: 10px; */
/* right: 10px; */
z-index: 1000;
}
#pdf-container {
position: relative;
/* other styles */
}
* {
box-sizing: border-box;
}
#page-container {
position: relative;
/* other styles */
}
/* resizing handles */
.resize-handle {
position: absolute;
width: 10px;
height: 100%;
cursor: ew-resize;
/* Horizontal resize cursor */
background-color: rgba(255, 255, 255, 0.5);
/* Just to make it visible */
}
#left-handle {
left: 0;
top: 0;
}
#right-handle {
right: 0;
top: 0;
}
#top-handle {
top: 0;
left: 0;
width: 100%;
height: 10px;
cursor: ns-resize;
/* Vertical resize cursor */
background-color: rgba(255, 255, 255, 0.5);
/* Just to make it visible */
}
#bottom-handle {
bottom: 0;
left: 0;
width: 100%;
height: 10px;
cursor: ns-resize;
/* Vertical resize cursor */
background-color: rgba(255, 255, 255, 0.5);
/* Just to make it visible */
}
/* Add styles for other handles (right, top, bottom, etc.) */
#text-layer {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
opacity: 0.2;
line-height: 1.0;
z-index: 10;
}
#text-layer>div {
color: transparent;
position: absolute;
white-space: pre;
cursor: text;
transform-origin: 0% 0%;
}
/* Style for the page container */
.page-container {
position: relative;
/* Needed for absolute positioning of children */
margin-bottom: 10px;
/* Optional: Adds space between pages */
}
/* Style for the PDF canvas (if you are using a canvas to render the PDF) */
canvas {
width: 100%;
/* Optional: Adjust as needed */
height: auto;
/* Optional: Adjust as needed */
display: block;
/* Removes extra space below the canvas */
}
/* Style for the overlay text */
.overlay-text {
position: absolute;
/* Positions the text over the page */
top: 10px;
/* Adjust as needed for correct positioning */
left: 10px;
/* Adjust as needed for correct positioning */
color: red;
/* Example text color */
font-size: 20px;
/* Example font size */
z-index: 10;
/* Ensures the text is above the PDF page */
}