Repository navigation
Expand file tree
/
Copy pathcamera-ux-overrides.css
More file actions
112 lines (100 loc) · 7.86 KB
/
Copy pathcamera-ux-overrides.css
File metadata and controls
112 lines (100 loc) · 7.86 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
/* Comb Live camera — UX overlay (additive, self-scoped).
Load AFTER the page's own <style> and after site-camera-overrides.css.
Pure CSS: no markup, ID or JS changes required. Touches only layout and
presentation of existing elements; the camera pipeline is untouched. */
html,body{background:#000}
main{font:15px/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#f5f5f7;background:#000;-webkit-tap-highlight-color:transparent}
main h1{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif;font-weight:700;letter-spacing:-.02em}
main h1 small{font-family:inherit}
main a{color:#0a84ff}
/* ---------- stage ---------- */
main .stage{border-radius:24px;border:1px solid #2c2c2e;background:#0b0b0d;box-shadow:0 12px 40px rgba(0,0,0,.45)}
/* ---------- guide frame: scanner-style corner brackets + scan line ---------- */
main .guide{border:none;border-radius:18px;
background:
linear-gradient(#0a84ff,#0a84ff) left top/26px 3px,
linear-gradient(#0a84ff,#0a84ff) left top/3px 26px,
linear-gradient(#0a84ff,#0a84ff) right top/26px 3px,
linear-gradient(#0a84ff,#0a84ff) right top/3px 26px,
linear-gradient(#0a84ff,#0a84ff) left bottom/26px 3px,
linear-gradient(#0a84ff,#0a84ff) left bottom/3px 26px,
linear-gradient(#0a84ff,#0a84ff) right bottom/26px 3px,
linear-gradient(#0a84ff,#0a84ff) right bottom/3px 26px;
background-repeat:no-repeat;
filter:drop-shadow(0 0 6px rgba(10,132,255,.35));
opacity:.95}
main .guide::before{content:"";position:absolute;inset:-1px;border:1px solid rgba(10,132,255,.22);border-radius:18px}
main .guide::after{content:"";position:absolute;left:6%;right:6%;height:2px;border-radius:2px;
background:linear-gradient(90deg,transparent,rgba(10,132,255,.85),transparent);
animation:prism-scan 2.6s ease-in-out infinite;top:12%}
@keyframes prism-scan{0%,100%{top:12%;opacity:0}15%{opacity:.9}50%{top:86%;opacity:.9}65%{opacity:0}}
@media (prefers-reduced-motion:reduce){main .guide::after{animation:none;opacity:0}}
/* ---------- first-visit empty state ---------- */
main #empty{color:#8e8e93;padding:24px;display:grid;place-content:center;justify-items:center;gap:0}
main #empty>div{max-width:340px;text-align:center}
main #empty strong{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif;
font-size:22px;font-weight:600;color:#f5f5f7;display:block;margin:14px 0 8px;letter-spacing:-.01em}
main #empty::before{content:"";display:block;width:56px;height:56px;margin:0 auto;border-radius:16px;
background:#1c1c1e url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230a84ff" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 8V6a2 2 0 0 1 2-2h2"/><path d="M16 4h2a2 2 0 0 1 2 2v2"/><path d="M20 16v2a2 2 0 0 1-2 2h-2"/><path d="M8 20H6a2 2 0 0 1-2-2v-2"/><rect x="8.4" y="8.4" width="7.2" height="7.2" rx="1.4"/></svg>') center/30px 30px no-repeat}
main #empty>div br{content:"";display:block;margin:6px 0}
/* ---------- controls: one-hand friendly ---------- */
main>.controls{gap:12px}
main button,main .photo{font:600 15px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
min-height:48px;padding:0 22px;border-radius:999px;border:1px solid #3a3a3c;background:#1c1c1e;color:#f5f5f7;
display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;transition:transform .12s ease,background .2s ease,border-color .2s ease}
main button:not(:disabled):active{transform:scale(.96)}
main button.primary{background:#0a84ff;border-color:#0a84ff;color:#fff}
main button:disabled{opacity:.35}
main button:focus-visible,main a:focus-visible,main label:focus-visible{outline:3px solid rgba(10,132,255,.6);outline-offset:3px}
/* ---------- status + honest error states ---------- */
main .status{min-height:0;font-size:14px;color:#8e8e93;padding:2px 2px}
main .status.error{color:#ffd66e;background:rgba(255,214,110,.08);border:1px solid rgba(255,214,110,.28);
border-radius:14px;padding:12px 14px 12px 40px;position:relative;margin:6px 0}
main .status.error::before{content:"";position:absolute;left:14px;top:50%;translate:0 -50%;width:16px;height:16px;
background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffd66e" stroke-width="2" stroke-linecap="round"><path d="M12 8v5"/><circle cx="12" cy="16.6" r=".6" fill="%23ffd66e"/><path d="M10.3 3.9 2.6 17.2A2 2 0 0 0 4.3 20.2h15.4a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z"/></svg>') center/contain no-repeat}
/* ---------- meta row ---------- */
main .meta{border-top:1px solid #2c2c2e;color:#636366;font-size:12px}
/* ---------- options: torch + photo as tappable chips ---------- */
main .options{color:#636366;font-size:12px;gap:10px}
main .options label{min-height:40px;padding:0 16px;border:1px solid #3a3a3c;border-radius:999px;background:#1c1c1e;color:#f5f5f7;cursor:pointer}
main .options input[type=checkbox]{accent-color:#0a84ff;width:17px;height:17px}
main .options .photo{border:1px solid #3a3a3c}
main .options .photo{position:relative;overflow:hidden}
main .options #photo{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
/* ---------- result card: verified value + link ---------- */
main .result{border:1px solid #2c2c2e;border-radius:20px;background:#141416;padding:18px;box-shadow:0 8px 30px rgba(0,0,0,.35)}
main .result small#verifiedLabel{color:#30d158;font-size:12px;font-weight:600;letter-spacing:.02em;display:flex;align-items:center;gap:7px}
main .result small#verifiedLabel::before{content:"";width:16px;height:16px;flex:none;
background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2330d158" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9" stroke-opacity=".45"/><path d="m8.4 12.4 2.4 2.4 4.8-5.2"/></svg>') center/contain no-repeat}
main .result p{font-size:16px;color:#f5f5f7;margin:8px 0 12px}
main .result a#openLink{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;
border-radius:999px;background:#0a84ff;color:#fff;font-weight:600;text-decoration:none;margin-bottom:12px}
main .result .controls{margin:0}
main .result .controls button{min-height:40px;padding:0 18px;font-size:14px}
/* ---------- tracking chip over video ---------- */
main .chip{background:rgba(28,28,30,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
border:1px solid rgba(255,255,255,.14);border-radius:16px;color:#f5f5f7;padding:12px 16px;box-shadow:0 10px 30px rgba(0,0,0,.5)}
main .chip small{color:#8e8e93;font-size:10px}
main .chip .value{color:#f5f5f7}
main .chip a{color:#0a84ff;font-weight:600;min-height:32px;display:flex;align-items:center}
/* ---------- about / diagnostics ---------- */
main details{border-top:1px solid #2c2c2e;color:#8e8e93}
main summary{color:#aeaeb2;min-height:44px;display:flex;align-items:center}
/* ---------- phone: thumb-zone layout ---------- */
@media(max-width:600px){
main{padding:16px 14px 28px}
main .intro{font-size:14px}
main .stage{aspect-ratio:3/4;max-height:58vh;border-radius:22px}
main>.controls{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:5;flex-wrap:nowrap;
background:rgba(18,18,20,.86);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
border:1px solid #2c2c2e;border-radius:999px;padding:8px;margin:14px 0 8px;box-shadow:0 10px 34px rgba(0,0,0,.5)}
main>.controls button{flex:1;min-height:54px;padding:0 10px;font-size:15px}
main>.controls button.primary{flex:1.6}
main .options{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
main .options>*{flex:none}
main .status{font-size:13px}
}
@media(max-width:360px){
main>.controls button{font-size:14px;padding:0 6px}
main h1{font-size:24px}
}