pushfeedback 0.1.68 → 0.1.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/components/canvas-editor.d.ts +11 -0
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/pushfeedback/app-globals-0f993ce5.js +3 -0
  4. package/dist/pushfeedback/canvas-editor.entry.js +860 -0
  5. package/dist/pushfeedback/css-shim-b7d3d95f.js +4 -0
  6. package/dist/pushfeedback/dom-64053c71.js +73 -0
  7. package/dist/{components/feedback-button.js → pushfeedback/feedback-button.entry.js} +30 -73
  8. package/dist/pushfeedback/feedback-modal.entry.js +295 -0
  9. package/dist/pushfeedback/index-36434da0.js +3371 -0
  10. package/dist/pushfeedback/index.esm.js +1 -0
  11. package/dist/pushfeedback/pushfeedback.css +146 -1
  12. package/dist/pushfeedback/pushfeedback.esm.js +148 -1
  13. package/dist/pushfeedback/shadow-css-98135883.js +387 -0
  14. package/dist/types/components/canvas-editor/canvas-editor.d.ts +108 -0
  15. package/dist/types/components/feedback-button/feedback-button.d.ts +11 -0
  16. package/dist/types/components/feedback-modal/feedback-modal.d.ts +23 -71
  17. package/dist/types/components.d.ts +102 -0
  18. package/package.json +3 -4
  19. package/dist/cjs/feedback-button_2.cjs.entry.js +0 -9918
  20. package/dist/cjs/index-9a8f4784.js +0 -1584
  21. package/dist/cjs/index.cjs.js +0 -2
  22. package/dist/cjs/loader.cjs.js +0 -22
  23. package/dist/cjs/pushfeedback.cjs.js +0 -23
  24. package/dist/collection/collection-manifest.json +0 -13
  25. package/dist/collection/components/feedback-button/feedback-button.css +0 -81
  26. package/dist/collection/components/feedback-button/feedback-button.js +0 -949
  27. package/dist/collection/components/feedback-modal/feedback-modal.css +0 -896
  28. package/dist/collection/components/feedback-modal/feedback-modal.js +0 -1700
  29. package/dist/collection/index.js +0 -1
  30. package/dist/components/feedback-modal.js +0 -6
  31. package/dist/components/feedback-modal2.js +0 -9814
  32. package/dist/components/index.js +0 -3
  33. package/dist/esm/feedback-button_2.entry.js +0 -9913
  34. package/dist/esm/index-f65e9124.js +0 -1555
  35. package/dist/esm/index.js +0 -1
  36. package/dist/esm/loader.js +0 -18
  37. package/dist/esm/polyfills/core-js.js +0 -11
  38. package/dist/esm/polyfills/css-shim.js +0 -1
  39. package/dist/esm/polyfills/dom.js +0 -79
  40. package/dist/esm/polyfills/es5-html-element.js +0 -1
  41. package/dist/esm/polyfills/index.js +0 -34
  42. package/dist/esm/polyfills/system.js +0 -6
  43. package/dist/esm/pushfeedback.js +0 -18
  44. package/dist/index.cjs.js +0 -1
  45. package/dist/index.js +0 -1
  46. package/dist/pushfeedback/p-7406f7be.entry.js +0 -7
  47. package/dist/pushfeedback/p-af2a1f7f.js +0 -2
