Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions hamlet/workbench/hamlet.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 ---------- */
Expand All @@ -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] {
Expand Down Expand Up @@ -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;
Expand Down
Loading