/* 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); } }