@@ -1,896 +0,0 @@
1
- .text-center {
2
- flex-grow: 1;
3
- text-align: center;
4
- }
5
-
6
- .feedback-modal-wrapper * {
7
- font-family: var(--feedback-font-family);
8
- }
9
-
10
- .feedback-modal-wrapper--custom-font * {
11
- font-family: inherit;
12
-
13
- }
14
-
15
- .feedback-modal-wrapper {
16
- position: absolute;
17
- z-index: var(--feedback-modal-modal-wrapper-z-index);
18
- }
19
-
20
- .feedback-overlay {
21
- background-color: var(--feedback-modal-screenshot-bg-color);
22
- height: 100%;
23
- left: 0;
24
- opacity: 0;
25
- position: fixed;
26
- top: 0;
27
- width: 100%;
28
- z-index: var(--feedback-modal-screnshot-z-index);
29
- transition: opacity 0.2s ease-out;
30
- }
31
-
32
- .feedback-overlay--visible {
33
- opacity: 1;
34
- }
35
-
36
- .feedback-modal {
37
- display: inline-block;
38
- position: relative;
39
- }
40
-
41
- .feedback-modal-content {
42
- background-color: var(--feedback-modal-content-bg-color);
43
- border-color: 1px solid var(--feedback-modal-header-text-color);
44
- border-radius: var(--feedback-modal-content-border-radius);
45
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
46
- box-sizing: border-box;
47
- color: var(--feedback-modal-content-text-color);
48
- display: flex;
49
- flex-direction: column;
50
- left: 50%;
51
- max-width: 90%;
52
- padding: 20px;
53
- position: fixed;
54
- top: 50%;
55
- transform: translate(-50%, -50%) scale(0.95);
56
- opacity: 0;
57
- width: 100%;
58
- z-index: var(--feedback-modal-content-z-index);
59
- transition: transform 0.2s ease-out, opacity 0.2s ease-out;
60
- }
61
-
62
- .feedback-modal-content--open {
63
- transform: translate(-50%, -50%) scale(1);
64
- opacity: 1;
65
- }
66
-
67
- .feedback-modal-header {
68
- align-items: center;
69
- color: var(--feedback-modal-header-text-color);
70
- display: flex;
71
- font-size: var(--feedback-header-font-size);
72
- font-weight: var(--feedback-modal-header-font-weight);
73
- justify-content: space-between;
74
- margin-bottom: 20px;
75
- }
76
-
77
- .feedback-modal-rating-buttons {
78
- width: 100%;
79
- margin-bottom: 20px;
80
- }
81
-
82
- .feedback-modal-rating-button {
83
- padding: 0;
84
- background-color: transparent;
85
- border: transparent;
86
- margin-right: 5px;
87
- cursor: pointer;
88
- }
89
-
90
- .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button {
91
- border: 1px solid var(--feedback-modal-button-border-color);
92
- border-radius: var(--feedback-modal-button-border-radius);
93
- color: var(--feedback-modal-button-text-color);
94
- font-size: var(--feedback-modal-button-font-size);
95
-
96
- font-weight: 500;
97
- margin-right: 10px;
98
- justify-content: center;
99
- padding: 5px 10px;
100
- }
101
-
102
- .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover,
103
- .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button--selected {
104
- background-color: var(--feedback-modal-button-bg-color-active);
105
- border: 1px solid var(--feedback-modal-button-border-color-active);
106
- color: var(--feedback-modal-button-text-color-active);
107
- }
108
-
109
- .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button:hover svg,
110
- .feedback-modal-rating-buttons--thumbs .feedback-modal-rating-button--selected svg {
111
- stroke: var(--feedback-modal-rating-button-selected-color);
112
- }
113
-
114
- .feedback-modal-rating-buttons svg {
115
- stroke: var(--feedback-modal-rating-button-color);
116
- cursor: pointer;
117
- }
118
-
119
- .feedback-modal-rating-buttons--stars .feedback-modal-rating-button--selected svg {
120
- fill: var(--feedback-modal-rating-button-stars-selected-color);
121
- stroke: var(--feedback-modal-rating-button-stars-selected-color);
122
- }
123
-
124
- .feedback-modal-text textarea {
125
- background-color: var(--feedback-modal-input-bg-color);
126
- border: 1px solid var(--feedback-modal-input-border-color);
127
- border-radius: var(--feedback-modal-input-border-radius);
128
- box-sizing: border-box;
129
- color: var(--feedback-modal-input-text-color);
130
- font-size: var(--feedback-modal-input-font-size);
131
- margin-bottom: 20px;
132
- height: 100px;
133
- min-height: 100px;
134
- padding: 10px;
135
- resize: vertical;
136
- width: 100%;
137
- }
138
-
139
-
140
- .feedback-modal-email input {
141
- background-color: var(--feedback-modal-input-bg-color);
142
- border: 1px solid var(--feedback-modal-input-border-color);
143
- border-radius: var(--feedback-modal-input-border-radius);
144
- box-sizing: border-box;
145
- color: var(--feedback-modal-input-text-color);
146
- font-size: var(--feedback-modal-input-font-size);
147
- margin-bottom: 20px;
148
- height: 40px;
149
- padding: 10px;
150
- width: 100%;
151
- margin-bottom: 20px;
152
- }
153
-
154
- .feedback-modal-privacy {
155
- font-size: var(--feedback-modal-input-font-size);
156
- margin-bottom: 20px;
157
- }
158
-
159
-
160
- .feedback-modal-text textarea:focus, .feedback-modal-email input:focus {
161
- border: 1px solid var(--feedback-modal-input-border-color-focused);
162
- outline: none;
163
- }
164
-
165
- .feedback-modal-buttons {
166
- display: flex;
167
- flex-direction: column;
168
- }
169
-
170
- .feedback-modal-buttons .feedback-modal-button {
171
- margin-bottom: 20px;
172
- }
173
-
174
- .feedback-modal-button {
175
- align-items: center;
176
- background-color: transparent;
177
- border: 1px solid var(--feedback-modal-button-border-color);
178
- border-radius: var(--feedback-modal-button-border-radius);
179
- color: var(--feedback-modal-button-text-color);
180
- cursor: pointer;
181
- display: flex;
182
- font-size: var(--feedback-modal-button-font-size);
183
- font-weight: 500;
184
- justify-content: center;
185
- min-height: 40px;
186
- padding: 5px 10px;
187
- }
188
-
189
- .feedback-modal-button svg {
190
- margin-right: 6px;
191
- }
192
-
193
- .feedback-modal-button path {
194
- fill: var(--feedback-modal-button-icon-color);
195
- }
196
-
197
- .feedback-modal-button:hover path,
198
- .feedback-modal-button--active path {
199
- fill: var(--feedback-modal-button-icon-color-active);
200
- }
201
-
202
- .feedback-modal-button--submit {
203
- background-color: var(--feedback-modal-button-submit-bg-color);
204
- border: 1px solid var(--feedback-modal-button-border-color-active);
205
- color: var(--feedback-modal-button-submit-text-color);
206
- }
207
-
208
- .feedback-modal-button:hover,
209
- .feedback-modal-button--active {
210
- background-color: var(--feedback-modal-button-bg-color-active);
211
- border: 1px solid var(--feedback-modal-button-border-color-active);
212
- color: var(--feedback-modal-button-text-color-active);
213
- }
214
-
215
- .feedback-modal-button--submit:hover{
216
- background-color: var(--feedback-modal-button-submit-bg-color-hover);
217
- border: 1px solid var(--feedback-modal-button-submit-border-color-hover);
218
- color: var(--feedback-modal-button-submit-text-color-hover);
219
- }
220
-
221
-
222
- .feedback-modal-input-heading{
223
- display: block;
224
- font-size: 14px;
225
- font-weight: 300;
226
- padding-bottom: 10px;
227
- }
228
-
229
- .feedback-modal-footer {
230
- font-size: 12px;
231
- text-align: center;
232
- }
233
-
234
- .feedback-modal-footer a {
235
- color: var(--feedback-modal-footer-link);
236
- font-weight: 500;
237
- text-decoration: none;
238
- }
239
-
240
- .feedback-logo,
241
- .feedback-footer-text {
242
- display: block;
243
- text-align: center;
244
- margin-top: 5px;
245
- }
246
-
247
- .feedback-footer-text {
248
- margin-top: 10px;
249
- line-height: 1.5;
250
- }
251
-
252
- .feedback-modal-close {
253
- background-color: var(--feedback-modal-close-bg-color);
254
- border: 0;
255
- border-radius: 50%;
256
- cursor: pointer;
257
- height: 22px;
258
- margin-left: auto;
259
- padding: 0;
260
- width: 22px;
261
- }
262
-
263
- .feedback-modal-close svg {
264
- stroke: var(--feedback-modal-close-color);
265
- }
266
-
267
-
268
- .feedback-modal-screenshot {
269
- background-color: var(--feedback-modal-screenshot-bg-color);
270
- height: 100%;
271
- left: 0;
272
- position: fixed;
273
- top: 0;
274
- width: 100%;
275
- z-index: var(--feedback-modal-screnshot-z-index);
276
- }
277
-
278
- .feedback-modal-screenshot-header {
279
- align-items: center;
280
- background-color: var(--feedback-modal-screenshot-header-bg-color);
281
- border-radius: var(--feedback-modal-content-border-radius);
282
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
283
- box-sizing: border-box;
284
- color: var(--feedback-modal-screenshot-header-text-color);
285
- cursor: pointer;
286
- display: flex;
287
- left: 50%;
288
- top: 20px;
289
- transform: translateX(-50%);
290
- padding: 10px;
291
- position: fixed;
292
- width: max-content;
293
- z-index: var(--feedback-modal-screenshot-header-z-index);
294
- }
295
-
296
- .feedback-modal-screenshot-close {
297
- height: 24px;
298
- padding-left: 10px;
299
- width: 24px;
300
- }
301
-
302
- .feedback-modal-screenshot-close svg {
303
- stroke: var(--feedback-modal-close-color);
304
- }
305
-
306
- .feedback-modal-message {
307
- font-size: var(--feedback-modal-message-font-size);
308
- margin-top: 0;
309
- }
310
-
311
-
312
- .feedback-modal-element-hover {
313
- background-color: transparent;
314
- cursor: pointer;
315
- border: 1px solid var(--feedback-modal-element-hover-border-color);
316
- }
317
-
318
-
319
- .feedback-modal-element-selected {
320
- background-color: transparent;
321
- border: 3px solid var(--feedback-modal-element-selected-border-color) !important;
322
- box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3) !important;
323
- }
324
-
325
- .screenshot-preview {
326
- display: inline-block;
327
- width: 30px;
328
- height: 30px;
329
- overflow: hidden;
330
- border-radius: 4px;
331
- margin-right: 10px;
332
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
333
- cursor: pointer;
334
- transition: transform 0.2s ease;
335
- }
336
-
337
- .screenshot-preview:hover {
338
- transform: scale(1.1);
339
- }
340
-
341
- .screenshot-preview img {
342
- width: 100%;
343
- height: 100%;
344
- object-fit: cover;
345
- }
346
-
347
-
348
-
349
- .screenshot-loading {
350
- display: inline-flex;
351
- align-items: center;
352
- margin-right: 8px;
353
- }
354
-
355
- /* Canvas Editor Styles - Consistent with Widget Design */
356
- .canvas-editor-overlay {
357
- position: fixed;
358
- top: 0;
359
- left: 0;
360
- right: 0;
361
- bottom: 0;
362
- background-color: var(--feedback-modal-screenshot-bg-color);
363
- z-index: 10001;
364
- display: flex;
365
- align-items: center;
366
- justify-content: center;
367
- }
368
-
369
- .canvas-editor-modal {
370
- width: 95vw;
371
- height: 98vh;
372
- background: var(--feedback-canvas-editor-bg-color);
373
- border-radius: var(--feedback-modal-content-border-radius);
374
- display: flex;
375
- flex-direction: column;
376
- overflow: hidden;
377
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
378
- }
379
-
380
- .canvas-editor-header {
381
- background: var(--feedback-canvas-editor-header-bg-color);
382
- border-bottom: 1px solid var(--feedback-canvas-editor-border-color);
383
- padding: 12px 16px;
384
- display: flex;
385
- flex-direction: column;
386
- gap: 12px;
387
- flex-shrink: 0;
388
- }
389
-
390
- .canvas-editor-title h3 {
391
- margin: 0;
392
- font-size: var(--feedback-modal-header-font-size);
393
- font-weight: var(--feedback-modal-header-font-weight);
394
- color: var(--feedback-modal-header-text-color);
395
- font-family: var(--feedback-modal-header-font-family);
396
- }
397
-
398
- .canvas-editor-toolbar {
399
- display: flex;
400
- align-items: center;
401
- gap: 20px;
402
- flex-wrap: wrap;
403
- }
404
-
405
- .toolbar-section {
406
- display: flex;
407
- align-items: center;
408
- }
409
-
410
- .toolbar-section:last-child {
411
- margin-left: auto;
412
- gap: 10px;
413
- }
414
-
415
- .tool-group {
416
- display: flex;
417
- align-items: center;
418
- background: var(--feedback-canvas-editor-tool-bg-color);
419
- border: 1px solid var(--feedback-canvas-editor-border-color);
420
- border-radius: var(--feedback-modal-button-border-radius);
421
- padding: 4px;
422
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .10);
423
- }
424
-
425
- .tool-btn {
426
- display: flex;
427
- align-items: center;
428
- justify-content: center;
429
- width: 36px;
430
- height: 36px;
431
- border: none;
432
- background: none;
433
- border-radius: var(--feedback-modal-button-border-radius);
434
- cursor: pointer;
435
- color: var(--feedback-canvas-editor-tool-text-color);
436
- transition: all 0.2s ease;
437
- position: relative;
438
- }
439
-
440
- .tool-btn:hover {
441
- background: var(--feedback-canvas-editor-tool-bg-hover);
442
- color: var(--feedback-modal-button-text-color-active);
443
- }
444
-
445
- .tool-btn.active {
446
- background: var(--feedback-canvas-editor-tool-bg-active);
447
- color: var(--feedback-canvas-editor-tool-text-active);
448
- }
449
-
450
- .tool-btn:disabled {
451
- opacity: 0.4;
452
- cursor: not-allowed;
453
- }
454
-
455
- .tool-btn:disabled:hover {
456
- background: none;
457
- color: var(--feedback-canvas-editor-tool-text-color);
458
- }
459
-
460
- .toolbar-divider {
461
- width: 1px;
462
- height: 20px;
463
- background: var(--feedback-canvas-editor-divider-color);
464
- margin: 0 6px;
465
- }
466
-
467
- .undo-btn {
468
- background: var(--feedback-canvas-editor-tool-bg-color) !important;
469
- border: 1px solid var(--feedback-canvas-editor-border-color) !important;
470
- }
471
-
472
- .undo-btn:hover:not(:disabled) {
473
- background: var(--feedback-canvas-editor-tool-bg-hover) !important;
474
- }
475
-
476
- .color-palette {
477
- display: flex;
478
- align-items: center;
479
- gap: 6px;
480
- background: var(--feedback-canvas-editor-tool-bg-color);
481
- border: 1px solid var(--feedback-canvas-editor-border-color);
482
- border-radius: var(--feedback-modal-button-border-radius);
483
- padding: 6px;
484
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .10);
485
- }
486
-
487
- .color-slot-wrapper {
488
- position: relative;
489
- }
490
-
491
- .color-btn {
492
- width: 28px;
493
- height: 28px;
494
- border-radius: var(--feedback-modal-button-border-radius);
495
- border: 2px solid transparent;
496
- cursor: pointer;
497
- transition: all 0.2s ease;
498
- position: relative;
499
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .15);
500
- display: flex;
501
- align-items: center;
502
- justify-content: center;
503
- }
504
-
505
- .color-btn:hover {
506
- transform: scale(1.05);
507
- box-shadow: 0px 2px 4px 0px rgba(60, 64, 67, .25);
508
- }
509
-
510
- .color-btn.active {
511
- border-color: var(--feedback-primary-color);
512
- transform: scale(1.1);
513
- box-shadow: 0 0 0 2px rgba(0, 112, 244, 0.2);
514
- }
515
-
516
- .color-btn.editing {
517
- border-color: var(--feedback-highlight-color);
518
- box-shadow: 0 0 0 2px rgba(255, 180, 34, 0.3);
519
- }
520
-
521
- .color-btn.editing:hover {
522
- border-color: var(--feedback-highlight-color);
523
- box-shadow: 0 0 0 2px rgba(255, 180, 34, 0.4);
524
- }
525
-
526
- .color-picker-dropdown {
527
- position: absolute;
528
- top: 100%;
529
- left: 50%;
530
- transform: translateX(-50%);
531
- margin-top: 6px;
532
- background: var(--feedback-canvas-editor-tool-bg-color);
533
- border: 1px solid var(--feedback-canvas-editor-border-color);
534
- border-radius: var(--feedback-modal-button-border-radius);
535
- padding: 6px;
536
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
537
- z-index: 1000;
538
- }
539
-
540
- .color-picker-dropdown input[type="color"] {
541
- width: 50px;
542
- height: 32px;
543
- border: none;
544
- border-radius: var(--feedback-modal-button-border-radius);
545
- cursor: pointer;
546
- }
547
-
548
- .size-control {
549
- display: flex;
550
- align-items: center;
551
- gap: 10px;
552
- background: var(--feedback-canvas-editor-tool-bg-color);
553
- border: 1px solid var(--feedback-canvas-editor-border-color);
554
- border-radius: var(--feedback-modal-button-border-radius);
555
- padding: 6px 12px;
556
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .10);
557
- }
558
-
559
- .size-slider {
560
- width: 70px;
561
- height: 4px;
562
- border-radius: 2px;
563
- background: var(--feedback-canvas-editor-slider-track);
564
- outline: none;
565
- -webkit-appearance: none;
566
- -moz-appearance: none;
567
- appearance: none;
568
- cursor: pointer;
569
- border: none;
570
- }
571
-
572
- .size-slider::-webkit-slider-track {
573
- width: 100%;
574
- height: 4px;
575
- cursor: pointer;
576
- background: var(--feedback-canvas-editor-slider-track);
577
- border-radius: 2px;
578
- border: none;
579
- box-shadow: none;
580
- }
581
-
582
- .size-slider::-webkit-slider-thumb {
583
- -webkit-appearance: none;
584
- width: 14px;
585
- height: 14px;
586
- border-radius: 50%;
587
- background: var(--feedback-primary-color);
588
- cursor: pointer;
589
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .20);
590
- border: none;
591
- margin-top: -5px; /* Center the thumb on the track */
592
- }
593
-
594
- .size-slider::-moz-range-track {
595
- width: 100%;
596
- height: 4px;
597
- cursor: pointer;
598
- background: var(--feedback-canvas-editor-slider-track);
599
- border-radius: 2px;
600
- border: none;
601
- box-shadow: none;
602
- }
603
-
604
- .size-slider::-moz-range-thumb {
605
- width: 14px;
606
- height: 14px;
607
- border-radius: 50%;
608
- background: var(--feedback-primary-color);
609
- cursor: pointer;
610
- border: none;
611
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .20);
612
- }
613
-
614
- /* Firefox specific fix */
615
- .size-slider::-moz-range-progress {
616
- background: var(--feedback-canvas-editor-slider-track);
617
- height: 4px;
618
- border-radius: 2px;
619
- }
620
-
621
- /* IE/Edge specific */
622
- .size-slider::-ms-track {
623
- width: 100%;
624
- height: 4px;
625
- cursor: pointer;
626
- background: transparent;
627
- border-color: transparent;
628
- color: transparent;
629
- }
630
-
631
- .size-slider::-ms-fill-lower {
632
- background: var(--feedback-canvas-editor-slider-track);
633
- border-radius: 2px;
634
- }
635
-
636
- .size-slider::-ms-fill-upper {
637
- background: var(--feedback-canvas-editor-slider-track);
638
- border-radius: 2px;
639
- }
640
-
641
- .size-slider::-ms-thumb {
642
- width: 14px;
643
- height: 14px;
644
- border-radius: 50%;
645
- background: var(--feedback-primary-color);
646
- cursor: pointer;
647
- border: none;
648
- }
649
-
650
- .size-value {
651
- font-weight: 500;
652
- color: var(--feedback-canvas-editor-tool-text-color);
653
- font-size: var(--feedback-text-font-size);
654
- min-width: 30px;
655
- }
656
-
657
- .action-btn {
658
- display: flex;
659
- align-items: center;
660
- gap: 6px;
661
- padding: 5px 12px;
662
- border: 1px solid var(--feedback-canvas-editor-action-secondary-border);
663
- border-radius: var(--feedback-modal-button-border-radius);
664
- cursor: pointer;
665
- font-size: var(--feedback-modal-button-font-size);
666
- font-weight: 500;
667
- transition: all 0.2s ease;
668
- min-width: 65px;
669
- justify-content: center;
670
- height: 36px;
671
- font-family: var(--feedback-font-family);
672
- }
673
-
674
- .action-btn.secondary {
675
- background: var(--feedback-canvas-editor-action-secondary-bg);
676
- color: var(--feedback-canvas-editor-action-secondary-text);
677
- border-color: var(--feedback-canvas-editor-action-secondary-border);
678
- }
679
-
680
- .action-btn.secondary:hover {
681
- background: var(--feedback-canvas-editor-tool-bg-hover);
682
- color: var(--feedback-modal-button-text-color-active);
683
- border-color: var(--feedback-modal-button-border-color-active);
684
- }
685
-
686
- .action-btn.primary {
687
- background: var(--feedback-canvas-editor-action-primary-bg);
688
- color: var(--feedback-canvas-editor-action-primary-text);
689
- border-color: var(--feedback-modal-button-border-color-active);
690
- }
691
-
692
- .action-btn.primary:hover {
693
- background: var(--feedback-modal-button-submit-bg-color-hover);
694
- border-color: var(--feedback-modal-button-submit-border-color-hover);
695
- }
696
-
697
- .canvas-editor-content {
698
- flex: 1;
699
- display: flex;
700
- align-items: center;
701
- justify-content: center;
702
- padding: 16px;
703
- background: var(--feedback-canvas-editor-content-bg);
704
- overflow: hidden;
705
- min-height: 0;
706
- min-width: 0;
707
- }
708
-
709
- .annotation-canvas {
710
- max-width: 100%;
711
- max-height: 100%;
712
- width: auto;
713
- height: auto;
714
- cursor: crosshair;
715
- border-radius: var(--feedback-modal-content-border-radius);
716
- box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, .30), 0px 2px 6px 2px rgba(60, 64, 67, .15);
717
- background: var(--feedback-white-color);
718
- transition: box-shadow 0.3s ease;
719
- object-fit: contain;
720
- display: block;
721
- }
722
-
723
- .annotation-canvas:hover {
724
- box-shadow: 0px 2px 4px 0px rgba(60, 64, 67, .35), 0px 4px 12px 4px rgba(60, 64, 67, .20);
725
- }
726
-
727
- /* Responsive Design */
728
- @media screen and (min-width: 768px) {
729
- .feedback-modal-content {
730
- max-width: var(--feedback-modal-content-max-width);
731
- }
732
-
733
- .feedback-modal-content.feedback-modal-content--bottom-right {
734
- bottom: var(--feedback-modal-content-position-bottom);
735
- left: initial;
736
- right: var(--feedback-modal-content-position-right);
737
- top: initial;
738
- transform: initial;
739
- }
740
-
741
- .feedback-modal-content.feedback-modal-content--bottom-left {
742
- bottom: var(--feedback-modal-content-position-bottom);
743
- left: var(--feedback-modal-content-position-left);
744
- top: initial;
745
- transform: initial;
746
- }
747
-
748
- .feedback-modal-content.feedback-modal-content--top-right {
749
- right: var(--feedback-modal-content-position-right);
750
- top: var(--feedback-modal-content-position-top);
751
- transform: initial;
752
- }
753
-
754
- .feedback-modal-content.feedback-modal-content--top-left {
755
- left: var(--feedback-modal-content-position-left);
756
- top: var(--feedback-modal-content-position-top);
757
- transform: initial;
758
- }
759
-
760
- .feedback-modal-content.feedback-modal-content--center-left {
761
- left: 5px;
762
- right: auto;
763
- top: 50%;
764
- transform: translateY(-50%);
765
- }
766
-
767
- .feedback-modal-content.feedback-modal-content--center-right {
768
- left: auto;
769
- right: 5px;
770
- top: 50%;
771
- transform: translateY(-50%);
772
- }
773
-
774
- .feedback-modal-content.feedback-modal-content--sidebar-left.feedback-modal-content--open,
775
- .feedback-modal-content.feedback-modal-content--sidebar-right.feedback-modal-content--open{
776
- transform: translateX(0);
777
- }
778
-
779
- .feedback-modal-content.feedback-modal-content--sidebar-left {
780
- max-width: var(--feedback-modal-content-sidebar-max-width);
781
- left: 0;
782
- right: auto;
783
- height: 100vh;
784
- top: 0;
785
- transform: translateX(-100%);
786
- transition: transform 0.5s ease-in-out;
787
- border-radius: 0;
788
- }
789
-
790
- .feedback-modal-content.feedback-modal-content--sidebar-right {
791
- max-width: var(--feedback-modal-content-sidebar-max-width);
792
- left: auto;
793
- right: 0;
794
- height: 100vh;
795
- top: 0;
796
- transform: translateX(100%);
797
- transition: transform 0.5s ease-in-out;
798
- border-radius: 0;
799
- }
800
-
801
- .feedback-modal-text textarea {
802
- height: 150px;
803
- min-height: 150px;
804
- }
805
-
806
- /* Animations */
807
- .feedback-modal-content.feedback-modal-content--bottom-right {
808
- transform: translateY(20px);
809
- }
810
-
811
- .feedback-modal-content.feedback-modal-content--bottom-right.feedback-modal-content--open {
812
- transform: translateY(0);
813
- }
814
-
815
- .feedback-modal-content.feedback-modal-content--bottom-left {
816
- transform: translateY(20px);
817
- }
818
-
819
- .feedback-modal-content.feedback-modal-content--bottom-left.feedback-modal-content--open {
820
- transform: translateY(0);
821
- }
822
-
823
- .feedback-modal-content.feedback-modal-content--top-right {
824
- transform: translateY(-20px);
825
- }
826
-
827
- .feedback-modal-content.feedback-modal-content--top-right.feedback-modal-content--open {
828
- transform: translateY(0);
829
- }
830
-
831
- .feedback-modal-content.feedback-modal-content--top-left {
832
- transform: translateY(-20px);
833
- }
834
-
835
- .feedback-modal-content.feedback-modal-content--top-left.feedback-modal-content--open {
836
- transform: translateY(0);
837
- }
838
- }
839
-
840
- @media (max-width: 768px) {
841
- .canvas-editor-modal {
842
- width: 100vw;
843
- height: 100vh;
844
- border-radius: 0;
845
- }
846
-
847
- .canvas-editor-header {
848
- padding: 8px 12px;
849
- gap: 8px;
850
- }
851
-
852
- .canvas-editor-toolbar {
853
- flex-direction: column;
854
- align-items: stretch;
855
- gap: 12px;
856
- }
857
-
858
- .toolbar-section {
859
- justify-content: center;
860
- }
861
-
862
- .toolbar-section:last-child {
863
- margin-left: 0;
864
- justify-content: stretch;
865
- gap: 8px;
866
- }
867
-
868
- .action-btn {
869
- flex: 1;
870
- min-width: auto;
871
- }
872
-
873
- .canvas-editor-content {
874
- padding: 8px;
875
- }
876
-
877
- .tool-group {
878
- flex-wrap: wrap;
879
- justify-content: center;
880
- }
881
-
882
- .color-palette {
883
- flex-wrap: wrap;
884
- justify-content: center;
885
- }
886
-
887
- .size-control {
888
- flex-direction: column;
889
- gap: 6px;
890
- text-align: center;
891
- }
892
-
893
- .size-slider {
894
- width: 100px;
895
- }
896
- }