-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
153 lines (132 loc) · 2.91 KB
/
styles.css
File metadata and controls
153 lines (132 loc) · 2.91 KB
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
/* Main styles for OCR application */
/* Canvas container */
.canvas-container {
width: 100%;
max-height: 600px;
min-height: 400px;
position: relative;
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 0.25rem;
overflow: auto;
}
/* Canvas wrapper to maintain aspect ratio */
.canvas-wrapper {
position: relative;
display: inline-block; /* Allow content to determine size */
}
/* Output canvas */
#outputCanvas {
display: block;
}
/* Annotation overlay */
.annotation-overlay {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
z-index: 10;
}
/* Annotation box */
.annotation-box {
position: absolute;
border: 2px solid;
background-color: rgba(255, 255, 255, 0.2);
pointer-events: none;
}
.annotation-label {
position: absolute;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 2px 6px;
border-radius: 3px;
font-size: 12px;
pointer-events: none;
max-width: 120px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Annotation editor */
.annotation-canvas-container {
width: 100%;
height: 400px;
position: relative;
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 0.25rem;
overflow: auto;
}
#annotationCanvas {
display: block;
}
/* Debug images */
.debug-image-card {
margin-bottom: 1rem;
}
.debug-image {
width: 100%;
height: 150px;
object-fit: contain;
border: 1px solid #dee2e6;
border-radius: 0.25rem;
background-color: white;
}
.debug-image-wrapper {
margin-top: 0.5rem;
padding: 0.25rem;
background-color: white;
border-radius: 0.25rem;
}
/* Results table */
.text-result {
word-break: break-word;
max-width: 400px;
}
/* Annotation list items */
.annotation-list-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.25rem 0.5rem;
background-color: #f8f9fa;
border-radius: 0.25rem;
margin-bottom: 0.25rem;
font-size: 0.875rem;
}
.annotation-list-item .controls {
display: flex;
gap: 0.5rem;
}
/* Progress bar */
.progress {
height: 0.5rem;
}
/* Color schemes for different types */
.type-text {
color: #198754;
border-color: #198754;
}
.type-checkbox {
color: #0d6efd;
border-color: #0d6efd;
}
.type-minimal_character {
color: #6f42c1;
border-color: #6f42c1;
}
.type-qr {
color: #fd7e14;
border-color: #fd7e14;
}
/* Hover effect for debug images */
.debug-image-card:hover {
transform: translateY(-2px);
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
transition: all 0.2s ease-in-out;
}
/* Loading indicator */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}