File size: 1,163 Bytes
494c9e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// 归因:GLTR 结果区 + debug 面板中与完整页/侧栏共用的展示(单一数据源)。
// 修改本文件即可同时影响 attribution.html 右栏与 index 侧栏 #attribution_panel_results。
@use "lmf-readout" as lmf;

.attribution-inspector-surface {
  position: relative;
  min-width: 0;
}

// Ghost pill:箭头用 ::before,正文为单个文本子节点
.LMF .text-layer .attribution-predicted-ghost-pill {
  font-family: lmf.$mono-font-stack;
  font-size: 10pt;
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle; // 行内相对父级文字中线,避免默认基线对齐显得偏下
  box-sizing: border-box;
  margin-left: 1.5em;
  padding: 0.12em 0.5em; // 箭头在框外,左右内边距对称
  // border: 1px dashed rgba(120, 120, 130, 0.55);
  border-radius: 9px;
  background: rgba(255, 71, 64, 0.7);
  // opacity: 0.75;

  // 箭头在虚线框左侧外侧(仍用 ::before,无额外 DOM)
  &::before {
    content: '->';
    position: absolute;
    right: 100%;
    margin-right: 0.1em;
    opacity: 0.75;
    color: var(--text-muted, #666);
    white-space: nowrap;
  }
}