@michengai/dsh-codex-ui 2.0.9 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/CHANGELOG.zh-CN.md +15 -0
- package/lib/client.js +1020 -184
- package/lib/session-title-plugin.mjs +2 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -160,7 +160,7 @@ window.__ModuleLoader__.load({
|
|
|
160
160
|
* (item II — lazy CSS), so editing the stylesheet means editing
|
|
161
161
|
* glass.module.css and rebuilding.
|
|
162
162
|
*/
|
|
163
|
-
const GLASS_CSS_TEXT = "[data-dsh-glass] body{--dsh-glass-card:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-raised:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(64% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-hover:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(76% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 18%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff6b;--dsh-glass-drop:0 10px 32px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 38%, transparent);--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-ground:color-mix(in srgb, color-mix(in srgb, var(--dsw-alias-bg-base), #fff calc(var(--dsh-glass-brightness-white,0) * 100%)), #000 calc(var(--dsh-glass-brightness-black,0) * 100%));--dsh-glass-ambience:calc(1 - var(--dsh-glass-brightness-white,0) - var(--dsh-glass-brightness-black,0));--dsh-glass-wash-tint:#fff;--dsh-glass-wash-mix:22%}[data-dsh-glass] body[data-ds-dark-theme]{--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 24%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 16%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff14;--dsh-glass-drop:0 10px 32px #02060e73;--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-wash-tint:var(--dsw-alias-bg-layer-1);--dsh-glass-wash-mix:68%}[data-dsh-glass] body,[data-dsh-glass] [data-dsh-glass-ground-sample]{background: radial-gradient(58% 46% at 18% 6%, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) calc(12% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 68%), radial-gradient(48% 42% at 86% 14%, color-mix(in srgb, var(--dsw-alias-state-success-tertiary) calc(10% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))) 0%, var(--dsh-glass-ground) 55%, color-mix(in srgb, var(--dsh-glass-ground), #000 calc(5% * var(--dsh-glass-ambience))) 100%)}[data-dsh-glass] [data-dsh-glass-frame],[data-dsh-glass] [data-phase],[data-dsh-glass] [data-dsh-glass-details],[data-dsh-glass-float] [data-dsh-glass-frame]>[class*=centerCol]{background:0 0}[data-dsh-glass-float] [data-phase=active] header{z-index:8;position:relative}[data-dsh-glass-float] [class*=banner]{position:static}[data-dsh-glass-float] [data-phase=active] [data-conversation-scroll]{margin-top:-95px;padding-top:107px}[data-dsh-glass] [data-phase] [class*=composerSeat][class*=composerSeat]{background:0 0}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock],[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]{position:relative}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock]:before,[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]:before{display:none!important;content:none!important}[data-dsh-glass] [data-dsh-glass-fade]{z-index:7;pointer-events:none;backdrop-filter:blur(5px);background:#ffffff2e;height:13px;position:fixed;left:0;right:0}[data-dsh-glass] body[data-ds-dark-theme] [data-dsh-glass-fade]{background:#00000024}[data-dsh-glass] [data-dsh-glass-fade=top]{top:0;-webkit-mask-image:linear-gradient(#000 0%,#0000 100%);mask-image:linear-gradient(#000 0%,#0000 100%)}[data-dsh-glass][data-windows-titlebar] [data-dsh-glass-fade=top]{display:none}[data-dsh-glass] [data-dsh-glass-fade=bottom]{bottom:0;-webkit-mask-image:linear-gradient(#0000 0%,#000 100%);mask-image:linear-gradient(#0000 0%,#000 100%)}[data-dsh-glass-float] [data-menu-material=translucent],[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-float] [role=dialog],[data-dsh-glass-float] [role=alert],[data-dsh-glass-float] [data-trigger-menu],[data-dsh-glass-float] [data-dsh-glass-surface]{border-radius:14px}[data-dsh-glass-float] [role=menuitem],[data-dsh-glass-float] [role=tooltip],[data-dsh-glass-float] [class*=pill]{border-radius:8px}[data-dsh-glass-float] button[class*=button]{border-radius:10px}[data-dsh-glass-float] [class*=iconButton],[data-dsh-glass-float] [class*=searchButton]{border-radius:8px}[data-dsh-glass-float] [class*=block]{--dsl-code-block-border-radius:14px;--dsl-diff-radius:14px;--dsl-read-radius:14px;--dsl-terminal-radius:14px;--dsl-web-radius:14px;--dsl-search-radius:14px;border-radius:14px}[data-dsh-glass-float] [data-dsh-glass-add]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-add]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-dsh-glass-surface]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-surface]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-conversation-scroll] [class*=bubble]{border:1px solid var(--dsh-glass-rim-soft);background:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(46% * var(--dsh-glass-frost,1)), transparent);border-radius:14px}[data-dsh-glass-float] [class*=card]{border-radius:14px}[data-dsh-glass-float] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]),[data-dsh-glass-compat] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]){background:color-mix(in srgb, var(--dsw-alias-bg-module-platform) calc(52% * var(--dsh-glass-frost,1)), transparent);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-changed-files],html[data-dsh-glass-float] [data-presented-file]{--changes-fill:var(--dsh-glass-card);--deliverable-fill:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-presented-file],html[data-dsh-glass-float] [data-changed-files]{background:var(--dsh-glass-card)}html[data-dsh-glass-float] [data-changed-files]>:first-child,html[data-dsh-glass-float] [data-changed-files] ul>li>:first-child,html[data-dsh-glass-float] [data-changed-files] ul{background:0 0}html[data-dsh-glass-float] [data-changed-files] ul{border-top:.5px solid var(--dsh-glass-rim-soft)}html[data-dsh-glass-float] [data-changed-files]>:first-child>:first-child,html[data-dsh-glass-float] [data-presented-file]>:first-child{background:var(--dsh-glass-card-raised)}html[data-dsh-glass-float] [data-turn-trigger]{background:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-turn-trigger]:hover{background:var(--dsh-glass-card-hover)}[data-dsh-glass] [data-dsh-glass-settings]{--dsh-glass-settings-raised:calc(38% + 38% * var(--dsh-glass-frost,1));--dsh-glass-settings-soft:calc(30% + 30% * var(--dsh-glass-frost,1));--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-750) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass] body:not([data-ds-dark-theme]) [data-dsh-glass-settings]{--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-60) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-100) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-75) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]){width:100%;max-width:min(calc(var(--dsh-chat-user-width,clamp(680px, calc(var(--dsh-conversation-column-width,1500px) * .64), 920px)) + 32px), calc(100% - 32px));border:1px solid var(--dsh-glass-rim);background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px;margin:12px auto 0;padding:10px 16px 8px}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]):after{display:none}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [data-phase] header:not([class*=headerBlank]){width:auto;max-width:none;margin-left:28px;margin-right:16px}[data-dsh-glass-float] [class*=sidebarCol]{--dsw-specific-sidebar-fill:transparent;z-index:9;border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-drop);border-radius:20px;margin:12px;padding:10px 12px 14px;position:relative;overflow:hidden}[data-dsh-glass-float] [class*=sidebarCol]:before{content:\"\";border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);z-index:-1;pointer-events:none;transition:border-radius .15s var(--ds-ease-in-out);position:absolute;inset:0}[data-dsh-glass-float] body{--dsw-specific-sidebar-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))))!important}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [class*=sidebarCol]{transition:margin .15s var(--ds-ease-in-out), border-radius .15s var(--ds-ease-in-out);border-radius:16px;margin:12px -12px 12px 12px;padding:0}[data-dsh-glass-float] [data-dsh-glass-frame]:not([data-sidebar-collapsed]) [data-dsh-glass-sidebar-root]{width:100%!important}[data-dsh-glass-float] [data-dsh-glass-trajectory]{width:100%!important;max-width:none!important;height:100%!important;margin:0!important;border:none!important;box-shadow:none!important;border-radius:0!important;overflow:hidden}[data-dsh-glass-float] [data-dsh-glass-trajectory] [role=toolbar],[data-dsh-glass-float] [data-dsh-glass-trajectory] section[aria-label=Trajectory\\ timeline]{background:0 0}[data-dsh-glass-float] [data-composer-card],[data-dsh-glass-float] [data-composer-card]:after{border-radius:24px}[data-dsh-glass-float] [data-composer-card]{z-index:8;isolation:isolate;border:1px solid var(--dsh-glass-rim-strong);box-shadow:var(--dsh-glass-input-shadow);background:0 0;position:relative}[data-dsh-glass-float] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px));pointer-events:none;position:absolute;inset:0}[data-dsh-glass-float] [data-dsh-glass-inputbar]:not([class*=hero]):not(:has([data-dsh-glass-stats])){padding-bottom:12px}[data-dsh-glass-float] [role=treeitem][aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}[data-dsh-glass-float] button[class*=button]:hover:not(:disabled),[data-dsh-glass-float] [role=menuitem]:hover:not(:disabled){box-shadow:0 0 12px color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 20%, transparent)}[data-dsh-glass-float] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] body[data-ds-dark-theme] [data-menu-material=translucent]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim-soft);outline-offset:-1px}[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *){background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-menu-material=translucent]:has([role=group]>[role=menuitemradio]){--dsw-menu-surface-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 70%, transparent)}[data-dsh-glass-float] [data-menu-group]:has(>[role=menuitemradio])>[data-menu-group-heading]{background:var(--dsh-glass-card-raised);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:999px;align-items:center;width:fit-content;margin:3px 0 5px 6px;padding:3px 10px;display:inline-flex}[data-dsh-glass-float] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px}[data-dsh-glass] [data-conversation-scroll]{text-shadow:0 0 1px #ffffff80}[data-dsh-glass] body[data-ds-dark-theme] [data-conversation-scroll]{text-shadow:0 0 1px #0006}[data-dsh-glass-float] [data-dsh-glass-inputbar] [data-slot]{color:var(--dsw-alias-label-secondary)}[data-dsh-glass]{--dsh-glass-entry-scale:1}[data-dsh-glass-compat]{--dsh-glass-entry-scale:0}[data-dsh-glass] [data-testid^=view-]{animation:dsh-glass-in calc(.26s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}[data-dsh-glass] [data-tool]{animation:dsh-glass-rise calc(.3s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out) both}[data-dsh-glass] [role=dialog]{animation:dsh-glass-dialog-in calc(.24s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}@keyframes dsh-glass-in{0%{opacity:0}}@keyframes dsh-glass-rise{0%{opacity:0;transform:translateY(6px)}}@keyframes dsh-glass-dialog-in{0%{opacity:0;transform:translateY(8px)scale(.985)}}[data-dsh-glass] :focus-visible{outline:2px solid color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 85%, transparent);outline-offset:1px}[data-dsh-glass] ::selection{background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 35%, transparent)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-sidebar-right-panel][data-sidebar-right-open],[data-dsh-glass-compat] [data-sidebar-right-panel][data-sidebar-right-open] [class*=panel]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{background:var(--dsh-glass-card-raised)}[data-dsh-glass-compat] [data-composer-card]{isolation:isolate;backdrop-filter:none;background:0 0;position:relative}[data-dsh-glass-compat] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card-raised);backdrop-filter:blur(12px);pointer-events:none;position:absolute;inset:0}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *):not(:focus-visible),[data-dsh-glass-compat] [data-composer-card]:not(:focus-visible),[data-dsh-glass-compat] [class*=popover]:not(:focus-visible),[data-dsh-glass-compat] [class*=dropdown]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim);outline-offset:-1px}[data-dsh-glass-compat] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,12px))}@media (prefers-reduced-motion:reduce){[data-dsh-glass] [data-testid^=view-],[data-dsh-glass] [data-tool],[data-dsh-glass] [role=dialog]{animation:none}}";
|
|
163
|
+
const GLASS_CSS_TEXT = "[data-dsh-glass] body{--dsh-glass-card:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-raised:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(64% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-card-hover:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(76% * var(--dsh-glass-frost,1)), transparent);--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 18%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff6b;--dsh-glass-drop:0 10px 32px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 38%, transparent);--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-ground:color-mix(in srgb, color-mix(in srgb, var(--dsw-alias-bg-base), #fff calc(var(--dsh-glass-brightness-white,0) * 100%)), #000 calc(var(--dsh-glass-brightness-black,0) * 100%));--dsh-glass-ambience:calc(1 - var(--dsh-glass-brightness-white,0) - var(--dsh-glass-brightness-black,0));--dsh-glass-wash-tint:#fff;--dsh-glass-wash-mix:22%}[data-dsh-glass] body[data-ds-dark-theme]{--dsh-glass-rim:color-mix(in srgb, var(--dsw-alias-label-primary) 24%, transparent);--dsh-glass-rim-soft:color-mix(in srgb, var(--dsw-alias-label-primary) 16%, transparent);--dsh-glass-rim-strong:color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent);--dsh-glass-edge:inset 0 1px 0 #ffffff14;--dsh-glass-drop:0 10px 32px #02060e73;--dsh-glass-input-shadow:0 1px 2px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 65%, transparent), 0 8px 24px color-mix(in srgb, var(--dsw-alias-bg-mask-2) 80%, transparent);--dsh-glass-wash-tint:var(--dsw-alias-bg-layer-1);--dsh-glass-wash-mix:68%}[data-dsh-glass] body,[data-dsh-glass] [data-dsh-glass-ground-sample]{background: radial-gradient(58% 46% at 18% 6%, color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) calc(12% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 68%), radial-gradient(48% 42% at 86% 14%, color-mix(in srgb, var(--dsw-alias-state-success-tertiary) calc(10% * var(--dsh-glass-ambience) * var(--dsh-glass-glow,0)), transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))) 0%, var(--dsh-glass-ground) 55%, color-mix(in srgb, var(--dsh-glass-ground), #000 calc(5% * var(--dsh-glass-ambience))) 100%)}[data-dsh-glass] [data-dsh-glass-frame],[data-dsh-glass] [data-phase],[data-dsh-glass] [data-dsh-glass-details],[data-dsh-glass-float] [data-dsh-glass-frame]>[class*=centerCol]{background:0 0}[data-dsh-glass-float] [data-phase=active] header{z-index:8;position:relative}[data-dsh-glass-float] [class*=banner]{position:static}[data-dsh-glass-float] [data-phase=active] [data-conversation-scroll]{margin-top:-95px;padding-top:107px}[data-dsh-glass] [data-phase] [class*=composerSeat][class*=composerSeat]{background:0 0}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock],[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]{position:relative}[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[class*=dock]:before,[data-dsh-glass] [data-phase] [data-dsh-glass-inputbar]>[data-composer-dock]:before{display:none!important;content:none!important}[data-dsh-glass] [data-dsh-glass-fade]{z-index:7;pointer-events:none;backdrop-filter:blur(5px);background:#ffffff2e;height:13px;position:fixed;left:0;right:0}[data-dsh-glass] body[data-ds-dark-theme] [data-dsh-glass-fade]{background:#00000024}[data-dsh-glass] [data-dsh-glass-fade=top]{top:0;-webkit-mask-image:linear-gradient(#000 0%,#0000 100%);mask-image:linear-gradient(#000 0%,#0000 100%)}[data-dsh-glass][data-windows-titlebar] [data-dsh-glass-fade=top]{display:none}[data-dsh-glass] [data-dsh-glass-fade=bottom]{bottom:0;-webkit-mask-image:linear-gradient(#0000 0%,#000 100%);mask-image:linear-gradient(#0000 0%,#000 100%)}[data-dsh-glass-float] [data-menu-material=translucent],[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-float] [role=dialog],[data-dsh-glass-float] [role=alert],[data-dsh-glass-float] [data-trigger-menu],[data-dsh-glass-float] [data-dsh-glass-surface]{border-radius:14px}[data-dsh-glass-float] [role=menuitem],[data-dsh-glass-float] [role=tooltip],[data-dsh-glass-float] [class*=pill]{border-radius:8px}[data-dsh-glass-float] button[class*=button]{border-radius:10px}[data-dsh-glass-float] [class*=iconButton],[data-dsh-glass-float] [class*=searchButton]{border-radius:8px}[data-dsh-glass-float] [class*=block]{--dsl-code-block-border-radius:14px;--dsl-diff-radius:14px;--dsl-read-radius:14px;--dsl-terminal-radius:14px;--dsl-web-radius:14px;--dsl-search-radius:14px;border-radius:14px}[data-dsh-glass-float] [data-dsh-glass-add]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-add]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-dsh-glass-surface]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-dsh-glass-surface]:hover:not(:disabled){background:var(--dsh-glass-card-hover)}[data-dsh-glass-float] [data-conversation-scroll] [class*=bubble]{border:1px solid var(--dsh-glass-rim-soft);background:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(46% * var(--dsh-glass-frost,1)), transparent);border-radius:14px}[data-dsh-glass-float] [class*=card]{border-radius:14px}[data-dsh-glass-float] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]),[data-dsh-glass-compat] [data-reader-reasoning-card]:not([data-overflow=false][data-expanded=false]){background:color-mix(in srgb, var(--dsw-alias-bg-module-platform) calc(52% * var(--dsh-glass-frost,1)), transparent);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-changed-files],html[data-dsh-glass-float] [data-presented-file]{--changes-fill:var(--dsh-glass-card);--deliverable-fill:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-presented-file],html[data-dsh-glass-float] [data-changed-files]{background:var(--dsh-glass-card)}html[data-dsh-glass-float] [data-changed-files]>:first-child,html[data-dsh-glass-float] [data-changed-files] ul>li>:first-child,html[data-dsh-glass-float] [data-changed-files] ul{background:0 0}html[data-dsh-glass-float] [data-changed-files] ul{border-top:.5px solid var(--dsh-glass-rim-soft)}html[data-dsh-glass-float] [data-changed-files]>:first-child>:first-child,html[data-dsh-glass-float] [data-presented-file]>:first-child{background:var(--dsh-glass-card-raised)}html[data-dsh-glass-float] [data-turn-trigger]{background:var(--dsh-glass-card);border-color:var(--dsh-glass-rim-soft);border-radius:14px}html[data-dsh-glass-float] [data-turn-trigger]:hover{background:var(--dsh-glass-card-hover)}[data-dsh-glass] [data-dsh-glass-settings]{--dsh-glass-settings-raised:calc(38% + 38% * var(--dsh-glass-frost,1));--dsh-glass-settings-soft:calc(30% + 30% * var(--dsh-glass-frost,1));--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-800) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-750) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-850) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass] body:not([data-ds-dark-theme]) [data-dsh-glass-settings]{--dsw-alias-bg-module-platform:color-mix(in srgb, var(--dsw-static-neutral-bluish-60) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-3:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-alias-bg-layer-2:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-raised), transparent);--dsw-alias-bg-layer-1:color-mix(in srgb, var(--dsw-static-neutral-bluish-00) var(--dsh-glass-settings-soft), transparent);--dsw-specific-sidebar-nav-item-active:color-mix(in srgb, var(--dsw-static-neutral-bluish-100) var(--dsh-glass-settings-raised), transparent);--dsw-specific-sidebar-nav-item-hover:color-mix(in srgb, var(--dsw-static-neutral-bluish-75) var(--dsh-glass-settings-soft), transparent)}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]){width:100%;max-width:min(calc(var(--dsh-chat-user-width,clamp(680px, calc(var(--dsh-conversation-column-width,1500px) * .64), 920px)) + 32px), calc(100% - 32px));border:1px solid var(--dsh-glass-rim);background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px;margin:12px auto 0;padding:10px 16px 8px}[data-dsh-glass-float] [data-phase] header:not([class*=headerBlank]):after{display:none}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [data-phase] header:not([class*=headerBlank]){width:auto;max-width:none;margin-left:28px;margin-right:16px}[data-dsh-glass-float] [class*=sidebarCol]{--dsw-specific-sidebar-fill:transparent;z-index:9;border:1px solid var(--dsh-glass-rim-soft);box-shadow:var(--dsh-glass-drop);border-radius:20px;margin:12px;padding:10px 12px 14px;position:relative;overflow:hidden}[data-dsh-glass-float] [class*=sidebarCol]:before{content:\"\";border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);z-index:-1;pointer-events:none;transition:border-radius .15s var(--ds-ease-in-out);position:absolute;inset:0}[data-dsh-glass-float] body{--dsw-specific-sidebar-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-1) calc(52% * var(--dsh-glass-frost,1)), color-mix(in srgb, var(--dsh-glass-ground), var(--dsh-glass-wash-tint) calc(var(--dsh-glass-wash-mix) * var(--dsh-glass-ambience))))!important}[data-dsh-glass-float] [data-dsh-glass-frame][data-sidebar-collapsed] [class*=sidebarCol]{transition:margin .15s var(--ds-ease-in-out), border-radius .15s var(--ds-ease-in-out);border-radius:16px;margin:12px -12px 12px 12px;padding:0}[data-dsh-glass-float] [data-dsh-glass-frame]:not([data-sidebar-collapsed]) [data-dsh-glass-sidebar-root]{width:100%!important}[data-dsh-glass-float] [data-dsh-glass-trajectory]{width:100%!important;max-width:none!important;height:100%!important;margin:0!important;border:none!important;box-shadow:none!important;border-radius:0!important;overflow:hidden}[data-dsh-glass-float] [data-dsh-glass-trajectory] [role=toolbar],[data-dsh-glass-float] [data-dsh-glass-trajectory] section[aria-label=Trajectory\\ timeline]{background:0 0}[data-dsh-glass-float] [data-composer-card],[data-dsh-glass-float] [data-composer-card]:after{border-radius:24px}[data-dsh-glass-float] [data-composer-card]{z-index:8;isolation:isolate;border:1px solid var(--dsh-glass-rim-strong);box-shadow:var(--dsh-glass-input-shadow);background:0 0;position:relative}[data-dsh-glass-float] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card);box-shadow:var(--dsh-glass-edge);backdrop-filter:blur(var(--dsh-glass-blur,14px));pointer-events:none;position:absolute;inset:0}[data-dsh-glass-float] [data-dsh-glass-inputbar]:not([class*=hero]):not(:has([data-dsh-glass-stats])){padding-bottom:12px}[data-dsh-glass-float] [role=treeitem][aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}[data-dsh-glass-float] button[class*=button]:hover:not(:disabled),[data-dsh-glass-float] [role=menuitem]:hover:not(:disabled){box-shadow:0 0 12px color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 20%, transparent)}[data-dsh-glass-float] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] body[data-ds-dark-theme] [data-menu-material=translucent]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim-soft);outline-offset:-1px}[data-dsh-glass-float] [role=menu]:not([data-menu-material]):not([data-menu-material] *){background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim-soft);backdrop-filter:blur(var(--dsh-glass-blur,14px))}[data-dsh-glass-float] [data-menu-material=translucent]:has([role=group]>[role=menuitemradio]){--dsw-menu-surface-fill:color-mix(in srgb, var(--dsw-alias-bg-layer-2) 70%, transparent)}[data-dsh-glass-float] [data-menu-group]:has(>[role=menuitemradio])>[data-menu-group-heading]{background:var(--dsh-glass-card-raised);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:999px;align-items:center;width:fit-content;margin:3px 0 5px 6px;padding:3px 10px;display:inline-flex}[data-dsh-glass-float] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,14px));border-radius:20px}[data-dsh-glass] [data-conversation-scroll]{text-shadow:0 0 1px #ffffff80}[data-dsh-glass] body[data-ds-dark-theme] [data-conversation-scroll]{text-shadow:0 0 1px #0006}[data-dsh-glass-float] [data-dsh-glass-inputbar] [data-slot]{color:var(--dsw-alias-label-secondary)}[data-dsh-glass]{--dsh-glass-entry-scale:1}[data-dsh-glass-compat]{--dsh-glass-entry-scale:0}[data-dsh-glass] [data-testid^=view-]{animation:dsh-glass-in calc(.26s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}[data-dsh-glass] [data-tool]{animation:dsh-glass-rise calc(.3s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out) both}[data-dsh-glass] [role=dialog]{animation:dsh-glass-dialog-in calc(.24s * var(--dsh-glass-entry-scale,1)) var(--ds-ease-in-out)}@keyframes dsh-glass-in{0%{opacity:0}}@keyframes dsh-glass-rise{0%{opacity:0;transform:translateY(6px)}}@keyframes dsh-glass-dialog-in{0%{opacity:0;transform:translateY(8px)scale(.985)}}[data-dsh-glass] :focus-visible{outline:2px solid color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 85%, transparent);outline-offset:1px}[data-dsh-glass] ::selection{background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 35%, transparent)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{backdrop-filter:blur(12px)}[data-dsh-glass-compat] [data-menu-material=translucent]:not(:focus-visible){--dsw-menu-surface-fill:var(--dsh-glass-card-raised);--dsw-menu-backdrop-filter:blur(12px)}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *),[data-dsh-glass-compat] [class*=popover],[data-dsh-glass-compat] [class*=dropdown]{background:var(--dsh-glass-card-raised)}[data-dsh-glass-compat] [data-composer-card]{isolation:isolate;backdrop-filter:none;background:0 0;position:relative}[data-dsh-glass-compat] [data-composer-card]:before{content:\"\";z-index:-1;border-radius:inherit;background:var(--dsh-glass-card-raised);backdrop-filter:blur(12px);pointer-events:none;position:absolute;inset:0}[data-dsh-glass-compat] [role=menu]:not([data-menu-material]):not([data-menu-material] *):not(:focus-visible),[data-dsh-glass-compat] [data-composer-card]:not(:focus-visible),[data-dsh-glass-compat] [class*=popover]:not(:focus-visible),[data-dsh-glass-compat] [class*=dropdown]:not(:focus-visible){outline:1px solid var(--dsh-glass-rim);outline-offset:-1px}[data-dsh-glass-compat] [role=dialog][aria-modal=true]{background:var(--dsh-glass-card-raised);border:1px solid var(--dsh-glass-rim);box-shadow:var(--dsh-glass-edge), var(--dsh-glass-drop);backdrop-filter:blur(var(--dsh-glass-blur,12px))}@media (prefers-reduced-motion:reduce){[data-dsh-glass] [data-testid^=view-],[data-dsh-glass] [data-tool],[data-dsh-glass] [role=dialog]{animation:none}}";
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/client/theme/glass-seams.ts
|
|
166
166
|
const SEAMS = [
|
|
@@ -2584,12 +2584,10 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card {
|
|
|
2584
2584
|
const endpoint = CODEX_UI_API_ENDPOINTS.dependencies;
|
|
2585
2585
|
const stylesheet = `
|
|
2586
2586
|
.dcu-about{color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family);display:flex;flex-direction:column}
|
|
2587
|
-
.dcu-about-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:16px}
|
|
2588
|
-
.dcu-about-title-block{min-width:0}
|
|
2589
|
-
.dcu-about h2,.dcu-about-title{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;color:var(--dsw-alias-label-primary)}
|
|
2590
|
-
.dcu-about-title-row{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}
|
|
2591
2587
|
.dcu-about-feedback-links,.dcu-about-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
2592
2588
|
.dcu-about-version{margin-left:8px;color:var(--dsw-alias-label-tertiary);font-family:inherit;font-size:12px;font-weight:500;line-height:18px;letter-spacing:0;white-space:nowrap;vertical-align:baseline}
|
|
2589
|
+
.dcu-section-subtitle-wrap{margin-top:-4px;margin-bottom:4px}
|
|
2590
|
+
.dcu-section-subtitle{font-size:13px;font-weight:600;color:var(--dsw-alias-label-secondary)}
|
|
2593
2591
|
.dcu-subplugins-list{display:flex;flex-direction:column;gap:6px}
|
|
2594
2592
|
.dcu-subplugin-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--dsw-alias-bg-layer-1,rgba(255,255,255,0.03));border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,0.06));border-radius:8px;transition:background-color 120ms ease}
|
|
2595
2593
|
.dcu-subplugin-item:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,0.05))}
|
|
@@ -2840,17 +2838,22 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
2840
2838
|
"aria-label": t("about.nav"),
|
|
2841
2839
|
children: [
|
|
2842
2840
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", { children: stylesheet }),
|
|
2843
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
2844
|
-
className: "dcu-
|
|
2845
|
-
children:
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2841
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2842
|
+
className: "dcu-section-card dcu-card-features",
|
|
2843
|
+
children: [
|
|
2844
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2845
|
+
className: "dcu-section-header",
|
|
2846
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2847
|
+
className: "dcu-section-title-wrap",
|
|
2848
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h3", {
|
|
2849
|
+
className: "dcu-section-title",
|
|
2850
|
+
children: [t("about.title"), selfVersion === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
2851
|
+
className: "dcu-about-version",
|
|
2852
|
+
children: ["v", selfVersion]
|
|
2853
|
+
})]
|
|
2854
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2855
|
+
className: "dcu-section-desc",
|
|
2856
|
+
children: t("about.description")
|
|
2854
2857
|
})]
|
|
2855
2858
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2856
2859
|
className: "dcu-about-feedback-links dcu-about-links",
|
|
@@ -2888,42 +2891,34 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
2888
2891
|
})
|
|
2889
2892
|
]
|
|
2890
2893
|
})]
|
|
2891
|
-
})
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2897
|
-
className: "dcu-section-header",
|
|
2898
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2899
|
-
className: "dcu-section-title-wrap",
|
|
2900
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
2901
|
-
className: "dcu-section-title",
|
|
2894
|
+
}),
|
|
2895
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2896
|
+
className: "dcu-section-subtitle-wrap",
|
|
2897
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2898
|
+
className: "dcu-section-subtitle",
|
|
2902
2899
|
children: t("about.features")
|
|
2903
|
-
})
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2900
|
+
})
|
|
2901
|
+
}),
|
|
2902
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2903
|
+
className: "dcu-subplugins-list",
|
|
2904
|
+
children: SUB_PLUGINS.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2905
|
+
className: "dcu-subplugin-item",
|
|
2906
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2907
|
+
className: "dcu-subplugin-header",
|
|
2908
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2909
|
+
className: "dcu-subplugin-name",
|
|
2910
|
+
children: t(item.nameKey)
|
|
2911
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
|
|
2912
|
+
className: "dcu-subplugin-badge",
|
|
2913
|
+
children: item.id
|
|
2914
|
+
})]
|
|
2915
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2916
|
+
className: "dcu-subplugin-desc",
|
|
2917
|
+
children: t(item.descKey)
|
|
2920
2918
|
})]
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
})]
|
|
2925
|
-
}, item.id))
|
|
2926
|
-
})]
|
|
2919
|
+
}, item.id))
|
|
2920
|
+
})
|
|
2921
|
+
]
|
|
2927
2922
|
}),
|
|
2928
2923
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ThemeSettingsCard, { t }),
|
|
2929
2924
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3120,7 +3115,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3120
3115
|
"about.feedback": "问题反馈",
|
|
3121
3116
|
"about.checkUpdate": "检查更新",
|
|
3122
3117
|
"about.checking": "正在检查更新…",
|
|
3123
|
-
"about.description": "
|
|
3118
|
+
"about.description": "输入框增强、全屏设置工作台美化与生态插件管理。",
|
|
3124
3119
|
"about.features": "包含子插件与功能",
|
|
3125
3120
|
"about.feature.composer.name": "输入框增强 (Composer)",
|
|
3126
3121
|
"about.feature.composer": "终端风格输入历史(↑/↓)快捷召回、自适应宽度调节与会话建议卡片",
|
|
@@ -3289,7 +3284,7 @@ html[data-dsh-glass] body:not([data-ds-dark-theme]) .dcu-section-card{background
|
|
|
3289
3284
|
"about.feedback": "Issues",
|
|
3290
3285
|
"about.checkUpdate": "Check for updates",
|
|
3291
3286
|
"about.checking": "Checking…",
|
|
3292
|
-
"about.description": "
|
|
3287
|
+
"about.description": "Input enhancement, fullscreen settings workbench skin, and ecosystem plugin management.",
|
|
3293
3288
|
"about.features": "Built-in Sub-plugins & Capabilities",
|
|
3294
3289
|
"about.feature.composer.name": "Composer Enhancements",
|
|
3295
3290
|
"about.feature.composer": "Terminal-style input history (↑/↓), adaptive width resizing, and starter suggestions",
|
|
@@ -4427,67 +4422,6 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [
|
|
|
4427
4422
|
margin-inline: auto !important;
|
|
4428
4423
|
}
|
|
4429
4424
|
|
|
4430
|
-
@media (max-width: 640px) {
|
|
4431
|
-
body > [role="presentation"]:has(> [data-shortcut-modal="settings"]) {
|
|
4432
|
-
padding: 0 !important;
|
|
4433
|
-
}
|
|
4434
|
-
|
|
4435
|
-
[data-shortcut-modal="settings"] {
|
|
4436
|
-
width: 100vw !important;
|
|
4437
|
-
height: 100vh !important;
|
|
4438
|
-
max-width: none !important;
|
|
4439
|
-
max-height: none !important;
|
|
4440
|
-
border-radius: 0 !important;
|
|
4441
|
-
border: none !important;
|
|
4442
|
-
flex-direction: column !important;
|
|
4443
|
-
padding-top: env(safe-area-inset-top, 0px) !important;
|
|
4444
|
-
padding-bottom: env(safe-area-inset-bottom, 0px) !important;
|
|
4445
|
-
padding-left: env(safe-area-inset-left, 0px) !important;
|
|
4446
|
-
padding-right: env(safe-area-inset-right, 0px) !important;
|
|
4447
|
-
box-sizing: border-box !important;
|
|
4448
|
-
}
|
|
4449
|
-
|
|
4450
|
-
[data-shortcut-modal="settings"] > nav {
|
|
4451
|
-
width: 100% !important;
|
|
4452
|
-
min-width: 0 !important;
|
|
4453
|
-
max-width: none !important;
|
|
4454
|
-
gap: 10px !important;
|
|
4455
|
-
padding: 12px 16px 8px !important;
|
|
4456
|
-
border-right: 0 !important;
|
|
4457
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
4458
|
-
}
|
|
4459
|
-
|
|
4460
|
-
[data-shortcut-modal="settings"] > nav > :first-child { padding-inline: 4px !important; }
|
|
4461
|
-
|
|
4462
|
-
[data-shortcut-modal="settings"] > nav > :nth-child(2) {
|
|
4463
|
-
flex-direction: row !important;
|
|
4464
|
-
overflow-x: auto !important;
|
|
4465
|
-
}
|
|
4466
|
-
|
|
4467
|
-
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button { flex: 0 0 auto !important; }
|
|
4468
|
-
|
|
4469
|
-
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
4470
|
-
flex: 1 1 auto !important;
|
|
4471
|
-
min-height: 0 !important;
|
|
4472
|
-
overflow-y: auto !important;
|
|
4473
|
-
}
|
|
4474
|
-
|
|
4475
|
-
[data-shortcut-modal="settings"] > div > :first-child { height: 48px !important; min-height: 48px !important; padding: 0 16px !important; }
|
|
4476
|
-
|
|
4477
|
-
[data-shortcut-modal="settings"] > div > :nth-child(2) { padding: 16px !important; }
|
|
4478
|
-
|
|
4479
|
-
[data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4480
|
-
display: flex !important;
|
|
4481
|
-
flex-direction: column !important;
|
|
4482
|
-
}
|
|
4483
|
-
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"],
|
|
4484
|
-
[data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4485
|
-
width: 100% !important;
|
|
4486
|
-
max-width: none !important;
|
|
4487
|
-
min-width: 0 !important;
|
|
4488
|
-
}
|
|
4489
|
-
}
|
|
4490
|
-
|
|
4491
4425
|
/* 新版宿主平铺 4 块 Grid 布局映射(0.2.1-alpha.3+),杜绝 4 列横向撕裂与多余空条 */
|
|
4492
4426
|
[data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4493
4427
|
display: grid !important;
|
|
@@ -4530,7 +4464,7 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [
|
|
|
4530
4464
|
flex: none !important;
|
|
4531
4465
|
}
|
|
4532
4466
|
|
|
4533
|
-
/* 顶部操作区(打开配置文件 +
|
|
4467
|
+
/* 顶部操作区(打开配置文件 + 关闭按钮):普通模式下透明浮动,无实体白条与下边框,绝不硬切出第二层顶部 */
|
|
4534
4468
|
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4535
4469
|
grid-column: 2 !important;
|
|
4536
4470
|
grid-row: 1 / -1 !important;
|
|
@@ -4542,14 +4476,16 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [
|
|
|
4542
4476
|
min-height: 56px !important;
|
|
4543
4477
|
box-sizing: border-box !important;
|
|
4544
4478
|
padding: 0 32px !important;
|
|
4545
|
-
border
|
|
4479
|
+
border: none !important;
|
|
4480
|
+
border-bottom: none !important;
|
|
4546
4481
|
display: flex !important;
|
|
4547
4482
|
align-items: center !important;
|
|
4548
4483
|
justify-content: flex-end !important;
|
|
4549
4484
|
gap: 12px !important;
|
|
4550
|
-
background:
|
|
4485
|
+
background: transparent !important;
|
|
4551
4486
|
z-index: 10 !important;
|
|
4552
4487
|
margin: 0 !important;
|
|
4488
|
+
pointer-events: none !important;
|
|
4553
4489
|
}
|
|
4554
4490
|
|
|
4555
4491
|
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] > * {
|
|
@@ -4605,93 +4541,948 @@ html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class
|
|
|
4605
4541
|
|
|
4606
4542
|
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
|
|
4607
4543
|
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4544
|
+
background: transparent !important;
|
|
4545
|
+
border: none !important;
|
|
4546
|
+
border-bottom: none !important;
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4549
|
+
body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
|
|
4550
|
+
html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4608
4551
|
background: var(--dsw-alias-bg-layer-1, #ffffff) !important;
|
|
4609
|
-
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4610
4552
|
}
|
|
4611
4553
|
|
|
4612
|
-
|
|
4613
|
-
html[data-
|
|
4614
|
-
|
|
4554
|
+
/* 云母悬浮双岛(Mica Mode)新版 Grid 适配:右侧整列为标准 56px 顶栏 + 16px 圆角大卡片 */
|
|
4555
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
4556
|
+
grid-template-columns: calc(var(--dcu-settings-nav-width, 280px) - 24px) minmax(0, 1fr) !important;
|
|
4557
|
+
gap: 0 12px !important;
|
|
4558
|
+
padding: 8px 12px 12px 12px !important;
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4562
|
+
width: 100% !important;
|
|
4563
|
+
min-width: 0 !important;
|
|
4564
|
+
max-width: none !important;
|
|
4565
|
+
margin: 0 !important;
|
|
4566
|
+
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4567
|
+
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4568
|
+
border-top: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4569
|
+
border-bottom: none !important;
|
|
4570
|
+
border-radius: 16px 16px 0 0 !important;
|
|
4571
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4572
|
+
backdrop-filter: none !important;
|
|
4573
|
+
-webkit-backdrop-filter: none !important;
|
|
4574
|
+
box-shadow: none !important;
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4577
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
4578
|
+
width: 100% !important;
|
|
4579
|
+
min-width: 0 !important;
|
|
4580
|
+
max-width: none !important;
|
|
4581
|
+
margin: 0 !important;
|
|
4582
|
+
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4583
|
+
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4584
|
+
border-bottom: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4585
|
+
border-top: none !important;
|
|
4586
|
+
border-radius: 0 0 16px 16px !important;
|
|
4587
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4588
|
+
backdrop-filter: none !important;
|
|
4589
|
+
-webkit-backdrop-filter: none !important;
|
|
4590
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
4591
|
+
}
|
|
4592
|
+
|
|
4593
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4594
|
+
grid-column: 2 !important;
|
|
4595
|
+
grid-row: 1 / -1 !important;
|
|
4596
|
+
position: absolute !important;
|
|
4597
|
+
top: 0 !important;
|
|
4598
|
+
left: 0 !important;
|
|
4599
|
+
right: 12px !important;
|
|
4600
|
+
margin: 0 !important;
|
|
4601
|
+
height: 56px !important;
|
|
4602
|
+
min-height: 56px !important;
|
|
4603
|
+
box-sizing: border-box !important;
|
|
4604
|
+
padding: 0 32px !important;
|
|
4605
|
+
border: none !important;
|
|
4606
|
+
border-radius: 0 !important;
|
|
4607
|
+
background: transparent !important;
|
|
4608
|
+
display: flex !important;
|
|
4609
|
+
align-items: center !important;
|
|
4610
|
+
justify-content: flex-end !important;
|
|
4611
|
+
gap: 12px !important;
|
|
4612
|
+
z-index: 10 !important;
|
|
4613
|
+
pointer-events: none !important;
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] > * {
|
|
4617
|
+
pointer-events: auto !important;
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
html[data-dsh-glass-float] body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"],
|
|
4621
|
+
html[data-dsh-glass-float] html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
4622
|
+
background: transparent !important;
|
|
4623
|
+
border: none !important;
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
4627
|
+
margin: 0 !important;
|
|
4628
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4629
|
+
border-radius: 16px !important;
|
|
4630
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4631
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
4632
|
+
padding-top: calc(56px + 28px) !important;
|
|
4633
|
+
padding-bottom: 48px !important;
|
|
4634
|
+
padding-inline: 36px !important;
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4637
|
+
/* 无论窗口 <=768px 还是处于收起态 [data-sidebar-collapsed],结构尺寸均收敛为 56px 导轨 */
|
|
4638
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed],
|
|
4639
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed],
|
|
4640
|
+
html[data-dsh-glass] [data-shortcut-modal="settings"][data-sidebar-collapsed] {
|
|
4641
|
+
--dcu-settings-nav-width: 56px !important;
|
|
4642
|
+
}
|
|
4643
|
+
|
|
4644
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
|
|
4645
|
+
grid-template-columns: 56px minmax(0, 1fr) !important;
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
/* --- 普通纯色原生模式(未开启云母)下的收起态:与普通展开态完全一致,平铺紧贴,0 外边距、0 圆角、0 磨砂、0 阴影 --- */
|
|
4649
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
|
|
4650
|
+
gap: 0 !important;
|
|
4651
|
+
padding: 0 !important;
|
|
4652
|
+
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
4653
|
+
}
|
|
4654
|
+
|
|
4655
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4656
|
+
grid-column: 1 !important;
|
|
4657
|
+
grid-row: 1 !important;
|
|
4658
|
+
box-sizing: border-box !important;
|
|
4659
|
+
width: 56px !important;
|
|
4660
|
+
min-width: 56px !important;
|
|
4661
|
+
max-width: 56px !important;
|
|
4662
|
+
padding: 14px 0 10px 0 !important;
|
|
4663
|
+
margin: 0 !important;
|
|
4664
|
+
align-items: center !important;
|
|
4665
|
+
justify-content: center !important;
|
|
4666
|
+
border-radius: 0 !important;
|
|
4667
|
+
border: none !important;
|
|
4668
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4669
|
+
border-bottom: none !important;
|
|
4670
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4671
|
+
backdrop-filter: none !important;
|
|
4672
|
+
-webkit-backdrop-filter: none !important;
|
|
4673
|
+
box-shadow: none !important;
|
|
4674
|
+
flex: none !important;
|
|
4675
|
+
}
|
|
4676
|
+
|
|
4677
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed] > nav {
|
|
4678
|
+
box-sizing: border-box !important;
|
|
4679
|
+
width: 56px !important;
|
|
4680
|
+
min-width: 56px !important;
|
|
4681
|
+
max-width: 56px !important;
|
|
4682
|
+
margin: 0 !important;
|
|
4683
|
+
padding: 12px 0 16px !important;
|
|
4684
|
+
border-radius: 0 !important;
|
|
4685
|
+
border: none !important;
|
|
4686
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4687
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4688
|
+
backdrop-filter: none !important;
|
|
4689
|
+
-webkit-backdrop-filter: none !important;
|
|
4690
|
+
box-shadow: none !important;
|
|
4691
|
+
overflow-y: auto !important;
|
|
4692
|
+
overflow-x: hidden !important;
|
|
4693
|
+
scrollbar-width: none !important;
|
|
4694
|
+
-ms-overflow-style: none !important;
|
|
4695
|
+
display: flex !important;
|
|
4696
|
+
flex-direction: column !important;
|
|
4697
|
+
align-items: center !important;
|
|
4698
|
+
gap: 0 !important;
|
|
4699
|
+
}
|
|
4700
|
+
|
|
4701
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
4702
|
+
margin: 0 !important;
|
|
4703
|
+
border-radius: 0 !important;
|
|
4704
|
+
border: none !important;
|
|
4705
|
+
box-shadow: none !important;
|
|
4706
|
+
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
4707
|
+
height: 100% !important;
|
|
4708
|
+
max-height: 100% !important;
|
|
4709
|
+
overflow: hidden !important;
|
|
4710
|
+
display: flex !important;
|
|
4711
|
+
flex-direction: column !important;
|
|
4712
|
+
}
|
|
4713
|
+
|
|
4714
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
4715
|
+
background: transparent !important;
|
|
4716
|
+
border: none !important;
|
|
4717
|
+
border-bottom: none !important;
|
|
4718
|
+
flex: none !important;
|
|
4719
|
+
}
|
|
4720
|
+
|
|
4721
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
4722
|
+
margin: 0 !important;
|
|
4723
|
+
border-radius: 0 !important;
|
|
4724
|
+
border: none !important;
|
|
4725
|
+
box-shadow: none !important;
|
|
4726
|
+
background: transparent !important;
|
|
4727
|
+
overflow-y: auto !important;
|
|
4728
|
+
flex: 1 1 auto !important;
|
|
4729
|
+
min-height: 0 !important;
|
|
4730
|
+
padding-top: 28px !important;
|
|
4731
|
+
padding-bottom: 64px !important;
|
|
4732
|
+
padding-inline: 48px !important;
|
|
4733
|
+
box-sizing: border-box !important;
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
|
|
4737
|
+
margin: 0 !important;
|
|
4738
|
+
border-radius: 0 !important;
|
|
4739
|
+
border: none !important;
|
|
4740
|
+
box-shadow: none !important;
|
|
4741
|
+
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
4742
|
+
overflow-y: auto !important;
|
|
4743
|
+
height: 100% !important;
|
|
4744
|
+
max-height: 100% !important;
|
|
4745
|
+
padding-top: calc(56px + 28px) !important;
|
|
4746
|
+
padding-bottom: 64px !important;
|
|
4747
|
+
padding-inline: 48px !important;
|
|
4748
|
+
box-sizing: border-box !important;
|
|
4749
|
+
}
|
|
4750
|
+
|
|
4751
|
+
/* 浅色普通模式下的收起态高对比度平铺底板 */
|
|
4752
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed] > nav,
|
|
4753
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed] > nav,
|
|
4754
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"],
|
|
4755
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4756
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #f3f3f4)) !important;
|
|
4757
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.08)) !important;
|
|
4758
|
+
}
|
|
4759
|
+
|
|
4760
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
|
|
4761
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav),
|
|
4762
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"],
|
|
4763
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
|
|
4764
|
+
background: var(--dsw-alias-bg-base, #ffffff) !important;
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4767
|
+
/* --- 仅在开启云母悬浮模式(html[data-dsh-glass-float])下,才启用 12px 悬浮双岛、16px 圆角大卡片与磨砂投影 --- */
|
|
4768
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) {
|
|
4769
|
+
grid-template-columns: 56px minmax(0, 1fr) !important;
|
|
4770
|
+
gap: 0 12px !important;
|
|
4771
|
+
padding: 8px 12px 12px 12px !important;
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4774
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
4775
|
+
grid-column: 1 !important;
|
|
4776
|
+
grid-row: 1 !important;
|
|
4777
|
+
box-sizing: border-box !important;
|
|
4778
|
+
width: 56px !important;
|
|
4779
|
+
min-width: 56px !important;
|
|
4780
|
+
max-width: 56px !important;
|
|
4781
|
+
padding: 14px 0 10px 0 !important;
|
|
4782
|
+
margin: 0 !important;
|
|
4783
|
+
align-items: center !important;
|
|
4784
|
+
justify-content: center !important;
|
|
4785
|
+
border-radius: 16px 16px 0 0 !important;
|
|
4786
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4787
|
+
border-bottom: none !important;
|
|
4788
|
+
background: var(--dsh-glass-card, var(--dsw-specific-sidebar-fill, #18181b)) !important;
|
|
4789
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4790
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4791
|
+
flex: none !important;
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4794
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav {
|
|
4795
|
+
box-sizing: border-box !important;
|
|
4796
|
+
width: 56px !important;
|
|
4797
|
+
min-width: 56px !important;
|
|
4798
|
+
max-width: 56px !important;
|
|
4799
|
+
margin: 8px 12px 12px 12px !important;
|
|
4800
|
+
padding: 12px 0 16px !important;
|
|
4801
|
+
border-radius: 16px !important;
|
|
4802
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4803
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
4804
|
+
background: var(--dsh-glass-card, var(--dsw-alias-bg-layer-1)) !important;
|
|
4805
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4806
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4807
|
+
overflow-y: auto !important;
|
|
4808
|
+
overflow-x: hidden !important;
|
|
4809
|
+
scrollbar-width: none !important;
|
|
4810
|
+
-ms-overflow-style: none !important;
|
|
4811
|
+
display: flex !important;
|
|
4812
|
+
flex-direction: column !important;
|
|
4813
|
+
align-items: center !important;
|
|
4814
|
+
gap: 0 !important;
|
|
4815
|
+
}
|
|
4816
|
+
|
|
4817
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > nav {
|
|
4818
|
+
grid-column: 1 !important;
|
|
4819
|
+
grid-row: 2 !important;
|
|
4820
|
+
box-sizing: border-box !important;
|
|
4821
|
+
width: 56px !important;
|
|
4822
|
+
min-width: 56px !important;
|
|
4823
|
+
max-width: 56px !important;
|
|
4824
|
+
height: 100% !important;
|
|
4825
|
+
max-height: 100% !important;
|
|
4826
|
+
margin: 0 !important;
|
|
4827
|
+
padding: 0 0 16px !important;
|
|
4828
|
+
flex: none !important;
|
|
4829
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4830
|
+
border-top: none !important;
|
|
4831
|
+
border-radius: 0 0 16px 16px !important;
|
|
4832
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
4833
|
+
background: var(--dsh-glass-card, var(--dsw-specific-sidebar-fill, #18181b)) !important;
|
|
4834
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4835
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4836
|
+
overflow-y: auto !important;
|
|
4837
|
+
overflow-x: hidden !important;
|
|
4838
|
+
scrollbar-width: none !important;
|
|
4839
|
+
-ms-overflow-style: none !important;
|
|
4840
|
+
display: flex !important;
|
|
4841
|
+
flex-direction: column !important;
|
|
4842
|
+
align-items: center !important;
|
|
4843
|
+
}
|
|
4844
|
+
|
|
4845
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
4846
|
+
margin: 8px 12px 12px 0 !important;
|
|
4847
|
+
border-radius: 16px !important;
|
|
4848
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4849
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
4850
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4851
|
+
overflow-y: auto !important;
|
|
4852
|
+
height: calc(100% - 20px) !important;
|
|
4853
|
+
}
|
|
4854
|
+
|
|
4855
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
|
|
4856
|
+
grid-column: 2 !important;
|
|
4857
|
+
grid-row: 1 / -1 !important;
|
|
4858
|
+
box-sizing: border-box !important;
|
|
4859
|
+
flex: 1 1 auto !important;
|
|
4860
|
+
min-width: 0 !important;
|
|
4861
|
+
min-height: 0 !important;
|
|
4862
|
+
overflow-y: auto !important;
|
|
4863
|
+
padding-top: calc(52px + 20px) !important;
|
|
4864
|
+
padding-bottom: 40px !important;
|
|
4865
|
+
padding-inline: 20px !important;
|
|
4866
|
+
margin: 0 !important;
|
|
4867
|
+
border-radius: 16px !important;
|
|
4868
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4869
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
4870
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4871
|
+
height: 100% !important;
|
|
4872
|
+
max-height: 100% !important;
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4875
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav::-webkit-scrollbar,
|
|
4876
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] [class*="navList"]::-webkit-scrollbar {
|
|
4877
|
+
display: none !important;
|
|
4878
|
+
width: 0 !important;
|
|
4879
|
+
height: 0 !important;
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
/* 旧版嵌套结构下的返回标题栏,平铺 Grid 宿主下不命中了 nav > :first-child,避免把 navList 错误当成标题 */
|
|
4883
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav > :first-child {
|
|
4884
|
+
border: none !important;
|
|
4885
|
+
border-radius: 0 !important;
|
|
4886
|
+
background: transparent !important;
|
|
4887
|
+
box-shadow: none !important;
|
|
4888
|
+
padding: 0 !important;
|
|
4889
|
+
margin: 0 auto 10px auto !important;
|
|
4890
|
+
width: 100% !important;
|
|
4891
|
+
display: flex !important;
|
|
4892
|
+
justify-content: center !important;
|
|
4893
|
+
align-items: center !important;
|
|
4894
|
+
}
|
|
4895
|
+
|
|
4896
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav [class*="navList"],
|
|
4897
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > nav > :nth-child(2) {
|
|
4898
|
+
border: none !important;
|
|
4899
|
+
background: transparent !important;
|
|
4900
|
+
box-shadow: none !important;
|
|
4901
|
+
margin: 0 !important;
|
|
4902
|
+
padding: 0 !important;
|
|
4903
|
+
width: 100% !important;
|
|
4904
|
+
display: flex !important;
|
|
4905
|
+
flex-direction: column !important;
|
|
4906
|
+
align-items: center !important;
|
|
4907
|
+
gap: 4px !important;
|
|
4908
|
+
scrollbar-width: none !important;
|
|
4909
|
+
-ms-overflow-style: none !important;
|
|
4910
|
+
}
|
|
4911
|
+
|
|
4912
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-header-root,
|
|
4913
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-header-top {
|
|
4914
|
+
align-items: center !important;
|
|
4915
|
+
justify-content: center !important;
|
|
4916
|
+
width: 100% !important;
|
|
4917
|
+
max-width: 100% !important;
|
|
4918
|
+
padding: 0 !important;
|
|
4919
|
+
margin: 0 auto !important;
|
|
4920
|
+
gap: 0 !important;
|
|
4921
|
+
}
|
|
4922
|
+
|
|
4923
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-back-btn,
|
|
4924
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] button.dcu-settings-back-btn {
|
|
4925
|
+
margin: 0 auto !important;
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-header-title,
|
|
4929
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-search-wrapper,
|
|
4930
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-group-header,
|
|
4931
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-nav-empty {
|
|
4932
|
+
display: none !important;
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > nav,
|
|
4936
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > nav {
|
|
4937
|
+
grid-column: 1 !important;
|
|
4938
|
+
grid-row: 2 !important;
|
|
4939
|
+
box-sizing: border-box !important;
|
|
4940
|
+
width: 56px !important;
|
|
4941
|
+
min-width: 56px !important;
|
|
4942
|
+
max-width: 56px !important;
|
|
4943
|
+
height: 100% !important;
|
|
4944
|
+
max-height: 100% !important;
|
|
4945
|
+
margin: 0 !important;
|
|
4946
|
+
padding: 0 0 16px !important;
|
|
4947
|
+
flex: none !important;
|
|
4948
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4949
|
+
border-top: none !important;
|
|
4950
|
+
border-radius: 0 0 16px 16px !important;
|
|
4951
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
4952
|
+
background: var(--dsh-glass-card, var(--dsw-specific-sidebar-fill, #18181b)) !important;
|
|
4953
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4954
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
4955
|
+
overflow-y: auto !important;
|
|
4956
|
+
overflow-x: hidden !important;
|
|
4957
|
+
scrollbar-width: none !important;
|
|
4958
|
+
-ms-overflow-style: none !important;
|
|
4959
|
+
display: flex !important;
|
|
4960
|
+
flex-direction: column !important;
|
|
4961
|
+
align-items: center !important;
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4964
|
+
/* 导航项按钮:纯图标居中方块,对齐宿主官方首页折叠 36x36px panelRow,绝对居中无偏移 */
|
|
4965
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav button,
|
|
4966
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] > nav > :nth-child(2) > button,
|
|
4967
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav [class*="navCell"] {
|
|
4968
|
+
box-sizing: border-box !important;
|
|
4969
|
+
width: 36px !important;
|
|
4970
|
+
height: 36px !important;
|
|
4971
|
+
min-width: 36px !important;
|
|
4972
|
+
min-height: 36px !important;
|
|
4973
|
+
max-width: 36px !important;
|
|
4974
|
+
max-height: 36px !important;
|
|
4975
|
+
padding: 0 !important;
|
|
4976
|
+
margin: 2px auto !important;
|
|
4977
|
+
gap: 0 !important;
|
|
4978
|
+
justify-content: center !important;
|
|
4979
|
+
align-items: center !important;
|
|
4980
|
+
text-align: center !important;
|
|
4981
|
+
border-radius: var(--dsw-radius-md, 8px) !important;
|
|
4982
|
+
flex: 0 0 36px !important;
|
|
4983
|
+
}
|
|
4984
|
+
|
|
4985
|
+
/* 仅隐藏设置菜单列表中的文字标签,绝不干涉任何图标的显示规则,100%继承展开态既定图标状态! */
|
|
4986
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav [class*="navList"] button [class*="navLabel"],
|
|
4987
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav button:not(.dcu-settings-back-btn) [class*="navLabel"] {
|
|
4988
|
+
display: none !important;
|
|
4989
|
+
}
|
|
4990
|
+
|
|
4991
|
+
/* 保护并确保返回按钮完整显示,包含其内部由宿主 Button 原语包裹的 span 图标 */
|
|
4992
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-back-btn,
|
|
4993
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] button.dcu-settings-back-btn {
|
|
4994
|
+
display: inline-flex !important;
|
|
4995
|
+
align-items: center !important;
|
|
4996
|
+
justify-content: center !important;
|
|
4997
|
+
width: 32px !important;
|
|
4998
|
+
height: 32px !important;
|
|
4999
|
+
min-width: 32px !important;
|
|
5000
|
+
min-height: 32px !important;
|
|
5001
|
+
margin: 0 auto 6px auto !important;
|
|
5002
|
+
padding: 0 !important;
|
|
5003
|
+
border-radius: var(--dsw-radius-md, 8px) !important;
|
|
5004
|
+
opacity: 1 !important;
|
|
5005
|
+
visibility: visible !important;
|
|
5006
|
+
}
|
|
5007
|
+
|
|
5008
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-back-btn span,
|
|
5009
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] .dcu-settings-back-btn svg {
|
|
5010
|
+
display: inline-flex !important;
|
|
5011
|
+
align-items: center !important;
|
|
5012
|
+
justify-content: center !important;
|
|
5013
|
+
opacity: 1 !important;
|
|
5014
|
+
visibility: visible !important;
|
|
4615
5015
|
}
|
|
4616
5016
|
|
|
4617
|
-
/*
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
padding:
|
|
5017
|
+
/* 无论官方项目还是第三方插件,每个按钮在折叠态均保持唯一的视觉中心,不强行干涉内部已隐藏的备用 svg */
|
|
5018
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav [class*="navList"] button svg,
|
|
5019
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed] nav [class*="navIcon"] svg {
|
|
5020
|
+
margin: 0 !important;
|
|
5021
|
+
padding: 0 !important;
|
|
5022
|
+
width: 18px !important;
|
|
5023
|
+
height: 18px !important;
|
|
5024
|
+
flex: none !important;
|
|
4622
5025
|
}
|
|
4623
5026
|
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
5027
|
+
/* 顶栏操作区(配置文件与关闭按钮):普通模式下透明浮动,无实体白条与下边框,绝不硬切出第二层顶部 */
|
|
5028
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
|
|
5029
|
+
grid-column: 2 !important;
|
|
5030
|
+
grid-row: 1 / -1 !important;
|
|
5031
|
+
position: absolute !important;
|
|
5032
|
+
top: 0 !important;
|
|
5033
|
+
left: 0 !important;
|
|
5034
|
+
right: 0 !important;
|
|
5035
|
+
height: 56px !important;
|
|
5036
|
+
min-height: 56px !important;
|
|
5037
|
+
padding: 0 20px !important;
|
|
5038
|
+
border-radius: 0 !important;
|
|
5039
|
+
border: none !important;
|
|
4632
5040
|
border-bottom: none !important;
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
-webkit-backdrop-filter: none !important;
|
|
4637
|
-
box-shadow: none !important;
|
|
5041
|
+
background: transparent !important;
|
|
5042
|
+
z-index: 10 !important;
|
|
5043
|
+
pointer-events: none !important;
|
|
4638
5044
|
}
|
|
4639
5045
|
|
|
4640
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) >
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
border-right: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4646
|
-
border-left: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4647
|
-
border-bottom: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4648
|
-
border-top: none !important;
|
|
4649
|
-
border-radius: 0 0 16px 16px !important;
|
|
4650
|
-
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
4651
|
-
backdrop-filter: none !important;
|
|
4652
|
-
-webkit-backdrop-filter: none !important;
|
|
4653
|
-
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
5046
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"],
|
|
5047
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
|
|
5048
|
+
background: transparent !important;
|
|
5049
|
+
border: none !important;
|
|
5050
|
+
border-bottom: none !important;
|
|
4654
5051
|
}
|
|
4655
5052
|
|
|
4656
|
-
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="header"] {
|
|
5053
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
|
|
4657
5054
|
grid-column: 2 !important;
|
|
4658
5055
|
grid-row: 1 / -1 !important;
|
|
4659
5056
|
position: absolute !important;
|
|
4660
|
-
top:
|
|
5057
|
+
top: 8px !important;
|
|
4661
5058
|
left: 0 !important;
|
|
4662
5059
|
right: 12px !important;
|
|
4663
|
-
|
|
4664
|
-
height:
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
border: 1px solid var(--dsh-glass-rim-soft, rgba(255, 255, 255, 0.08)) !important;
|
|
4670
|
-
border-bottom: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
4671
|
-
background: var(--dsw-alias-bg-layer-1) !important;
|
|
4672
|
-
display: flex !important;
|
|
4673
|
-
align-items: center !important;
|
|
4674
|
-
justify-content: flex-end !important;
|
|
4675
|
-
gap: 12px !important;
|
|
5060
|
+
height: 52px !important;
|
|
5061
|
+
min-height: 52px !important;
|
|
5062
|
+
padding: 0 20px !important;
|
|
5063
|
+
border: none !important;
|
|
5064
|
+
border-radius: 0 !important;
|
|
5065
|
+
background: transparent !important;
|
|
4676
5066
|
z-index: 10 !important;
|
|
5067
|
+
pointer-events: none !important;
|
|
4677
5068
|
}
|
|
4678
5069
|
|
|
4679
|
-
html[data-dsh-glass-float]
|
|
4680
|
-
|
|
4681
|
-
|
|
5070
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] > * {
|
|
5071
|
+
pointer-events: auto !important;
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
5075
|
+
margin: 8px 12px 12px 0 !important;
|
|
5076
|
+
border-radius: 16px !important;
|
|
4682
5077
|
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4683
|
-
|
|
5078
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
5079
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
5080
|
+
overflow-y: auto !important;
|
|
5081
|
+
height: calc(100% - 20px) !important;
|
|
4684
5082
|
}
|
|
4685
5083
|
|
|
4686
|
-
|
|
5084
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"],
|
|
5085
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="options"] {
|
|
5086
|
+
grid-column: 2 !important;
|
|
5087
|
+
grid-row: 1 / -1 !important;
|
|
5088
|
+
box-sizing: border-box !important;
|
|
5089
|
+
flex: 1 1 auto !important;
|
|
5090
|
+
min-width: 0 !important;
|
|
5091
|
+
min-height: 0 !important;
|
|
5092
|
+
overflow-y: auto !important;
|
|
5093
|
+
padding-top: calc(52px + 20px) !important;
|
|
5094
|
+
padding-bottom: 40px !important;
|
|
5095
|
+
padding-inline: 20px !important;
|
|
4687
5096
|
margin: 0 !important;
|
|
4688
|
-
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4689
5097
|
border-radius: 16px !important;
|
|
4690
|
-
|
|
5098
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
4691
5099
|
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
5100
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
5101
|
+
height: 100% !important;
|
|
5102
|
+
max-height: 100% !important;
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
/* 移动端与极窄视口响应式规范:对齐宿主官方首页 56px 图标导轨(Icon Rail)模式 */
|
|
5106
|
+
@media (max-width: 768px) {
|
|
5107
|
+
body > [role="presentation"]:has(> [data-shortcut-modal="settings"]) {
|
|
5108
|
+
padding: 0 !important;
|
|
5109
|
+
}
|
|
5110
|
+
|
|
5111
|
+
/* 强行压制 JS 写入的行内 --dcu-settings-nav-width 变量,并将所有云母/经典模式的基准锁死为 56px */
|
|
5112
|
+
[data-shortcut-modal="settings"],
|
|
5113
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"],
|
|
5114
|
+
html[data-dsh-glass] [data-shortcut-modal="settings"] {
|
|
5115
|
+
--dcu-settings-nav-width: 56px !important;
|
|
5116
|
+
position: fixed !important;
|
|
5117
|
+
inset: 0 !important;
|
|
5118
|
+
width: 100vw !important;
|
|
5119
|
+
height: 100vh !important;
|
|
5120
|
+
max-width: none !important;
|
|
5121
|
+
max-height: none !important;
|
|
5122
|
+
border-radius: 0 !important;
|
|
5123
|
+
border: none !important;
|
|
5124
|
+
display: flex !important;
|
|
5125
|
+
flex-direction: row !important;
|
|
5126
|
+
padding-top: env(safe-area-inset-top, 0px) !important;
|
|
5127
|
+
padding-bottom: env(safe-area-inset-bottom, 0px) !important;
|
|
5128
|
+
padding-left: env(safe-area-inset-left, 0px) !important;
|
|
5129
|
+
padding-right: env(safe-area-inset-right, 0px) !important;
|
|
5130
|
+
box-sizing: border-box !important;
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
/* 4 块 Grid 布局映射:普通模式紧贴平铺,仅在云母模式下启用悬浮双岛与外层边距 */
|
|
5134
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
5135
|
+
display: grid !important;
|
|
5136
|
+
grid-template-columns: 56px minmax(0, 1fr) !important;
|
|
5137
|
+
grid-template-rows: auto minmax(0, 1fr) !important;
|
|
5138
|
+
position: fixed !important;
|
|
5139
|
+
inset: 0 !important;
|
|
5140
|
+
gap: 0 !important;
|
|
5141
|
+
padding: 0 !important;
|
|
5142
|
+
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]),
|
|
5146
|
+
html[data-dsh-glass] [data-shortcut-modal="settings"]:has(> [class*="options"]) {
|
|
5147
|
+
display: grid !important;
|
|
5148
|
+
grid-template-columns: 56px minmax(0, 1fr) !important;
|
|
5149
|
+
grid-template-rows: auto minmax(0, 1fr) !important;
|
|
5150
|
+
position: fixed !important;
|
|
5151
|
+
inset: 0 !important;
|
|
5152
|
+
gap: 0 12px !important;
|
|
5153
|
+
padding: 8px 12px 12px 12px !important;
|
|
5154
|
+
}
|
|
5155
|
+
|
|
5156
|
+
/* 左侧顶部区:普通模式下平铺实色无圆角,云母模式下为圆角磨砂卡片 */
|
|
5157
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
5158
|
+
grid-column: 1 !important;
|
|
5159
|
+
grid-row: 1 !important;
|
|
5160
|
+
box-sizing: border-box !important;
|
|
5161
|
+
width: 56px !important;
|
|
5162
|
+
min-width: 56px !important;
|
|
5163
|
+
max-width: 56px !important;
|
|
5164
|
+
padding: 14px 0 10px 0 !important;
|
|
5165
|
+
margin: 0 !important;
|
|
5166
|
+
align-items: center !important;
|
|
5167
|
+
justify-content: center !important;
|
|
5168
|
+
border-radius: 0 !important;
|
|
5169
|
+
border: none !important;
|
|
5170
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
5171
|
+
border-bottom: none !important;
|
|
5172
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
5173
|
+
backdrop-filter: none !important;
|
|
5174
|
+
-webkit-backdrop-filter: none !important;
|
|
5175
|
+
box-shadow: none !important;
|
|
5176
|
+
flex: none !important;
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="navTitle"] {
|
|
5180
|
+
grid-column: 1 !important;
|
|
5181
|
+
grid-row: 1 !important;
|
|
5182
|
+
box-sizing: border-box !important;
|
|
5183
|
+
width: 56px !important;
|
|
5184
|
+
min-width: 56px !important;
|
|
5185
|
+
max-width: 56px !important;
|
|
5186
|
+
padding: 14px 0 10px 0 !important;
|
|
5187
|
+
margin: 0 !important;
|
|
5188
|
+
align-items: center !important;
|
|
5189
|
+
justify-content: center !important;
|
|
5190
|
+
border-radius: 16px 16px 0 0 !important;
|
|
5191
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
5192
|
+
border-bottom: none !important;
|
|
5193
|
+
background: var(--dsh-glass-card, var(--dsw-specific-sidebar-fill, #18181b)) !important;
|
|
5194
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
5195
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
5196
|
+
flex: none !important;
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
/* 旧版嵌套宿主在 <=768px 下的 nav 单岛体系,与折叠块完全对齐 */
|
|
5200
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav,
|
|
5201
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
|
|
5202
|
+
box-sizing: border-box !important;
|
|
5203
|
+
width: 56px !important;
|
|
5204
|
+
min-width: 56px !important;
|
|
5205
|
+
max-width: 56px !important;
|
|
5206
|
+
margin: 8px 12px 12px 12px !important;
|
|
5207
|
+
padding: 12px 0 16px !important;
|
|
5208
|
+
border-radius: 16px !important;
|
|
5209
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
5210
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
5211
|
+
background: var(--dsh-glass-card, var(--dsw-alias-bg-layer-1)) !important;
|
|
5212
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
5213
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
5214
|
+
overflow-y: auto !important;
|
|
5215
|
+
overflow-x: hidden !important;
|
|
5216
|
+
scrollbar-width: none !important;
|
|
5217
|
+
-ms-overflow-style: none !important;
|
|
5218
|
+
display: flex !important;
|
|
5219
|
+
flex-direction: column !important;
|
|
5220
|
+
align-items: center !important;
|
|
5221
|
+
gap: 0 !important;
|
|
5222
|
+
}
|
|
5223
|
+
|
|
5224
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav > :first-child {
|
|
5225
|
+
border: none !important;
|
|
5226
|
+
border-radius: 0 !important;
|
|
5227
|
+
background: transparent !important;
|
|
5228
|
+
box-shadow: none !important;
|
|
5229
|
+
padding: 0 !important;
|
|
5230
|
+
margin: 0 auto 10px auto !important;
|
|
5231
|
+
width: 100% !important;
|
|
5232
|
+
display: flex !important;
|
|
5233
|
+
justify-content: center !important;
|
|
5234
|
+
align-items: center !important;
|
|
5235
|
+
}
|
|
5236
|
+
|
|
5237
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav [class*="navList"],
|
|
5238
|
+
[data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav > :nth-child(2) {
|
|
5239
|
+
border: none !important;
|
|
5240
|
+
background: transparent !important;
|
|
5241
|
+
box-shadow: none !important;
|
|
5242
|
+
margin: 0 !important;
|
|
5243
|
+
padding: 0 !important;
|
|
5244
|
+
width: 100% !important;
|
|
5245
|
+
display: flex !important;
|
|
5246
|
+
flex-direction: column !important;
|
|
5247
|
+
align-items: center !important;
|
|
5248
|
+
gap: 4px !important;
|
|
5249
|
+
scrollbar-width: none !important;
|
|
5250
|
+
-ms-overflow-style: none !important;
|
|
5251
|
+
}
|
|
5252
|
+
|
|
5253
|
+
.dcu-settings-nav-header-root {
|
|
5254
|
+
align-items: center !important;
|
|
5255
|
+
justify-content: center !important;
|
|
5256
|
+
width: 56px !important;
|
|
5257
|
+
max-width: 56px !important;
|
|
5258
|
+
}
|
|
5259
|
+
|
|
5260
|
+
.dcu-settings-nav-header-top {
|
|
5261
|
+
justify-content: center !important;
|
|
5262
|
+
padding: 0 !important;
|
|
5263
|
+
width: 56px !important;
|
|
5264
|
+
max-width: 56px !important;
|
|
5265
|
+
}
|
|
5266
|
+
|
|
5267
|
+
.dcu-settings-nav-header-title,
|
|
5268
|
+
.dcu-settings-search-wrapper,
|
|
5269
|
+
.dcu-settings-nav-group-header,
|
|
5270
|
+
.dcu-settings-nav-empty {
|
|
5271
|
+
display: none !important;
|
|
5272
|
+
}
|
|
5273
|
+
|
|
5274
|
+
/* 左侧导航栏:普通模式下平铺实色无圆角无投影,云母模式下完整对齐首页云母磨砂圆角与下投影 */
|
|
5275
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"] > nav,
|
|
5276
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav {
|
|
5277
|
+
grid-column: 1 !important;
|
|
5278
|
+
grid-row: 2 !important;
|
|
5279
|
+
box-sizing: border-box !important;
|
|
5280
|
+
width: 56px !important;
|
|
5281
|
+
min-width: 56px !important;
|
|
5282
|
+
max-width: 56px !important;
|
|
5283
|
+
height: 100% !important;
|
|
5284
|
+
max-height: 100% !important;
|
|
5285
|
+
margin: 0 !important;
|
|
5286
|
+
padding: 0 0 16px !important;
|
|
5287
|
+
flex: none !important;
|
|
5288
|
+
border: none !important;
|
|
5289
|
+
border-right: 1px solid var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)) !important;
|
|
5290
|
+
border-radius: 0 !important;
|
|
5291
|
+
box-shadow: none !important;
|
|
5292
|
+
background: var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-layer-1, #18181b)) !important;
|
|
5293
|
+
backdrop-filter: none !important;
|
|
5294
|
+
-webkit-backdrop-filter: none !important;
|
|
5295
|
+
overflow-y: auto !important;
|
|
5296
|
+
overflow-x: hidden !important;
|
|
5297
|
+
scrollbar-width: none !important;
|
|
5298
|
+
-ms-overflow-style: none !important;
|
|
5299
|
+
display: flex !important;
|
|
5300
|
+
flex-direction: column !important;
|
|
5301
|
+
align-items: center !important;
|
|
5302
|
+
}
|
|
5303
|
+
|
|
5304
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"] > nav,
|
|
5305
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > nav,
|
|
5306
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > nav {
|
|
5307
|
+
grid-column: 1 !important;
|
|
5308
|
+
grid-row: 2 !important;
|
|
5309
|
+
box-sizing: border-box !important;
|
|
5310
|
+
width: 56px !important;
|
|
5311
|
+
min-width: 56px !important;
|
|
5312
|
+
max-width: 56px !important;
|
|
5313
|
+
height: 100% !important;
|
|
5314
|
+
max-height: 100% !important;
|
|
5315
|
+
margin: 0 !important;
|
|
5316
|
+
padding: 0 8px 16px !important;
|
|
5317
|
+
flex: none !important;
|
|
5318
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
5319
|
+
border-top: none !important;
|
|
5320
|
+
border-radius: 0 0 16px 16px !important;
|
|
5321
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
|
|
5322
|
+
background: var(--dsh-glass-card, var(--dsw-specific-sidebar-fill, #18181b)) !important;
|
|
5323
|
+
backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
5324
|
+
-webkit-backdrop-filter: blur(var(--dsh-glass-blur, 16px)) !important;
|
|
5325
|
+
overflow-y: auto !important;
|
|
5326
|
+
overflow-x: hidden !important;
|
|
5327
|
+
scrollbar-width: none !important;
|
|
5328
|
+
-ms-overflow-style: none !important;
|
|
5329
|
+
}
|
|
5330
|
+
|
|
5331
|
+
[data-shortcut-modal="settings"] nav::-webkit-scrollbar,
|
|
5332
|
+
[data-shortcut-modal="settings"] [class*="navList"]::-webkit-scrollbar {
|
|
5333
|
+
display: none !important;
|
|
5334
|
+
width: 0 !important;
|
|
5335
|
+
height: 0 !important;
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
/* 导航项按钮:纯图标正方形居中卡片,尺寸统一为 36x36px 图标导轨 */
|
|
5339
|
+
[data-shortcut-modal="settings"] nav button,
|
|
5340
|
+
[data-shortcut-modal="settings"] > nav > :nth-child(2) > button,
|
|
5341
|
+
[data-shortcut-modal="settings"] nav [class*="navCell"] {
|
|
5342
|
+
width: 36px !important;
|
|
5343
|
+
height: 36px !important;
|
|
5344
|
+
min-width: 36px !important;
|
|
5345
|
+
min-height: 36px !important;
|
|
5346
|
+
max-width: 36px !important;
|
|
5347
|
+
max-height: 36px !important;
|
|
5348
|
+
padding: 0 !important;
|
|
5349
|
+
margin: 2px auto !important;
|
|
5350
|
+
justify-content: center !important;
|
|
5351
|
+
align-items: center !important;
|
|
5352
|
+
border-radius: var(--dsw-radius-md, 8px) !important;
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5355
|
+
/* 隐藏菜单项文字标签,保留居中图标,保护返回按钮 */
|
|
5356
|
+
[data-shortcut-modal="settings"] nav [class*="navList"] button [class*="navLabel"],
|
|
5357
|
+
[data-shortcut-modal="settings"] nav button:not(.dcu-settings-back-btn) [class*="navLabel"] {
|
|
5358
|
+
display: none !important;
|
|
5359
|
+
}
|
|
5360
|
+
|
|
5361
|
+
/* 移动端媒体查询下同样仅隐藏文字,不干涉图标 */
|
|
5362
|
+
[data-shortcut-modal="settings"] nav [class*="navList"] button svg,
|
|
5363
|
+
[data-shortcut-modal="settings"] nav [class*="navIcon"] svg {
|
|
5364
|
+
margin: 0 !important;
|
|
5365
|
+
width: 18px !important;
|
|
5366
|
+
height: 18px !important;
|
|
5367
|
+
}
|
|
5368
|
+
|
|
5369
|
+
/* 顶部操作区(配置文件与关闭按钮):对齐首页悬浮大卡片的 52px 顶栏,左边缘与右侧卡片完全对齐 */
|
|
5370
|
+
[data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"],
|
|
5371
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] {
|
|
5372
|
+
grid-column: 2 !important;
|
|
5373
|
+
grid-row: 1 / -1 !important;
|
|
5374
|
+
position: absolute !important;
|
|
5375
|
+
top: 8px !important;
|
|
5376
|
+
left: 0 !important;
|
|
5377
|
+
right: 12px !important;
|
|
5378
|
+
height: 52px !important;
|
|
5379
|
+
min-height: 52px !important;
|
|
5380
|
+
padding: 0 20px !important;
|
|
5381
|
+
border: none !important;
|
|
5382
|
+
border-radius: 0 !important;
|
|
5383
|
+
background: transparent !important;
|
|
5384
|
+
z-index: 10 !important;
|
|
5385
|
+
pointer-events: none !important;
|
|
5386
|
+
}
|
|
5387
|
+
|
|
5388
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"][data-sidebar-collapsed]:has(> [class*="options"]) > [class*="header"] > * {
|
|
5389
|
+
pointer-events: auto !important;
|
|
5390
|
+
}
|
|
5391
|
+
|
|
5392
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
5393
|
+
margin: 0 !important;
|
|
5394
|
+
border-radius: 0 !important;
|
|
5395
|
+
border: none !important;
|
|
5396
|
+
box-shadow: none !important;
|
|
5397
|
+
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
5398
|
+
height: 100% !important;
|
|
5399
|
+
max-height: 100% !important;
|
|
5400
|
+
overflow: hidden !important;
|
|
5401
|
+
display: flex !important;
|
|
5402
|
+
flex-direction: column !important;
|
|
5403
|
+
}
|
|
5404
|
+
|
|
5405
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :first-child {
|
|
5406
|
+
background: transparent !important;
|
|
5407
|
+
border: none !important;
|
|
5408
|
+
border-bottom: none !important;
|
|
5409
|
+
flex: none !important;
|
|
5410
|
+
}
|
|
5411
|
+
|
|
5412
|
+
/* 右侧设置内容区:普通模式平铺紧贴,云母模式下复刻首页右侧 16px 圆角大卡片独立悬浮岛 */
|
|
5413
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) > :nth-child(2) {
|
|
5414
|
+
margin: 0 !important;
|
|
5415
|
+
border-radius: 0 !important;
|
|
5416
|
+
border: none !important;
|
|
5417
|
+
box-shadow: none !important;
|
|
5418
|
+
background: transparent !important;
|
|
5419
|
+
overflow-y: auto !important;
|
|
5420
|
+
flex: 1 1 auto !important;
|
|
5421
|
+
min-height: 0 !important;
|
|
5422
|
+
padding-top: 28px !important;
|
|
5423
|
+
padding-bottom: 40px !important;
|
|
5424
|
+
padding-inline: 20px !important;
|
|
5425
|
+
box-sizing: border-box !important;
|
|
5426
|
+
}
|
|
5427
|
+
|
|
5428
|
+
html:not([data-dsh-glass-float]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
5429
|
+
margin: 0 !important;
|
|
5430
|
+
border-radius: 0 !important;
|
|
5431
|
+
border: none !important;
|
|
5432
|
+
box-shadow: none !important;
|
|
5433
|
+
background: var(--dsw-alias-bg-base, #151517) !important;
|
|
5434
|
+
overflow-y: auto !important;
|
|
5435
|
+
height: 100% !important;
|
|
5436
|
+
max-height: 100% !important;
|
|
5437
|
+
padding-top: calc(56px + 28px) !important;
|
|
5438
|
+
padding-bottom: 40px !important;
|
|
5439
|
+
padding-inline: 20px !important;
|
|
5440
|
+
box-sizing: border-box !important;
|
|
5441
|
+
}
|
|
5442
|
+
|
|
5443
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
|
|
5444
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav),
|
|
5445
|
+
html:not([data-dsh-glass-float]) body:not([data-ds-dark-theme]) [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
|
|
5446
|
+
html:not([data-dsh-glass-float]) html[data-ds-theme-source="light"] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
5447
|
+
background: var(--dsw-alias-bg-base, #ffffff) !important;
|
|
5448
|
+
}
|
|
5449
|
+
|
|
5450
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:not(:has(> [class*="options"])) > div:not(nav) {
|
|
5451
|
+
margin: 8px 12px 12px 0 !important;
|
|
5452
|
+
border-radius: 16px !important;
|
|
5453
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
5454
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
5455
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
5456
|
+
overflow-y: auto !important;
|
|
5457
|
+
height: calc(100% - 20px) !important;
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
[data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"],
|
|
5461
|
+
html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="options"]) > [class*="options"] {
|
|
5462
|
+
grid-column: 2 !important;
|
|
5463
|
+
grid-row: 1 / -1 !important;
|
|
5464
|
+
box-sizing: border-box !important;
|
|
5465
|
+
flex: 1 1 auto !important;
|
|
5466
|
+
min-width: 0 !important;
|
|
5467
|
+
min-height: 0 !important;
|
|
5468
|
+
overflow-y: auto !important;
|
|
5469
|
+
padding-top: calc(52px + 20px) !important;
|
|
5470
|
+
padding-bottom: 40px !important;
|
|
5471
|
+
padding-inline: 20px !important;
|
|
5472
|
+
margin: 0 !important;
|
|
5473
|
+
border-radius: 16px !important;
|
|
5474
|
+
border: 1px solid var(--dsh-glass-rim-soft, rgba(0, 0, 0, 0.08)) !important;
|
|
5475
|
+
box-shadow: var(--dsh-glass-drop, 0 8px 24px rgba(0, 0, 0, 0.08)), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
|
|
5476
|
+
background: var(--dsw-alias-bg-layer-1) !important;
|
|
5477
|
+
height: 100% !important;
|
|
5478
|
+
max-height: 100% !important;
|
|
5479
|
+
}
|
|
5480
|
+
|
|
5481
|
+
[data-shortcut-modal="settings"] [class*="section"],
|
|
5482
|
+
[data-shortcut-modal="settings"] [class*="card"] {
|
|
5483
|
+
width: 100% !important;
|
|
5484
|
+
max-width: 100% !important;
|
|
5485
|
+
}
|
|
4695
5486
|
}
|
|
4696
5487
|
`;
|
|
4697
5488
|
let lastSkinCheckTime = 0;
|
|
@@ -4722,9 +5513,12 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="optio
|
|
|
4722
5513
|
/** 注入 Codex 1:1 设置皮肤样式 */
|
|
4723
5514
|
function installSettingsSkin(doc = document) {
|
|
4724
5515
|
const existing = doc.getElementById(SETTINGS_SKIN_STYLE_ID);
|
|
4725
|
-
if (existing !== null)
|
|
4726
|
-
existing.
|
|
4727
|
-
|
|
5516
|
+
if (existing !== null) {
|
|
5517
|
+
if (existing.textContent !== SETTINGS_SKIN_CSS) existing.textContent = SETTINGS_SKIN_CSS;
|
|
5518
|
+
return () => {
|
|
5519
|
+
existing.remove();
|
|
5520
|
+
};
|
|
5521
|
+
}
|
|
4728
5522
|
const style = doc.createElement("style");
|
|
4729
5523
|
style.id = SETTINGS_SKIN_STYLE_ID;
|
|
4730
5524
|
style.textContent = SETTINGS_SKIN_CSS;
|
|
@@ -4777,12 +5571,31 @@ html[data-dsh-glass-float] [data-shortcut-modal="settings"]:has(> [class*="optio
|
|
|
4777
5571
|
} catch {}
|
|
4778
5572
|
return 280;
|
|
4779
5573
|
}
|
|
5574
|
+
/** 探测宿主首页侧栏是否处于折叠状态(56px 导轨或窄屏自动收起) */
|
|
5575
|
+
function isHostSidebarCollapsed(doc = document) {
|
|
5576
|
+
if (!doc) return false;
|
|
5577
|
+
try {
|
|
5578
|
+
if (doc.querySelector("[data-sidebar-collapsed=\"true\"], [data-sidebar-collapsed]") !== null) return true;
|
|
5579
|
+
const sidebarEl = doc.querySelector("[data-slot=\"sidebar\"]") ?? doc.querySelector("div[class*=\"sidebarCol\"]") ?? doc.querySelector("div[class*=\"hHd-Xa_root\"]");
|
|
5580
|
+
if (sidebarEl) {
|
|
5581
|
+
const measured = sidebarEl.getBoundingClientRect?.().width;
|
|
5582
|
+
if (typeof measured === "number" && Number.isFinite(measured) && measured > 0 && measured <= 64) return true;
|
|
5583
|
+
}
|
|
5584
|
+
} catch {}
|
|
5585
|
+
return false;
|
|
5586
|
+
}
|
|
4780
5587
|
/**
|
|
4781
5588
|
* 对宿主动态生成的菜单按钮执行无侵入的已知项分组与搜索过滤
|
|
4782
5589
|
*/
|
|
4783
5590
|
function decorateSettingsNav(panelEl) {
|
|
4784
|
-
|
|
4785
|
-
|
|
5591
|
+
if (isHostSidebarCollapsed(panelEl.ownerDocument || document)) {
|
|
5592
|
+
panelEl.setAttribute("data-sidebar-collapsed", "true");
|
|
5593
|
+
panelEl.style.setProperty("--dcu-settings-nav-width", "56px");
|
|
5594
|
+
} else {
|
|
5595
|
+
panelEl.removeAttribute("data-sidebar-collapsed");
|
|
5596
|
+
const sidebarWidth = getHostSidebarExpandedWidth(panelEl.ownerDocument || document);
|
|
5597
|
+
panelEl.style.setProperty("--dcu-settings-nav-width", `${sidebarWidth}px`);
|
|
5598
|
+
}
|
|
4786
5599
|
const navHeader = panelEl.querySelector(":scope > [class*=\"navTitle\"]") ?? panelEl.querySelector("nav > :first-child");
|
|
4787
5600
|
const navList = panelEl.querySelector("nav [class*=\"navList\"]") ?? panelEl.querySelector("nav > :nth-child(2)") ?? panelEl.querySelector("nav > :first-child");
|
|
4788
5601
|
if (!navList) return () => {};
|
|
@@ -7804,7 +8617,18 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
|
|
|
7804
8617
|
let lastAlignKey = "";
|
|
7805
8618
|
/** 把标题按分区顺序放到各自第一个分组块前面;空分区贴着下一个分区显示。 */
|
|
7806
8619
|
function placeHeaders(blocks, layoutState = state) {
|
|
7807
|
-
if (blocks.length === 0)
|
|
8620
|
+
if (blocks.length === 0) {
|
|
8621
|
+
const stalePinned = headers.get(PINNED_SECTION_ID);
|
|
8622
|
+
if (stalePinned !== void 0) {
|
|
8623
|
+
stalePinned.remove();
|
|
8624
|
+
headers.delete(PINNED_SECTION_ID);
|
|
8625
|
+
if (collapsed["pinned"] === true) {
|
|
8626
|
+
delete collapsed[PINNED_SECTION_ID];
|
|
8627
|
+
persistCollapsed();
|
|
8628
|
+
}
|
|
8629
|
+
}
|
|
8630
|
+
return;
|
|
8631
|
+
}
|
|
7808
8632
|
const target = blocks[0].block.parentElement;
|
|
7809
8633
|
if (target === null) return;
|
|
7810
8634
|
const ungrouped = Array.from(list?.querySelectorAll("[data-row-key=\"workspace:\"]") ?? []).map((row) => row instanceof HTMLElement ? blockOf(row, list) : null).find((block) => block !== null);
|
|
@@ -7815,6 +8639,18 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
|
|
|
7815
8639
|
const first = section.ids.map((id) => byId.get(id)).find((block) => block !== void 0);
|
|
7816
8640
|
if (first !== void 0) reference = first;
|
|
7817
8641
|
else if (section.id === "default" && ungrouped !== void 0) reference = ungrouped;
|
|
8642
|
+
if (section.id === "pinned" && section.ids.length === 0) {
|
|
8643
|
+
const stale = headers.get(PINNED_SECTION_ID);
|
|
8644
|
+
if (stale !== void 0) {
|
|
8645
|
+
stale.remove();
|
|
8646
|
+
headers.delete(PINNED_SECTION_ID);
|
|
8647
|
+
if (collapsed["pinned"] === true) {
|
|
8648
|
+
delete collapsed[PINNED_SECTION_ID];
|
|
8649
|
+
persistCollapsed();
|
|
8650
|
+
}
|
|
8651
|
+
}
|
|
8652
|
+
continue;
|
|
8653
|
+
}
|
|
7818
8654
|
const header = ensureHeader(section.id, section.name);
|
|
7819
8655
|
if (header.parentElement !== target || header.nextElementSibling !== reference) target.insertBefore(header, reference);
|
|
7820
8656
|
reference = header;
|
|
@@ -7840,7 +8676,7 @@ body[data-dcu-drag-blocked='true'] [class*="dropAfter"]::after{display:none !imp
|
|
|
7840
8676
|
}
|
|
7841
8677
|
const alignKey = `${headers.size}:${list?.clientWidth ?? 0}`;
|
|
7842
8678
|
const label = document.querySelector("[class*=\"sectionLabel\"]");
|
|
7843
|
-
const firstHeader = headers.get(
|
|
8679
|
+
const firstHeader = layoutState.sections.map((section) => headers.get(section.id)).find((header) => header !== void 0);
|
|
7844
8680
|
if (label !== null && firstHeader !== void 0 && alignKey !== lastAlignKey) {
|
|
7845
8681
|
lastAlignKey = alignKey;
|
|
7846
8682
|
const lead = Math.max(0, Math.round(label.getBoundingClientRect().left - firstHeader.getBoundingClientRect().left));
|