File size: 8,270 Bytes
367a695
 
 
 
 
c1fc133
 
 
367a695
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1fc133
 
367a695
c1fc133
 
367a695
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1fc133
 
367a695
 
c1fc133
367a695
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1fc133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
/* The chooser shares one surface; the rail is separated only by a hairline. */
.sheet-chart-chooser {
  min-width: 0;
}

.sheet-chart-type-settings { display: grid; gap: 12px; margin-bottom: 16px; }
.sheet-chart-data-subtype { grid-column: 1 / -1; }

.sheet-chart-chooser-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--lp-line);
  padding-bottom: 8px;
}

.sheet-chart-chooser-tab,
.sheet-chart-thumbnail {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  border-radius: var(--lp-r-sm);
  padding: 8px;
  cursor: pointer;
  font-size: var(--lp-fs-xs);
  text-align: left;
}

.sheet-chart-chooser-tab[aria-selected="true"],
.sheet-chart-thumbnail[aria-selected="true"] {
  background: var(--lp-blue-tint);
  outline: 2px solid var(--lp-blue-deep);
  outline-offset: -2px;
  font-weight: 600;
}

.sheet-chart-chooser-tab:focus-visible,
.sheet-chart-thumbnail:focus-visible,
.sheet-chart-formatting > summary:focus-visible {
  outline: 2px solid var(--lp-blue-deep);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .sheet-chart-chooser-tab:hover,
  .sheet-chart-thumbnail:hover {
    background: var(--lp-wash);
  }

  .sheet-chart-chooser-tab[aria-selected="true"]:hover,
  .sheet-chart-thumbnail[aria-selected="true"]:hover {
    background: var(--lp-blue-tint);
  }
}

.sheet-chart-chooser-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding-top: 16px;
  min-width: 0;
}

.sheet-chart-thumbnail-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(448px, 52dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--lp-line);
  padding: 4px 12px 4px 4px;
}

.sheet-chart-thumbnail {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.sheet-chart-thumbnail-name {
  font-size: var(--lp-fs-2xs);
}

.sheet-chart-thumbnail-drawing {
  display: block;
  height: 96px;
  width: 100%;
  pointer-events: none;
}

/* The renderer keeps multi-series legends mandatory; only miniature furniture is hidden. */
.sheet-chart-thumbnail-drawing .sheet-chart-legend,
.sheet-chart-thumbnail-drawing .sheet-chart-title {
  display: none;
}

.sheet-chart-thumbnail-error {
  font-size: var(--lp-fs-2xs);
  font-weight: 400;
  color: var(--lp-muted);
  line-height: 1.4;
}

.sheet-chart-live-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 8px 0 0 24px;
}

.sheet-chart-live-heading {
  margin: 0 0 8px;
  font-size: var(--lp-fs-sm);
  font-weight: 600;
  color: var(--lp-ink);
}

.sheet-chart-live-description {
  margin: 0;
  font-size: var(--lp-fs-xs);
  color: var(--lp-muted);
  line-height: 1.4;
}

.sheet-chart-live-drawing {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 16px;
  min-width: 0;
  overflow: hidden;
}

.sheet-chart-formatting > summary {
  cursor: pointer;
  font-size: var(--lp-fs-xs);
  color: var(--lp-muted);
}

.sheet-chart-formatting[open] > summary {
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  .sheet-chart-chooser-body {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
  }

  .sheet-chart-thumbnail-rail {
    padding-right: 8px;
  }

  .sheet-chart-thumbnail-drawing {
    height: 64px;
  }

  .sheet-chart-chooser-tabs {
    gap: 4px;
  }
}

/*
 * W60-T15: the inline rename box for a chart's title and axis titles. It is absolutely positioned
 * from a measured rect, so the drawing root has to be a positioning context; .sheet-chart-drawing
 * itself is styled in a stylesheet this lane may not edit, hence the second class rather than an
 * override.
 */
.sheet-chart-renamable { position: relative; }
.sheet-chart-rename {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  padding: 0 4px;
  border: 1px solid var(--lp-blue-deep);
  border-radius: var(--lp-r-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
  font: inherit;
  font-size: var(--lp-fs-xs);
}
.sheet-chart-rename:focus-visible { outline: none; }

/* W60-T16 (R23): one dialog size for every section, settings left, preview right. The size is an
   inline style on the element, because `.lp-dialog` in wave51/kit.css already sets width. */
.sheet-chart-body {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.sheet-chart-settings-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--lp-line);
}

/* The rail is the picker now; the drawing it used to sit beside is the dialog's right column. */
.sheet-chart-dialog .sheet-chart-chooser-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
.sheet-chart-dialog .sheet-chart-thumbnail-rail {
  max-height: none;
  overflow: visible;
  border-right: 0;
  padding-right: 4px;
}

/* R23's narrow case: the preview sits above the settings. */
@media (max-width: 900px) {
  .sheet-chart-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sheet-chart-settings-column { border-right: 0; }
  .sheet-chart-live-preview {
    order: -1;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--lp-line);
  }
  .sheet-chart-live-drawing { flex: 0 0 auto; height: 200px; margin-top: 8px; }
}

/*
 * W60-T17: the Data section is one form. The Insert ribbon's `.sheet-chart-fields` uses a 116px
 * label column, small muted labels and 30px controls. This dialog uses `.sheet-chart-setting`'s
 * 128px column and 36px controls. Scope the grid metrics here so both sources share the same
 * alignment without changing the ribbon's shared stylesheet.
 */
.sheet-chart-dialog .sheet-chart-fields {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px 8px;
  align-items: center;
}
.sheet-chart-dialog .sheet-chart-fields .sheet-chart-label {
  font-size: var(--lp-fs-xs);
  color: var(--lp-ink);
}
.sheet-chart-dialog .sheet-chart-select,
.sheet-chart-dialog .sheet-chart-text,
.sheet-chart-dialog .sheet-chart-number,
.sheet-chart-dialog .sheet-chart-switch {
  height: 36px;
}
/* A caption belongs under the control it describes, never under the label column. */
.sheet-chart-dialog .sheet-chart-fields .sheet-chart-caption { grid-column: 2; }

.sheet-chart-dialog .sheet-chart-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sheet-chart-dialog .sheet-chart-group-name {
  margin: 0;
  font-size: var(--lp-fs-xs);
  font-weight: 600;
  color: var(--lp-ink);
}
.sheet-chart-dialog .sheet-chart-switch {
  width: 100%;
  box-sizing: border-box;
  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);
  cursor: pointer;
}
.sheet-chart-dialog .sheet-chart-switch:hover { background: var(--lp-wash); }
.sheet-chart-dialog .sheet-chart-switch:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 1px; }
.sheet-chart-color-trigger,
.sheet-chart-color-option {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  min-height: 36px;
  cursor: pointer;
  text-align: left;
}
.sheet-chart-color-trigger {
  width: 100%;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-size: var(--lp-fs-xs);
}
.sheet-chart-color-list {
  min-width: 144px;
  padding: 4px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-sm);
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-size: var(--lp-fs-xs);
  overflow-y: auto;
}
.sheet-chart-color-option { width: 100%; border-radius: var(--lp-r-sm); }
.sheet-chart-color-option[aria-selected="true"] { background: var(--lp-blue-tint); }
.sheet-chart-color-trigger:focus-visible,
.sheet-chart-color-option:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: -2px; }
.sheet-chart-color-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--chart-color); }
@media (hover: hover) and (pointer: fine) {
  .sheet-chart-color-trigger:hover,
  .sheet-chart-color-option:hover { background: var(--lp-wash); }
}