diff --git a/hamlet/workbench/hamlet.css b/hamlet/workbench/hamlet.css index 7ebdb9b..8c589bf 100644 --- a/hamlet/workbench/hamlet.css +++ b/hamlet/workbench/hamlet.css @@ -18,6 +18,7 @@ --hamlet-dim: var(--vscode-sideBarSectionHeader-foreground); --hamlet-quiet: var(--vscode-descriptionForeground); --hamlet-line: var(--vscode-tree-indentGuidesStroke); + --hamlet-shade: var(--vscode-widget-shadow); --hamlet-fillet: 16px; } @@ -256,7 +257,8 @@ .explorer-folders-view .monaco-list-row.selected:not([aria-expanded])::after { content: ""; position: absolute; - inset: 0 0 0 8px; + /* a pixel over the fillets above and below, so no seam shows */ + inset: -1px 0 -1px 8px; border-radius: 10px 0 0 10px; background: var(--hamlet-sheet); z-index: -1; @@ -396,8 +398,12 @@ .monaco-workbench .part.editor > .content .editor-group-container > .title { display: none !important; } +/* At a fractional scale the side bar and the editor share a pixel, where + the panels under both show through as a dark seam across the open + file's row. The sash over that edge is the sheet from below the sheet's + rounded corner, so the pixel is the sheet's alone. */ .monaco-workbench .monaco-sash.vertical:not(.disabled) { - background: transparent; + background: linear-gradient(var(--hamlet-sheet), var(--hamlet-sheet)) 1px 12px / calc(100% - 1px) 100% no-repeat; } /* ---------- "Add to chat": beside a selection, and over a viewer ---------- */ @@ -413,7 +419,7 @@ background: color-mix(in srgb, var(--hamlet-lamp) 16%, var(--hamlet-sheet)); border: 1px solid color-mix(in srgb, var(--hamlet-lamp) 55%, transparent); border-radius: 5px; - box-shadow: 0 8px 18px rgba(0, 0, 0, .45); + box-shadow: 0 8px 18px var(--hamlet-shade); cursor: pointer; } .hamlet-add[hidden] { @@ -466,7 +472,7 @@ background: color-mix(in srgb, var(--hamlet-lamp) 10%, var(--hamlet-sheet)); border: 1px solid color-mix(in srgb, var(--hamlet-lamp) 60%, transparent); border-radius: 6px; - box-shadow: 0 10px 24px rgba(0, 0, 0, .5); + box-shadow: 0 10px 24px var(--hamlet-shade); } .hamlet-note[hidden] { display: none;