File size: 1,144 Bytes
94004a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* ── Segmented primitive ────────────────────────────────────────── */

.ui-seg {
  display: inline-flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.28);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  flex-shrink: 1;
}

.ui-seg__opt {
  font-family: var(--font-ui);
  font-weight: var(--weight-black);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: transparent;
  color: var(--color-fg-subtle);
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.ui-seg__opt:hover:not(.is-active) {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.04);
}
.ui-seg__opt.is-active {
  background: rgba(243, 165, 182, 0.25);
  color: #fff9ef;
}
.ui-seg__opt:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* sizes */
.ui-seg--size-xs .ui-seg__opt { padding: 2px 9px; font-size: var(--text-2xs); }
.ui-seg--size-sm .ui-seg__opt { padding: 3px 10px; font-size: var(--text-xs); }