debug.css
5.39 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
/* 开发者调试视图。只在开发构建或 URL 带 ?debug=1 时挂载,不参与正式界面的让位阈值计算
(design.css 里 760 / 974 / 1140 那几段量的都是产品浮层,这块不算)。 */
.hm-debug {
position: absolute;
inset: 0;
/* 压在地图与自绘层之上、产品浮层(z-index 12)之下 */
z-index: 10;
pointer-events: none;
}
.hm-debug__canvas {
position: absolute;
inset: 0;
pointer-events: none;
}
.hm-debug__toggle {
position: absolute;
left: var(--hm-rail-gap);
top: var(--hm-rail-gap);
z-index: 13;
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border-radius: 999px;
border: 1px dashed rgba(255, 255, 255, 0.7);
background: rgba(16, 24, 40, 0.55);
color: #fff;
font: 11px/1 'SF Mono', Consolas, Menlo, monospace;
cursor: pointer;
pointer-events: auto;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.hm-debug__toggle:hover {
background: rgba(16, 24, 40, 0.72);
}
.hm-debug__toggle.is-on {
border-style: solid;
border-color: #ff2d78;
background: rgba(255, 45, 120, 0.88);
}
.hm-debug__panel {
position: absolute;
left: var(--hm-rail-gap);
top: var(--hm-rail-gap);
z-index: 13;
pointer-events: auto;
display: flex;
flex-direction: column;
width: 372px;
max-height: calc(100% - var(--hm-rail-gap) * 2);
background: var(--hm-glass-side-strong);
border: 1px solid var(--hm-glass-border);
border-radius: 12px;
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
font: 11px/1.5 'SF Mono', Consolas, Menlo, monospace;
color: var(--hm-text-2);
}
.hm-debug__head {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-bottom: 1px solid var(--hm-glass-border);
font-weight: 600;
color: var(--hm-text-1);
}
.hm-debug__head-badge {
padding: 1px 6px;
border-radius: 999px;
background: #ff2d78;
color: #fff;
font-size: 10px;
letter-spacing: 0.04em;
}
.hm-debug__head button {
margin-left: auto;
border: none;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
padding: 2px 6px;
border-radius: 6px;
}
.hm-debug__head button:hover {
background: rgba(16, 24, 40, 0.08);
}
.hm-debug__body {
overflow: auto;
padding: 8px 10px 10px;
display: flex;
flex-direction: column;
gap: 10px;
}
.hm-debug__sec-title {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--hm-text-1);
}
.hm-debug__sec-title span {
font-weight: 400;
color: rgba(16, 24, 40, 0.5);
}
.hm-debug__row {
display: flex;
align-items: baseline;
gap: 6px;
padding: 2px 0;
}
.hm-debug__row b {
margin-left: auto;
font-weight: 600;
color: var(--hm-text-1);
}
.hm-debug__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px 10px;
}
.hm-debug__grid .hm-debug__row b {
font-variant-numeric: tabular-nums;
}
/* 图层行:悬停那一行会把对应画布描边。左侧竖条是它的 zIndex 序位 */
.hm-debug__layer {
display: grid;
grid-template-columns: 4px 1fr auto;
gap: 0 8px;
padding: 4px 6px 4px 0;
border-radius: 8px;
border: 1px solid transparent;
}
.hm-debug__layer:hover,
.hm-debug__layer.is-active {
background: rgba(16, 24, 40, 0.06);
border-color: rgba(255, 45, 120, 0.5);
}
.hm-debug__layer-bar {
border-radius: 0 2px 2px 0;
background: var(--hm-accent-cyan);
}
.hm-debug__layer.is-hidden .hm-debug__layer-bar {
background: rgba(16, 24, 40, 0.2);
}
.hm-debug__layer-name {
font-weight: 600;
color: var(--hm-text-1);
}
.hm-debug__layer-note {
grid-column: 2 / span 2;
color: rgba(16, 24, 40, 0.55);
}
.hm-debug__layer-nums {
grid-column: 2 / span 2;
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
color: rgba(16, 24, 40, 0.72);
}
.hm-debug__tag {
padding: 0 5px;
border-radius: 4px;
background: rgba(40, 167, 225, 0.16);
color: #0d7bb0;
}
.hm-debug__tag.is-warn {
background: rgba(255, 45, 120, 0.14);
color: #c9155c;
}
.hm-debug__tag.is-idle {
background: rgba(16, 24, 40, 0.08);
color: rgba(16, 24, 40, 0.6);
}
/* 事件时间轴。左边那一格是相对上一条的间隔,看的就是"什么时候真的发生了什么" */
.hm-debug__events {
display: flex;
flex-direction: column;
gap: 1px;
max-height: 168px;
overflow: auto;
padding-right: 2px;
}
.hm-debug__event {
display: grid;
grid-template-columns: 46px 8px 1fr;
gap: 6px;
align-items: center;
padding: 1px 2px;
border-radius: 4px;
}
.hm-debug__event:nth-child(odd) {
background: rgba(16, 24, 40, 0.035);
}
.hm-debug__event-time {
text-align: right;
color: rgba(16, 24, 40, 0.45);
}
.hm-debug__event-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--hm-accent-cyan);
}
.hm-debug__event-dot.k-gesture {
background: var(--hm-accent-gold-deep);
}
.hm-debug__event-dot.k-aggregate {
background: #7b61ff;
}
.hm-debug__event-dot.k-layer {
background: #12a86e;
}
.hm-debug__event-dot.k-frame {
background: #ff2d78;
}
.hm-debug__event-detail {
color: rgba(16, 24, 40, 0.55);
}
.hm-debug__event-n {
color: #c9155c;
font-weight: 600;
}
.hm-debug__opts {
display: flex;
flex-wrap: wrap;
gap: 4px 12px;
}
.hm-debug__opts label {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
}
.hm-debug__hint {
color: rgba(16, 24, 40, 0.55);
}