File size: 4,739 Bytes
c1fc133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e7e617
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* W61-T10 / R12: the editor is portalled to body, so scope through its own root.
   These selectors beat the earlier single-class rules regardless of chunk load order. */
.sheet-formula-editor .sheet-formula-editor-input-wrap {
  flex: 0 0 100%;
}

.sheet-formula-editor .sheet-formula-editor-input,
.sheet-formula-editor .sheet-formula-editor-backdrop,
.sheet-formula-editor .sheet-formula-editor-sizer {
  box-sizing: border-box;
  font: inherit;
  font-size: var(--lp-fs-xs);
  line-height: inherit;
  padding: 0 7px;
  border-width: 1px;
  border-style: solid;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  letter-spacing: normal;
}

.sheet-formula-editor .sheet-formula-editor-input {
  display: block;
  margin: 0;
  min-width: 0;
  min-height: 0;
  resize: none;
  overflow: hidden;
}

/* A line is the cell's inner height, so one line stays vertically centred without a
   separate padding mode. Block text flow keeps coloured spans on the textarea's lines;
   flex would wrap each reference independently and detach the colour from its glyphs. */
.sheet-formula-editor .sheet-formula-editor-backdrop {
  display: block;
  align-items: flex-start;
  border-color: transparent;
}

.sheet-formula-editor .sheet-formula-editor-sizer {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  width: max-content;
  border: 1px solid transparent;
}

.sheet-formula-editor .sheet-formula-mode,
.sheet-formula-editor .formula-assist {
  line-height: 1.5;
}

/* Reference colour is preserved; a different weight would measure different glyph widths
   from the native textarea, and the two layers would diverge with every reference. */
.sheet-formula-editor .formula-assist-ref,
.sheet-fx .formula-assist-backdrop-bar .formula-assist-ref {
  font-weight: inherit;
}

.formula-assist--caret .formula-assist-list {
  min-width: min(260px, calc(100vw - 8px));
  max-width: calc(100vw - 8px);
  box-sizing: border-box;
}

.formula-assist--caret .formula-assist-tip {
  min-width: min(220px, calc(100vw - 8px));
  max-width: min(360px, calc(100vw - 8px));
  box-sizing: border-box;
}

.sheet-fx[role="group"] {
  height: auto;
  min-height: 32px;
  padding-block: 3px;
}

.sheet-fx .sheet-fx-input,
.sheet-fx .formula-assist-backdrop-bar {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-size: var(--lp-fs-xs);
  line-height: 1.5;
  padding: 3px 8px;
  border-width: 1px;
  border-style: solid;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  letter-spacing: normal;
  scrollbar-gutter: stable;
}

.sheet-fx .sheet-fx-input {
  margin: 0;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.sheet-fx .formula-assist-backdrop-bar {
  align-items: flex-start;
  border-color: transparent;
}

.sheet-fx .sheet-fx-input.formula-assist-input-bar--colored {
  color: transparent;
  caret-color: var(--lp-ink);
}

/* W61-T11 / R13: only the body's bottom scrollbar is visible. Hide the band's
   scrollbar, never its overflow: scrollOffsetX writes this scroller's scrollLeft,
   and overflow-x: hidden risks breaking lockstep in another browser version.
   The gate pins Glide's installed dvn-scroller class so a rename fails loudly. */
.sheet-grid-canvas > .sheet-frozen-rows .dvn-scroller {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sheet-grid-canvas > .sheet-frozen-rows .dvn-scroller::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Both dividers use the existing var(--lp-line) hairline with gridlines on.
   Glide makes its borderColor transparent with gridlines off; the band must follow.
   The attribute beats the older two-class border rule regardless of load order. */
.sheet-grid-canvas > .sheet-frozen-rows[data-gridlines="false"] {
  border-bottom-color: transparent;
}

/* S63-T24: row markers are Glide-internal cells and never reach the public drawCell callback.
   Paint the C6 selection's row projection above that marker only; pointer-events stay with the
   real canvas, so the visual layer cannot become a second row-selection surface. */
.sheet-grid-canvas > .sheet-active-row-header {
  position: absolute;
  z-index: 2;
  flex: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--lp-blue-deep);
  background: var(--lp-blue-tint);
  border-bottom: 1px solid var(--lp-blue-deep);
  /* Highlight with background and border only; face and weight deliberately mirror
     lightTheme so an active row's glyphs do not move. */
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1;
}