Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
177 lines (148 loc) · 3.3 KB
/
Copy pathstyle.css
File metadata and controls
177 lines (148 loc) · 3.3 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/* Gradio 6 pads gr.HTML even with padding=False */
.html-container:has(.locallens-header) {
padding: 0;
}
.locallens-header {
display: flex;
align-items: center;
gap: 12px;
margin-top: 4px;
margin-bottom: 12px;
}
.locallens-logo {
width: 42px;
height: 42px;
border-radius: 50%;
object-fit: contain;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
flex-shrink: 0;
}
.locallens-title {
font-size: 1.75rem;
font-weight: 700;
margin: 0;
line-height: 1;
color: var(--body-text-color);
}
#gallery .grid-wrap {
max-height: 900px !important;
/* Gradio hardcodes overflow-y: scroll, which shows an empty scrollbar track */
overflow-y: auto !important;
}
#gallery .caption-label {
display: none !important;
}
/* Hide tab navigation header when not in duplicate mode */
.hide-tabs-nav > .tab-wrapper {
display: none !important;
}
#main_tabs {
gap: 0px !important;
}
#dup_status {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
#dup_status p {
font-weight: 500;
}
.dup-nav-row {
align-items: center;
}
.dup-pair-center {
align-items: center;
gap: 6px !important;
}
/* Sized to its label rather than stretched across the centre column */
#dup_dismiss {
width: auto !important;
flex-grow: 0 !important;
}
.dup-info-html {
background: var(--background-fill-secondary) !important;
}
.dup-info-card {
background: var(--background-fill-secondary);
border-top: 1px solid var(--border-color-primary);
padding: 10px 12px;
}
.dup-info-caption {
font-weight: 600;
font-size: 13px;
margin-bottom: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dup-info-grid {
display: flex;
flex-direction: column;
gap: 4px;
}
.dup-info-row {
display: flex;
align-items: center;
font-size: 12px;
line-height: 1.4;
}
.dup-info-label {
width: 75px;
flex-shrink: 0;
color: var(--body-text-color-subdued, #737373);
}
.dup-info-val {
font-weight: 500;
display: flex;
align-items: center;
min-width: 0;
}
.dup-info-path {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono, monospace);
font-size: 11px;
opacity: 0.8;
}
/* Gradio 6's Group resets child borders to medium width, which the Image's
inline solid border-style then makes visible. */
.dup-preview {
border-width: 0 !important;
}
.index-title {
display: block;
margin-bottom: 2px;
color: var(--block-title-text-color);
}
.index-info {
margin-bottom: var(--spacing-md);
color: var(--block-info-text-color);
font-size: var(--block-info-text-size);
}
.index-list {
padding: 0 var(--input-padding);
border: var(--input-border-width) solid var(--input-border-color);
border-radius: var(--input-radius);
background: var(--input-background-fill);
}
.index-row {
display: flex;
justify-content: space-between;
gap: var(--spacing-lg);
padding: var(--input-padding) 0;
}
.index-row + .index-row {
border-top: 1px solid var(--border-color-primary);
}
.index-path {
overflow-wrap: anywhere;
}
.index-count {
flex-shrink: 0;
color: var(--body-text-color-subdued);
}
.index-list:empty {
display: none;
}