File size: 2,536 Bytes
2eae9f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.sheet-search {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
  flex: 1 1 224px;
  min-width: 128px;
  max-width: 320px;
  margin-left: 8px;
  color: var(--lp-muted);
}

/* S66-T09: the strip's actions keep their one-line labels ("Full Screen" wrapped onto two lines
   at 1440 with the rail open); the search box is what yields width, down to its own minimum. */
.sheet-ribbon-tabs:has(.sheet-search) .sheet-ribbon-tabs-actions {
  flex-shrink: 0;
  white-space: nowrap;
}

.sheet-search-icon {
  position: absolute;
  left: 8px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  pointer-events: none;
}

.sheet-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
  font: inherit;
  font-size: var(--lp-fs-xs);
  padding: 4px 8px 4px 32px;
}

.sheet-search-input::placeholder { color: var(--lp-muted); }
.sheet-search-input:focus-visible {
  outline: 2px solid var(--lp-blue-deep);
  outline-offset: -2px;
}

.sheet-search-pop {
  width: min(480px, calc(100vw - 32px));
  max-height: min(480px, calc(100vh - 64px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  color: var(--lp-ink);
  font-size: var(--lp-fs-xs);
}

.sheet-search-caption {
  padding: 8px;
  color: var(--lp-muted);
  font-size: var(--lp-fs-2xs);
  font-weight: 600;
}

.sheet-search-result {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px;
  text-align: left;
  border-radius: var(--lp-r-sm);
  cursor: pointer;
}

.sheet-search-result.is-active { background: var(--lp-blue-tint); }
.sheet-search-result:disabled { opacity: 0.55; cursor: not-allowed; }
.sheet-search-result-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sheet-search-result-text > span { overflow-wrap: anywhere; }
.sheet-search-detail { color: var(--lp-muted); font-size: var(--lp-fs-2xs); }
.sheet-search-shortcut { flex: 0 0 auto; color: var(--lp-muted); font: inherit; font-size: var(--lp-fs-2xs); }
.sheet-search-status { margin: 0; padding: 8px; color: var(--lp-muted); font-size: var(--lp-fs-2xs); }

@media (max-width: 800px) {
  .sheet-ribbon-tabs:has(.sheet-search) { flex-wrap: wrap; }
  .sheet-search { min-height: 32px; }
}