Files
deepseek-harness/packages/client/web/src/base.css
T
Yif f2db686404 feat(desktop): macOS hidden titlebar with vibrancy sidebar
hiddenInset titlebar with traffic lights over a vibrancy sidebar, darwin-only
via data-platform set by the desktop preload: transparent chain to the window
material, native-theme sync from the app theme source, sidebar top strip +
full hide when collapsed with reopen controls in the new
conversation.session.header.leading slot, title-row drag regions, and
fullscreen right-sidebar traffic-light clearance via the dockkit strip inset.
2026-09-15 02:26:57 +08:00

61 lines
1.5 KiB
CSS

/* Shell-owned mount defaults. Theme tokens arrive with the ui-theme client
* plugin before the loader roster activates. */
html,
body,
#root {
height: 100%;
margin: 0;
}
body {
font-family: var(
--dsw-font-family,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
'PingFang SC',
'Hiragino Sans GB',
'Microsoft YaHei',
'Helvetica Neue',
Helvetica,
Arial,
sans-serif
);
/* Grayscale antialiasing over subpixel rendering: WebKit/Blink and the
Firefox macOS equivalent; other engines ignore both lines. */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: var(--dsw-alias-label-primary, #0f1115);
background: var(--dsw-alias-bg-base, #fff);
/* Supporting browsers insert CJK/Latin spacing in inherited prose. */
text-autospace: normal;
}
/* macOS desktop (the Electron preload sets data-platform): the window's
sidebar vibrancy shows only through a transparent page background. */
html[data-platform='darwin'],
html[data-platform='darwin'] body {
background: transparent;
}
code,
pre,
[data-diff],
[data-read],
[data-search],
[data-terminal] {
/* Literal payloads retain source spacing and column alignment. */
text-autospace: no-autospace;
}
/* Form controls don't inherit the body font (UA sheets pin their families —
Chrome buttons fall back to Arial, textareas to monospace), so the app
stack is re-applied to them explicitly, as upstream's global reset does. */
button,
input,
select,
textarea {
font-family: inherit;
}