1
+ .openlime {
2
+ position : relative;
3
+ background-color : # 000 ;
4
+ height : 100% ;
5
+ }
6
+
7
+ .openlime > canvas {
8
+ width : 100% ;
9
+ height : 100% ;
10
+ overflow : hidden; /* this is important, it would cause firefox flickering! */
11
+ padding : 0px ;
12
+ }
13
+
14
+ .openlime-overlay , .openlime-svgoverlay {
15
+ position : absolute;
16
+ top : 0 ;
17
+ width : 100% ;
18
+ height : 100% ;
19
+ }
20
+
21
+ .openlime-overlay {
22
+ position : absolute;
23
+ top : 0px ;
24
+ width : 100% ;
25
+ height : 100% ;
26
+ }
27
+
28
+ .openlime-scale {
29
+ position : absolute;
30
+ bottom : 25px ;
31
+ left : 0px ;
32
+ width : 200px ;
33
+ height : 30px ;
34
+ padding : 15px ;
35
+ fill : white;
36
+ }
37
+
38
+ .openlime-scale > text {
39
+ font-size : 24px ;
40
+ }
41
+
42
+ .openlime-scale > line {
43
+ stroke : white;
44
+ stroke-width : 2px ;
45
+ }
46
+
47
+ /* DIALOG */
48
+
49
+ .openlime-dialog-background {
50
+ opacity : 1.0 ;
51
+ transition : visibility 0s linear 300ms , opacity 300ms ;
52
+
53
+ position : absolute;
54
+ top : 0 ;
55
+ left : 0 ;
56
+ right : 0 ;
57
+ bottom : 0 ;
58
+ color : # fff ;
59
+ background : rgb (0 , 0 , 0 , 0.5 );
60
+ padding : 20px 40px ;
61
+ border-radius : 5px ;
62
+ cursor : pointer;
63
+ }
64
+
65
+ .openlime-dialog {
66
+ position : absolute;
67
+ top : 10% ;
68
+ left : 15% ;
69
+ right : 15% ;
70
+ bottom : 7% ;
71
+ color : # fff ;
72
+ font-family : "Open Sans" , sans-serif;
73
+ background : rgb (32 , 32 , 32 , 0.9 );
74
+ opacity : 0.95 ;
75
+ padding : 20px 40px ;
76
+ border-radius : 5px ;
77
+ cursor : auto;
78
+ transition : visibility 0s linear 0s , opacity 300ms ;
79
+ overflow-y : auto;
80
+ }
81
+
82
+ .openlime-dialog .openlime-info {
83
+ position : absolute;
84
+ top : 10px ;
85
+ left : 10px ;
86
+ width : 25% ;
87
+ height : fit-content;
88
+ background-color : rgb (20 , 20 , 20 , 0.9 );
89
+ padding : 0px 10px ;
90
+ color : white;
91
+ border-radius : 3px ;
92
+ border : 1px solid rgb (60 , 60 , 60 );
93
+ }
94
+
95
+ .openlime-dialog .fading {
96
+ opacity : 0.0 ;
97
+ }
98
+
99
+ .openlime-dialog .hidden , .openlime-dialog-background .hidden {fad
100
+ visibility : hidden;
101
+ opacity: 0.0;
102
+ }
103
+
104
+ .openlime-dialog .openlime-close {
105
+ position : absolute;
106
+ top : 10px ;
107
+ right : 10px ;
108
+ width : 30px ;
109
+ height : 30px ;
110
+ cursor : pointer;
111
+ }
112
+
113
+ .openlime-close * {
114
+ stroke : # fff !important ;
115
+ fill : # fff !important ;
116
+ }
117
+
118
+ .openlime-close : hover * {
119
+ opacity : 70% ;
120
+ }
121
+
122
+ /* TOOLBAR */
123
+
124
+ .openlime-toolbar rect [style ] {
125
+ fill : rgb (255 , 255 , 255 , 0 ) !important ;
126
+ stroke : none !important ;
127
+ }
128
+
129
+ .openlime-toolbar path [style ] {
130
+ stroke : white !important ;
131
+ fill : white !important
132
+ }
133
+
134
+ .openlime-toolbar text {
135
+ stroke : white !important ;
136
+ fill : white !important
137
+ }
138
+
139
+ .openlime-toolbar {
140
+ position : absolute;
141
+ bottom : 0px ;
142
+ right : 0px ;
143
+ padding : 5px ;
144
+ background-color : transparent;
145
+ display : flex;
146
+ }
147
+
148
+ .openlime-toolbar svg : not (: root ) {
149
+ width : auto;
150
+ height : 5vh ;
151
+ display : block;
152
+ }
153
+
154
+ .openlime-toolbar .openlime-button : hover {
155
+ cursor : pointer;
156
+ opacity : 70% ;
157
+ }
158
+
159
+ .openlime-light path [style ] {
160
+ fill : # 80808011 !important ;
161
+ }
162
+
163
+ .openlime-light-active .openlime-light path [style ] {
164
+ fill : # ffcc00 !important ;
165
+ }
166
+
167
+ .openlime-lightdir {
168
+ position : absolute;
169
+ top : 0px ;
170
+ left : 0px ;
171
+ width : 100% ;
172
+ height : 100% ;
173
+ pointer-events : none;
174
+ }
175
+
176
+ .openlime-lightdir line {
177
+ stroke : # ff0 ;
178
+ opacity : 0.4 ;
179
+ stroke-width : 1.5px ;
180
+ vector-effect : non-scaling-stroke;
181
+ }
182
+
183
+ g .openlime-compact {
184
+ visibility : hidden !important ;
185
+ }
186
+
187
+ g .openlime-expand {
188
+ visibility : visible !important ;
189
+ }
190
+
191
+ .openlime-fullscreen-active g .openlime-compact {
192
+ visibility : visible !important ;
193
+ }
194
+
195
+ .openlime-fullscreen-active g .openlime-expand {
196
+ visibility : hidden !important ;
197
+ }
198
+
199
+ .openlime-help-window .shown {
200
+ visibility : visible;
201
+ opacity : 0.95 ;
202
+ transition : visibility 0s linear 0s , opacity 300ms ;
203
+
204
+ }
205
+
206
+ .openlime-help-window {
207
+
208
+ opacity : 0.0 ;
209
+ visibility : hidden;
210
+ transition : visibility 0s linear 300ms , opacity 300ms ;
211
+
212
+ position : absolute;
213
+ top : 0 ;
214
+ left : 0 ;
215
+ right : 0 ;
216
+ bottom : 0 ;
217
+ color : # fff ;
218
+ background : rgb (0 , 0 , 0 , 0.5 );
219
+ padding : 20px 40px ;
220
+ border-radius : 5px ;
221
+ font-family : "Open Sans" , sans-serif;
222
+ cursor : pointer;
223
+ }
224
+
225
+ .openlime-help-content {
226
+ position : absolute;
227
+ top : 10% ;
228
+ left : 30% ;
229
+ right : 30% ;
230
+ bottom : 10% ;
231
+ color : # fff ;
232
+ background : # 222 ;
233
+ opacity : 0.95 ;
234
+ padding : 20px 40px ;
235
+ border-radius : 5px ;
236
+ cursor : auto;
237
+ }
238
+
239
+ .openlime-help-window .openlime-close {
240
+ position : absolute;
241
+ top : 10px ;
242
+ right : 10px ;
243
+ width : 30px ;
244
+ height : 30px ;
245
+ cursor : pointer;
246
+ }
247
+
248
+ /* ATTRIBUTION */
249
+
250
+ .openlime-attribution {
251
+ position : absolute;
252
+ left : 20px ;
253
+ bottom : 0 ;
254
+ font-family : "Open Sans" , sans-serif;
255
+ font-size : 10px ;
256
+ color : white;
257
+ }
258
+
259
+ /* LAYERS MENU */
260
+
261
+ .openlime-layers-menu {
262
+ position : absolute;
263
+ display : flex;
264
+ flex-direction : column;
265
+ justify-content : start;
266
+ top : 0px ;
267
+ left : 0px ;
268
+ height : 100% ;
269
+ width : 0% ;
270
+ max-width : 200px ;
271
+ overflow : hidden;
272
+
273
+ transition : width 0.3s ;
274
+
275
+ font-family : "Open Sans" , sans-serif;
276
+ color : # ccc ;
277
+ background-color : rgb (20 , 20 , 20 , 0.8 );
278
+ list-style : none;
279
+ padding : 0px ;
280
+ margin : 0px ;
281
+ z-index : 1 ;
282
+ }
283
+
284
+ .openlime-layers-menu > * {
285
+ margin : 10px 10px 0px 10px ;
286
+ }
287
+
288
+ .openlime-layers-menu .open {
289
+ width : 100%
290
+ }
291
+
292
+ .openlime-list {
293
+ margin-left : 20px ;
294
+ display : flex;
295
+ flex-direction : column;
296
+ justify-content : start;
297
+ height : 0 ;
298
+ max-height : 0 ;
299
+ overflow : hidden;
300
+ transition : max-height 0.5s ;
301
+ transition : height 0.5s ;
302
+ }
303
+
304
+ .active + .openlime-list {
305
+ height : auto;
306
+ max-height : 100% ;
307
+ }
308
+
309
+ .openlime-layers-menu .openlime-entry {
310
+ color : # ccc ;
311
+ background-color : rgb (20 , 20 , 20 , 0.8 );
312
+ padding : 8px 20px ;
313
+ border-radius : 3px ;
314
+ cursor : pointer;
315
+ text-decoration : none;
316
+ }
317
+
318
+ .openlime-layers-menu .openlime-entry : hover ,
319
+ .openlime-layers-menu .openlime-entry : focus {
320
+
321
+ background-color : rgb (40 , 40 , 40 );
322
+ color : # fff ;
323
+ }
324
+
325
+ .openlime-layers-menu .openlime-entry : active {
326
+ position : relative;
327
+ top : 1px ;
328
+ }
329
+
330
+ .openlime-layers-menu .openlime-entry .active ,
331
+ .openlime-layers-menu .openlime-entry : active {
332
+ background-color : rgb (80 , 80 , 80 );
333
+ color : # fff ;
334
+ }
335
+
336
+ .openlime-layers-menu .openlime-entry .selected {
337
+ background-color : rgb (80 , 80 , 80 );
338
+ color : # fff ;
339
+ }
340
+
341
+ .openlime-layers-menu .openlime-list .openlime-entry {
342
+ font-size : 90% ;
343
+ max-width : 100% ;
344
+ padding : 5px 5px 0px 20px ;
345
+ }
346
+
347
+ .openlime-layers-menu .openlime-tool {
348
+ padding : 0px !important ;
349
+ }
350
+
351
+ .openlime-list .openlime-tools {
352
+ flex-direction : row;
353
+ }
354
+
355
+ .openlime-annotations {
356
+ padding : 0px 5px ;
357
+ margin : 0px ;
358
+ }
359
+
360
+ .openlime-list .openlime-annotations {
361
+ overflow : auto;
362
+ }
363
+
364
+
365
+ /* Works on Firefox */
366
+ .openlime-list .openlime-annotations {
367
+ scrollbar-width : thin;
368
+ scrollbar-color : rgb (80 , 80 , 80 );
369
+ }
370
+
371
+ /* Works on Chrome, Edge, and Safari */
372
+ .openlime-list .openlime-annotations ::-webkit-scrollbar {
373
+ width : 10px ;
374
+ }
375
+
376
+ .openlime-list .openlime-annotations ::-webkit-scrollbar-track {
377
+ background : transparent;
378
+ }
379
+
380
+ .openlime-list .openlime-annotations ::-webkit-scrollbar-thumb {
381
+ background-color : rgb (80 , 80 , 80 );
382
+ border-radius : 10px ;
383
+ border : 0px solid black;
384
+ }
385
+
386
+ /* editor */
387
+
388
+ .openlime-annotation-edit .hidden { display : none; }
389
+ .openlime-annotation-edit-tools svg , .openlime-tools svg { height : 25px ; cursor : pointer; margin-right : 10px }
390
+ .openlime-annotation-edit-tools { margin-top : 5px ; }
391
+ .openlime-tool { height : 25px ; width : 25px ; }
392
+
393
+ .openlime-annotation-edit select , .openlime-annotation-edit option { width : 40px ; }
394
+ .openlime-annotation-edit option : hover { background : red; }
395
+
396
+ .openlime-eye , .openlime-eye-off { height : 14px ; float : right;}
397
+ .openlime-eye , .hidden .openlime-eye-off { display : block; }
398
+ .openlime-eye-off , .hidden .openlime-eye { display : none; }
399
+
400
+ .openlime-eye : hover , .openlime-eye-off : hover { color : # ffa ; }
401
+
402
+ /*.openlime-annotation-edit-tools .active { background-color:rgb(80, 80, 80); } */
403
+
404
+ .openlime-tool .active , .openlime-tool .active * { stroke : # fff !important ; }
405
+ .openlime-annotation-edit-tools .active * { stroke : # fff !important ; }
406
+
407
+ .openlime-overlay .erase {
408
+ cursor : url ("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle fill='rgba(255, 255, 255, 0.7)' cx='11' cy='11' r='10'/></svg>" ) 11 11 , pointer;
409
+ }
410
+ .openlime-overlay .crosshair {
411
+ cursor : crosshair;
412
+ }
413
+
414
+ /* Editor select */
415
+
416
+ .openlime-select {
417
+ background : # 888 ;
418
+ position : relative;
419
+ cursor : pointer;
420
+ display : inline-block;
421
+ height : 24px ;
422
+ width : 100% ;
423
+ }
424
+
425
+ .openlime-select-button {
426
+ position : absolute;
427
+ top : 0 ;
428
+ right : 0 ;
429
+ bottom : 0 ;
430
+ left : 0 ;
431
+ background-color : # 888 ;
432
+ padding : 2px 15px ;
433
+ }
434
+
435
+ .openlime-select-button : after {
436
+ content : "" ;
437
+ width : 0 ;
438
+ height : 0 ;
439
+ border : 7px solid transparent;
440
+ border-color : # fff transparent transparent transparent;
441
+ position : absolute;
442
+ top : 8px ;
443
+ right : 10px ;
444
+ }
445
+
446
+ .openlime-select-button : hover {
447
+ background-color : # 444 ;
448
+ }
449
+
450
+ .active .openlime-select-button {
451
+ background-color : # 888 ;
452
+ }
453
+
454
+ .active .openlime-select-button : after {
455
+ top : 1px ;
456
+ border-color : transparent transparent # fff transparent;
457
+
458
+ }
459
+
460
+ .openlime-select-menu {
461
+ display : none;
462
+ position : absolute;
463
+ top : 100% ;
464
+ right : 0 ;
465
+ left : 0 ;
466
+ z-index : 999 ;
467
+ margin : 0 ;
468
+ padding : 0 ;
469
+ list-style : none;
470
+ }
471
+
472
+ .active .openlime-select-menu { display : block; }
473
+
474
+ .openlime-select-menu li {
475
+ margin : 0 ;
476
+ padding : 2px 0 ;
477
+ text-indent : 15px ;
478
+ /* border-top: 1px solid darken($select-background, 10); */
479
+ /* @include transition(all 0.15s ease-in); */
480
+ }
481
+
482
+ .openlime-select-menu li : hover {
483
+ color : # fff ;
484
+ border : 1px # aaa ;
485
+ }
486
+
487
+ .openlime-ruler {
488
+ width : 100% ;
489
+ height : 100% ;
490
+ }
491
+
492
+ .openlime-ruler path , .openlime-ruler line {
493
+ stroke : yellow;
494
+ stroke-width : 2px ;
495
+ vector-effect : non-scaling-stroke;
496
+ }
497
+ .openlime-ruler text {
498
+ fill : yellow;
499
+ }
500
+
501
+ .openlime-overlaymsg {
502
+ background : white;
503
+ opacity : 80% ;
504
+ position : absolute;
505
+ top : 0px ;
506
+ width : 100% ;
507
+ height : 100% ;
508
+ display : flex;
509
+ align-items : center;
510
+ justify-content : center;
511
+
512
+ animation : fadeOut 3s ;
513
+ }
514
+
515
+ @keyframes fadeOut {
516
+ 0% { opacity : 0.8 ; }
517
+ 33% { opacity : 0.8 ; }
518
+ 66% { opacity : 0 ; }
519
+ 100% { opacity : 0 ; }
520
+ }
0 commit comments