-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
314 lines (278 loc) · 6.08 KB
/
popup.css
File metadata and controls
314 lines (278 loc) · 6.08 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
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
/**
* Styles for LinkedIn Zip Solver popup - matching LinkedIn UI
*/
/* Side Panel - draggable and resizable with square aspect ratio */
.zip-solver-panel {
position: fixed;
top: 150px;
left: 40px;
width: 480px;
height: 480px;
z-index: 999999;
animation: fadeIn 0.3s ease;
overflow: visible;
min-width: 300px;
max-width: 800px;
min-height: 300px;
max-height: 800px;
display: flex;
flex-direction: column;
}
/* Custom resize handle */
.zip-resize-handle {
position: absolute;
bottom: 3%;
right: 3%;
width: auto;
height: auto;
font-size: calc(var(--panel-size, 480px) * 0.05);
color: #999;
cursor: nwse-resize;
z-index: 100;
user-select: none;
line-height: 1;
padding: 0.5%;
}
.zip-resize-handle:hover {
color: #666;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Drag Handle - just dots at top edge */
.zip-drag-handle {
position: absolute;
top: 2%;
left: 50%;
transform: translateX(-50%) rotate(90deg);
display: flex;
align-items: center;
justify-content: center;
cursor: grab;
z-index: 100;
padding: 0.5% 2%;
}
.zip-drag-handle:active {
cursor: grabbing;
}
.zip-drag-handle::before {
content: '⋮⋮';
font-size: calc(var(--panel-size, 480px) * 0.04);
color: #999;
letter-spacing: 0.3em;
line-height: 1;
}
/* Header - close button inside panel */
.zip-solver-header {
position: absolute;
top: 4%;
left: 4%;
z-index: 100;
}
.zip-solver-close {
background: transparent;
border: none;
font-size: calc(var(--panel-size, 480px) * 0.05);
color: #666;
cursor: pointer;
line-height: 1;
padding: 0;
width: auto;
height: auto;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s ease, transform 0.2s ease;
}
.zip-solver-close:hover {
color: #000;
transform: scale(1.2);
}
/* Grid Container - scales with panel */
.zip-solver-grid {
position: relative;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
width: 100%;
height: 100%;
}
.zip-grid-container {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.zip-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 1%;
background: white;
padding: 6%;
border-radius: 8%;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
position: relative;
width: 100%;
max-width: 98%;
aspect-ratio: 1;
}
.zip-path-svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
/* Grid Cell */
.zip-cell {
aspect-ratio: 1;
background: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: white;
border-radius: 12px;
position: relative;
transition: all 0.2s ease;
}
/* Wall indicators - thick black borders matching LinkedIn */
.zip-cell.wall-top {
border-top: 8px solid #000;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.zip-cell.wall-below {
border-bottom: 8px solid #000;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
.zip-cell.wall-left {
border-left: 8px solid #000;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
.zip-cell.wall-right {
border-right: 8px solid #000;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
/* L-corner walls get both classes - adjust corners for cleaner look */
.zip-cell.wall-top.wall-left {
border-top-left-radius: 0;
}
.zip-cell.wall-below.wall-left {
border-bottom-left-radius: 0;
}
.zip-cell.wall-top.wall-right {
border-top-right-radius: 0;
}
.zip-cell.wall-below.wall-right {
border-bottom-right-radius: 0;
}
/* Numbered cells - black circle with white number */
.zip-cell.numbered {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.zip-cell.numbered::before {
content: attr(data-number);
width: 65%;
height: 65%;
background: #000;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: calc(var(--panel-size, 480px) * 0.038);
font-weight: 700;
color: white;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
z-index: 10;
line-height: 1;
}
/* Make path corners more rounded where they turn */
.zip-cell.path.corner {
border-radius: 20px;
}
/* Error message */
.error {
color: #d32f2f;
text-align: center;
padding: 20px;
font-size: 16px;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Floating Action Button */
.zip-solver-fab {
position: fixed;
bottom: 24px;
left: 24px;
width: 56px;
height: 56px;
border-radius: 16px;
background: white;
border: none;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
cursor: pointer;
z-index: 999998;
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
transition: all 0.3s ease;
}
.zip-solver-fab:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.zip-solver-fab:active {
transform: scale(0.95);
}
/* Responsive */
@media (max-width: 600px) {
.zip-solver-container {
width: 95%;
padding: 24px;
border-radius: 20px;
}
.zip-solver-header h2 {
font-size: 24px;
}
.zip-grid {
padding: 16px;
border-radius: 24px;
}
.zip-cell {
border-radius: 8px;
}
.zip-cell.numbered::before {
width: 32px;
height: 32px;
font-size: 16px;
}
.zip-solver-fab {
width: 50px;
height: 50px;
font-size: 24px;
bottom: 20px;
right: 20px;
}
}