Repository navigation
Expand file tree
/
Copy pathpopup.css
More file actions
109 lines (104 loc) · 2.22 KB
/
Copy pathpopup.css
File metadata and controls
109 lines (104 loc) · 2.22 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
/* popup.css */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; margin:0; }
.container { width: 320px; padding:12px; }
h1 { font-size:16px; margin:0; }
.label { display:block; margin-top:8px; font-weight:600; font-size:12px; }
textarea { width:100%; box-sizing:border-box; font-size:13px; margin-top:6px; }
input[type=number] { width:100%; padding:6px; box-sizing:border-box; margin-top:4px; }
.status { margin-top:8px; font-size:12px; color:#333; }
h1 { margin-bottom: 8px; }
/* Bottom toggle */
.toggle-row {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 12px;
padding-top: 10px;
border-top: 1px solid #eee;
}
.toggle-label-text {
font-size: 13px;
font-weight: 600;
color: #666;
}
/* Toggle switch */
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 22px;
cursor: pointer;
}
.switch input { display: none; }
.switch-slider {
position: absolute;
inset: 0;
background: #ccc;
border-radius: 11px;
transition: background 0.2s;
}
.switch-slider::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
top: 3px;
left: 3px;
transition: transform 0.2s;
}
.switch input:checked + .switch-slider {
background: #4ade80;
}
.switch input:checked + .switch-slider::after {
transform: translateX(18px);
}
/* Side by side fields */
.row-pair {
display: flex;
gap: 8px;
margin-top: 4px;
}
.row-pair .field { flex: 1; }
/* Waveform */
.wave-box {
position: relative;
background: #111;
border-radius: 6px;
margin-bottom: 8px;
overflow: hidden;
height: 60px;
}
.wave-box canvas {
display: block;
width: 100%;
height: 100%;
}
.wave-label {
position: absolute;
top: 4px;
right: 6px;
font-size: 9px;
font-weight: 600;
color: #666;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.wave-detected {
position: absolute;
bottom: 6px;
left: 50%;
transform: translateX(-50%);
text-align: center;
font-size: 10px;
font-weight: 600;
color: #fff;
background: rgba(233, 69, 96, 0.85);
padding: 2px 10px;
border-radius: 3px;
opacity: 0;
transition: opacity 0.2s;
}
.wave-detected.visible { opacity: 1; }