@weitc/dfy-awesome-sidebar 0.0.0-stage → 1.0.2
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 +4540 -0
- package/FEASIBILITY.md +250 -0
- package/INSTALL.md +93 -0
- package/LICENSE +43 -0
- package/README.md +170 -2
- package/assets/backgrounds/sidebar-default.jpg +0 -0
- package/assets/eggs/325/avatar.png +0 -0
- package/assets/eggs/325/baka-65-105-40s.webm +0 -0
- package/assets/eggs/325/stage.jpg +0 -0
- package/assets/eggs/347/avatar.png +0 -0
- package/assets/eggs/347/stage.jpg +0 -0
- package/assets/eggs/347/track-10-50-40s.webm +0 -0
- package/assets/themes/glass/actions-frame.css +90 -0
- package/assets/themes/glass/brand-frame.css +64 -0
- package/assets/themes/glass/footer-frame.css +111 -0
- package/assets/themes/glass/header-frame.css +285 -0
- package/assets/themes/glass/options-frame.css +129 -0
- package/assets/themes/glass/sidebar-outer.css +66 -0
- package/assets/themes/glass/topbar-frame.css +91 -0
- package/assets/themes/metal/actions-frame.css +90 -0
- package/assets/themes/metal/brand-frame.css +64 -0
- package/assets/themes/metal/footer-frame.css +111 -0
- package/assets/themes/metal/header-frame.css +300 -0
- package/assets/themes/metal/options-frame.css +129 -0
- package/assets/themes/metal/sidebar-outer.css +66 -0
- package/assets/themes/metal/topbar-frame.css +91 -0
- package/assets/themes/minimal/actions-frame.css +90 -0
- package/assets/themes/minimal/brand-frame.css +64 -0
- package/assets/themes/minimal/footer-frame.css +115 -0
- package/assets/themes/minimal/header-frame.css +271 -0
- package/assets/themes/minimal/options-frame.css +129 -0
- package/assets/themes/minimal/sidebar-outer.css +66 -0
- package/assets/themes/minimal/topbar-frame.css +91 -0
- package/assets/themes/neon/actions-frame.css +90 -0
- package/assets/themes/neon/brand-frame.css +64 -0
- package/assets/themes/neon/footer-frame.css +111 -0
- package/assets/themes/neon/header-frame.css +286 -0
- package/assets/themes/neon/options-frame.css +129 -0
- package/assets/themes/neon/sidebar-outer.css +66 -0
- package/assets/themes/neon/topbar-frame.css +91 -0
- package/assets/themes/ocean/actions-frame.css +90 -0
- package/assets/themes/ocean/brand-frame.css +64 -0
- package/assets/themes/ocean/footer-frame.css +111 -0
- package/assets/themes/ocean/header-frame.css +287 -0
- package/assets/themes/ocean/options-frame.css +129 -0
- package/assets/themes/ocean/sidebar-outer.css +66 -0
- package/assets/themes/ocean/topbar-frame.css +91 -0
- package/assets/themes/oldday/actions-frame.css +90 -0
- package/assets/themes/oldday/brand-frame.css +43 -0
- package/assets/themes/oldday/footer-frame.css +116 -0
- package/assets/themes/oldday/header-frame.css +142 -0
- package/assets/themes/oldday/options-frame.css +129 -0
- package/assets/themes/oldday/sidebar-outer.css +69 -0
- package/assets/themes/oldday/topbar-frame.css +91 -0
- package/assets/themes/pop/actions-frame.css +3 -0
- package/assets/themes/pop/brand-frame.css +3 -0
- package/assets/themes/pop/footer-frame.css +3 -0
- package/assets/themes/pop/header-frame.css +289 -0
- package/assets/themes/pop/options-frame.css +3 -0
- package/assets/themes/pop/pop-dust.css +37 -0
- package/assets/themes/pop/sidebar-outer.css +3 -0
- package/assets/themes/pop/topbar-frame.css +3 -0
- package/assets/themes/vaporwave/actions-frame.css +3 -0
- package/assets/themes/vaporwave/brand-frame.css +3 -0
- package/assets/themes/vaporwave/footer-frame.css +3 -0
- package/assets/themes/vaporwave/header-frame.css +436 -0
- package/assets/themes/vaporwave/options-frame.css +3 -0
- package/assets/themes/vaporwave/sidebar-outer.css +3 -0
- package/assets/themes/vaporwave/topbar-frame.css +3 -0
- package/assets/themes/vaporwave/vapor-dust.css +40 -0
- package/client.js +8116 -0
- package/cordis.patch.yml +6 -0
- package/docs/ACCEPTANCE-/345/244/264/345/203/217/351/242/204/350/247/210-20261201.md +42 -0
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/pin-compare.png +0 -0
- package/docs/pin-modes.png +0 -0
- package/docs/preview.svg +84 -0
- package/docs/shot-fix7.png +0 -0
- package/docs/shot-frame-ocean.png +0 -0
- package/docs/shot-metal.png +0 -0
- package/docs/shot-stars.png +0 -0
- package/docs/shot-zones.png +0 -0
- package/icon.svg +5 -0
- package/index.js +2050 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +58 -3
- package/pin.ps1 +172 -0
- package/rollback.ps1 +196 -0
- package/tools/__pycache__/pack-release.cpython-312.pyc +0 -0
- package/tools/_slice.txt +9 -0
- package/tools/boot.cjs +16 -0
- package/tools/build-frame-css.cjs +33 -0
- package/tools/check-docs.ps1 +41 -0
- package/tools/check-names.ps1 +35 -0
- package/tools/extract.cjs +28 -0
- package/tools/find-in-asar.cjs +43 -0
- package/tools/list-dir.cjs +21 -0
- package/tools/list-pkgs.cjs +10 -0
- package/tools/probe-delay.cjs +109 -0
- package/tools/probe-star-icon.cjs +164 -0
- package/tools/proof-glow-persist.cjs +102 -0
- package/tools/proof-migration.cjs +88 -0
- package/tools/proof-opacity.cjs +153 -0
- package/tools/proof-race.cjs +103 -0
- package/tools/run-asar.ps1 +53 -0
- package/tools/run.cmd +8 -0
- package/tools/scan.cjs +24 -0
- package/tools/smoke.cjs +179 -0
- package/tools/source-health.cjs +165 -0
- package/tools/splice.cjs +20 -0
- package/tools/test-account.cjs +74 -0
- package/tools/test-client.cjs +265 -0
- package/tools/test-dom.cjs +258 -0
- package/tools/test-host.cjs +500 -0
- package/tools/test-menu.cjs +591 -0
- package/tools/test-recharge.cjs +111 -0
- package/tools/test-v20.cjs +1793 -0
- package/workspace-pin.cmd +8 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 主题素材「素雅」· 顶部区(topbar)
|
|
3
|
+
* 文件:assets/themes/minimal/topbar-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
* 无外链、无第三方字体/图库。
|
|
6
|
+
*
|
|
7
|
+
* 顶部区 = 「新会话 / 上传」行 + 「工作区 + 选项」标题栏所在的这一片背景块。
|
|
8
|
+
* 背景层不参与 workspaceOpacity(那是工作区窗口的透明度),所以这里用不透明/
|
|
9
|
+
* 半透明的实体底,0% 时也不会消失。
|
|
10
|
+
*
|
|
11
|
+
* 接入契约(8 号 / 理纹):
|
|
12
|
+
* 1) 在侧栏根内插一个背景层:
|
|
13
|
+
* <div data-wp-topbar style="--wp-topbar-top:40px;--wp-topbar-height:100px"></div>
|
|
14
|
+
* top/height 按 newSessionRow 顶部 → 标题栏底部 计算(单位 px);
|
|
15
|
+
* 父级(侧栏根)需要 isolation:isolate,层用 z-index:-1 垫在内容后。
|
|
16
|
+
* 2) 给 <html> 加 data-wp-topbar="on":让 newSessionRow 的旧底色让位。
|
|
17
|
+
* 3) hover/active 已有 :hover 版;理纹也可给具体控件挂
|
|
18
|
+
* data-wp-top-hover="1" / data-wp-top-active="1" 强制同款视觉。
|
|
19
|
+
* ========================================================================== */
|
|
20
|
+
|
|
21
|
+
:root[data-wp-theme="minimal"] {
|
|
22
|
+
--wp-top-bg: var(--dsw-specific-sidebar-fill, transparent);
|
|
23
|
+
--wp-top-line: rgba(255, 255, 255, .05);
|
|
24
|
+
--wp-top-bottom: rgba(255, 255, 255, .16);
|
|
25
|
+
--wp-top-inner: transparent;
|
|
26
|
+
--wp-top-radius: 6px;
|
|
27
|
+
--wp-top-shadow: none;
|
|
28
|
+
--wp-top-backdrop: none;
|
|
29
|
+
--wp-top-ring: #5a5f6a;
|
|
30
|
+
--wp-top-glow: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ===== 背景层 ========================================================= */
|
|
34
|
+
|
|
35
|
+
div[data-wp-topbar] {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: var(--wp-topbar-left, 8px);
|
|
38
|
+
right: var(--wp-topbar-right, 8px);
|
|
39
|
+
top: var(--wp-topbar-top, 0px);
|
|
40
|
+
height: var(--wp-topbar-height, 0px);
|
|
41
|
+
z-index: -1;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
border: 1px solid var(--wp-top-line);
|
|
45
|
+
border-bottom-color: var(--wp-top-bottom);
|
|
46
|
+
border-radius: var(--wp-top-radius);
|
|
47
|
+
background: var(--wp-top-bg);
|
|
48
|
+
box-shadow: var(--wp-top-shadow);
|
|
49
|
+
backdrop-filter: var(--wp-top-backdrop);
|
|
50
|
+
-webkit-backdrop-filter: var(--wp-top-backdrop);
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 让位:按钮行原来的整条底色/边框交给背景层,避免盖住它 */
|
|
55
|
+
html[data-wp-topbar="on"] [class*="newSessionRow"] {
|
|
56
|
+
background: transparent !important;
|
|
57
|
+
border-color: transparent !important;
|
|
58
|
+
box-shadow: none !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ===== hover / active(视觉形态;状态由理纹接) ======================= */
|
|
62
|
+
|
|
63
|
+
/* hover:只加 1px 内描边 + 轻微提亮,不改尺寸、不盖原有阴影 */
|
|
64
|
+
:root[data-wp-theme="minimal"] [class*="newSessionRow"] button:hover,
|
|
65
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
66
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
67
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:hover,
|
|
68
|
+
:root[data-wp-theme="minimal"] button[data-wp-top-hover="1"] {
|
|
69
|
+
outline: 1px solid var(--wp-top-ring) !important;
|
|
70
|
+
outline-offset: -1px;
|
|
71
|
+
filter: brightness(1.08) saturate(1.04);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* active:压暗 + 内侧描边,不位移 */
|
|
75
|
+
:root[data-wp-theme="minimal"] [class*="newSessionRow"] button:active,
|
|
76
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] [class*="searchButton"]:active,
|
|
77
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] [class*="iconButton"]:active,
|
|
78
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:active,
|
|
79
|
+
:root[data-wp-theme="minimal"] button[data-wp-top-active="1"] {
|
|
80
|
+
outline: 1px solid var(--wp-top-ring) !important;
|
|
81
|
+
outline-offset: -1px;
|
|
82
|
+
filter: brightness(.93) saturate(1.02);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* 键盘焦点:沿用各主题自己的焦点环,不再叠加 */
|
|
86
|
+
@media (prefers-reduced-motion: reduce) {
|
|
87
|
+
:root[data-wp-theme="minimal"] [class*="newSessionRow"] button,
|
|
88
|
+
:root[data-wp-theme="minimal"] [data-sidebar-workspace-header] button {
|
|
89
|
+
transition: none !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 新会话 + 导入按钮区(session actions)
|
|
3
|
+
* 文件:assets/themes/neon/actions-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
* 无外链、无第三方字体/图库。
|
|
6
|
+
*
|
|
7
|
+
* 选择器约定:DSH 类名是 CSS Modules 哈希,统一用 [class*="..."] 子串匹配。
|
|
8
|
+
* 折叠铁轨态:所有规则带 :not(:has([data-sidebar-collapsed="true"])) 守卫,
|
|
9
|
+
* 侧栏收起时本文件不生效。
|
|
10
|
+
*
|
|
11
|
+
* 接入顺序(ASSETS.md §三):
|
|
12
|
+
* header-frame.css → sidebar-outer.css → brand-frame.css
|
|
13
|
+
* → actions-frame.css → options-frame.css → footer-frame.css
|
|
14
|
+
* ========================================================================== */
|
|
15
|
+
|
|
16
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] {
|
|
17
|
+
position: relative;
|
|
18
|
+
margin: 0 !important;
|
|
19
|
+
padding: 6px 6px 7px !important;
|
|
20
|
+
gap: 6px !important;
|
|
21
|
+
border: 0 !important;
|
|
22
|
+
border-bottom: 1px solid var(--wp-act-line) !important;
|
|
23
|
+
border-radius: 0 !important;
|
|
24
|
+
background: var(--wp-act-bg) !important;
|
|
25
|
+
box-shadow: var(--wp-act-shadow) !important;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* 关掉 header-frame.css 里旧的两段框接缝高光 */
|
|
30
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"]::after { content: none !important; }
|
|
31
|
+
|
|
32
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button {
|
|
33
|
+
height: var(--wp-act-h) !important;
|
|
34
|
+
border: 1px solid var(--wp-act-btn-line) !important;
|
|
35
|
+
border-radius: var(--wp-act-radius) !important;
|
|
36
|
+
background: var(--wp-act-btn-bg) !important;
|
|
37
|
+
color: var(--wp-act-btn-text) !important;
|
|
38
|
+
box-shadow: var(--wp-act-btn-shadow) !important;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
transition: background 140ms ease, box-shadow 140ms ease, border-color 140ms ease, transform 80ms ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button[class*="newSession"] {
|
|
44
|
+
flex: 1 1 auto !important;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:not([class*="newSession"]) {
|
|
49
|
+
flex: 0 0 auto !important;
|
|
50
|
+
width: var(--wp-act-h) !important;
|
|
51
|
+
padding: 0 !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (hover: hover) {
|
|
55
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:hover {
|
|
56
|
+
background: var(--wp-act-btn-hover) !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 按下:下沉 1px + 内投影,两个按钮一致 */
|
|
61
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:active {
|
|
62
|
+
background: var(--wp-act-btn-active) !important;
|
|
63
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45) !important;
|
|
64
|
+
transform: translateY(1px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:root[data-wp-theme="neon"] [class*="newSessionRow"] button:focus-visible {
|
|
68
|
+
outline: 2px solid var(--wp-act-focus) !important;
|
|
69
|
+
outline-offset: -2px !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:root[data-wp-theme="neon"] {
|
|
73
|
+
--wp-act-bg: linear-gradient(180deg, #10141f 0%, #0a0d15 100%);
|
|
74
|
+
--wp-act-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 30%, transparent);
|
|
75
|
+
--wp-act-shadow: inset 0 0 14px color-mix(in srgb, var(--wp-accent, #4d6bfe) 10%, transparent);
|
|
76
|
+
--wp-act-h: 36px;
|
|
77
|
+
--wp-act-radius: 8px;
|
|
78
|
+
--wp-act-btn-bg: linear-gradient(180deg, #141a2a 0%, #0b0f19 100%);
|
|
79
|
+
--wp-act-btn-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 48%, #0a0c11);
|
|
80
|
+
--wp-act-btn-text: #eef4ff;
|
|
81
|
+
--wp-act-btn-shadow: inset 0 1px 0 color-mix(in srgb, var(--wp-accent, #4d6bfe) 22%, transparent), 0 0 10px color-mix(in srgb, var(--wp-accent, #4d6bfe) 16%, transparent);
|
|
82
|
+
--wp-act-btn-hover: linear-gradient(180deg, color-mix(in srgb, var(--wp-accent, #4d6bfe) 24%, #141a2a) 0%, #0d1220 100%);
|
|
83
|
+
--wp-act-btn-active: linear-gradient(180deg, #0b0f18 0%, #10151f 100%);
|
|
84
|
+
--wp-act-focus: color-mix(in srgb, var(--wp-accent, #4d6bfe) 75%, white);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (prefers-reduced-motion: reduce) {
|
|
88
|
+
:root[data-wp-theme="neon"] [class*="newSessionRow"] button { transition: none !important; }
|
|
89
|
+
:root[data-wp-theme="neon"] [class*="newSessionRow"] button:active { transform: none; }
|
|
90
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 顶部品牌区(brand bar)
|
|
3
|
+
* 文件:assets/themes/neon/brand-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
* 无外链、无第三方字体/图库。
|
|
6
|
+
*
|
|
7
|
+
* 选择器约定:DSH 类名是 CSS Modules 哈希,统一用 [class*="..."] 子串匹配。
|
|
8
|
+
* 折叠铁轨态:所有规则带 :not(:has([data-sidebar-collapsed="true"])) 守卫,
|
|
9
|
+
* 侧栏收起时本文件不生效。
|
|
10
|
+
*
|
|
11
|
+
* 接入顺序(ASSETS.md §三):
|
|
12
|
+
* header-frame.css → sidebar-outer.css → brand-frame.css
|
|
13
|
+
* → actions-frame.css → options-frame.css → footer-frame.css
|
|
14
|
+
* ========================================================================== */
|
|
15
|
+
|
|
16
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="logoRow"] {
|
|
17
|
+
position: relative;
|
|
18
|
+
border-bottom: 1px solid var(--wp-brand-line);
|
|
19
|
+
background: var(--wp-brand-bg);
|
|
20
|
+
box-shadow: inset 0 1px 0 var(--wp-brand-top);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* 品牌区强化:独立托板 + 顶部边 + logo 暗底(提高 wordmark 对比) */
|
|
24
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="logoRow"] {
|
|
25
|
+
isolation: isolate;
|
|
26
|
+
border-top: 1px solid var(--wp-brand-edge);
|
|
27
|
+
box-shadow: var(--wp-brand-shadow);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="logoRow"]::before {
|
|
31
|
+
content: "";
|
|
32
|
+
position: absolute;
|
|
33
|
+
left: 2px;
|
|
34
|
+
top: 2px;
|
|
35
|
+
bottom: 2px;
|
|
36
|
+
width: 64%;
|
|
37
|
+
z-index: -1;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
background: radial-gradient(ellipse at 8% 50%, var(--wp-brand-well), transparent 72%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/* 极淡分隔光带:压在分隔线上方,不遮 logo、不压字 */
|
|
44
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="logoRow"]::after {
|
|
45
|
+
content: "";
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 8px;
|
|
48
|
+
right: 8px;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
height: 6px;
|
|
51
|
+
background: linear-gradient(to top, var(--wp-brand-band), transparent);
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:root[data-wp-theme="neon"] {
|
|
56
|
+
--wp-brand-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 55%, transparent);
|
|
57
|
+
--wp-brand-bg: linear-gradient(105deg, color-mix(in srgb, var(--wp-accent, #4d6bfe) 12%, transparent) 0%, transparent 42%, color-mix(in srgb, var(--wp-accent, #4d6bfe) 6%, transparent) 100%), linear-gradient(180deg, #0c1019 0%, #070810 100%);
|
|
58
|
+
--wp-brand-band: color-mix(in srgb, var(--wp-accent, #4d6bfe) 45%, transparent);
|
|
59
|
+
--wp-brand-top: color-mix(in srgb, var(--wp-accent, #4d6bfe) 25%, transparent);
|
|
60
|
+
--wp-brand-radius: 0px;
|
|
61
|
+
--wp-brand-edge: color-mix(in srgb, var(--wp-accent, #4d6bfe) 30%, transparent);
|
|
62
|
+
--wp-brand-shadow: inset 0 1px 0 color-mix(in srgb, var(--wp-accent, #4d6bfe) 25%, transparent), 0 0 14px color-mix(in srgb, var(--wp-accent, #4d6bfe) 14%, transparent);
|
|
63
|
+
--wp-brand-well: rgba(0, 0, 0, .55);
|
|
64
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 底部用户栏(实体 · 固定底座)(footer / account)
|
|
3
|
+
* 文件:assets/themes/neon/footer-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
* 无外链、无第三方字体/图库。
|
|
6
|
+
*
|
|
7
|
+
* 选择器约定:DSH 类名是 CSS Modules 哈希,统一用 [class*="..."] 子串匹配。
|
|
8
|
+
* 折叠铁轨态:所有规则带 :not(:has([data-sidebar-collapsed="true"])) 守卫,
|
|
9
|
+
* 侧栏收起时本文件不生效。
|
|
10
|
+
*
|
|
11
|
+
* 接入顺序(ASSETS.md §三):
|
|
12
|
+
* header-frame.css → sidebar-outer.css → brand-frame.css
|
|
13
|
+
* → actions-frame.css → options-frame.css → footer-frame.css
|
|
14
|
+
* ========================================================================== */
|
|
15
|
+
|
|
16
|
+
/* 用户栏 = 实体固定底座(v2,2026-11-24)
|
|
17
|
+
* - 底色不透明:background 的最后一项带 color,上层渐变/纹理只做装饰;
|
|
18
|
+
* 因此不受 workspaceOpacity(--wp-ws-opacity) 与侧栏背景图影响,不会“透过去”;
|
|
19
|
+
* - 上边缘:1px 分隔线 + 内侧 1px 高光 + 向上轻投影 → 与内容区有明确边界;
|
|
20
|
+
* - 底部圆角贴合外框内角;不新增高度、不改布局尺寸;
|
|
21
|
+
* - 账号按钮(aria-haspopup):hover 提亮、active 内凹、菜单展开保持选中态;
|
|
22
|
+
* 只改底色 / 内侧阴影 / 1px 环,不位移、不跳动。
|
|
23
|
+
* 8 号:本文件替换旧 footer-frame.css;不要给 .footArea 设 opacity / filter。 */
|
|
24
|
+
|
|
25
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] {
|
|
26
|
+
position: relative;
|
|
27
|
+
margin: 4px 0 0 !important;
|
|
28
|
+
padding: 5px 2px 3px !important;
|
|
29
|
+
border-top: 1px solid var(--wp-foot-line) !important;
|
|
30
|
+
border-radius: 0 0 var(--wp-foot-radius) var(--wp-foot-radius);
|
|
31
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--wp-accent, #4d6bfe) 8%, #0a0c12) 0%, #07080c 100%) #090b12 !important;
|
|
32
|
+
box-shadow:
|
|
33
|
+
inset 0 1px 0 var(--wp-foot-inner),
|
|
34
|
+
inset 0 -1px 0 rgba(0, 0, 0, .45),
|
|
35
|
+
var(--wp-foot-cast) !important;
|
|
36
|
+
isolation: isolate;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] [class*="triggerRow"] {
|
|
40
|
+
margin: 0 !important;
|
|
41
|
+
gap: 6px !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] button[aria-haspopup] {
|
|
45
|
+
border-radius: var(--wp-acct-radius) !important;
|
|
46
|
+
color: var(--wp-acct-text) !important;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
background-clip: padding-box !important;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
transition: background-color 140ms ease, box-shadow 140ms ease;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (hover: hover) {
|
|
54
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] button[aria-haspopup]:hover {
|
|
55
|
+
background-color: var(--wp-acct-hover) !important;
|
|
56
|
+
box-shadow: inset 0 1px 0 var(--wp-acct-hover-hi) !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 按下:内凹 + 1px 环,不位移 */
|
|
61
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] button[aria-haspopup]:active {
|
|
62
|
+
background-color: var(--wp-acct-active) !important;
|
|
63
|
+
box-shadow: var(--wp-acct-press), inset 0 0 0 1px var(--wp-acct-ring) !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 菜单展开:保持选中态(与按下同底、只留 1px 环) */
|
|
67
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] button[aria-haspopup][aria-expanded="true"] {
|
|
68
|
+
background-color: var(--wp-acct-active) !important;
|
|
69
|
+
box-shadow: inset 0 0 0 1px var(--wp-acct-ring) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:root[data-wp-theme="neon"] [class*="footArea"] button[aria-haspopup]:focus-visible {
|
|
73
|
+
outline: 2px solid var(--wp-acct-focus) !important;
|
|
74
|
+
outline-offset: -2px !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 文字色跟随用户栏(浅色主题下账号名不再沿用深色 UI 的浅灰) */
|
|
78
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] button[aria-haspopup] [class*="label"] {
|
|
79
|
+
color: var(--wp-acct-text) !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] button[aria-haspopup] [class*="avatar"] {
|
|
83
|
+
color: var(--wp-acct-text) !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* 头像细环 + 极淡光晕:在实体底上“落得住” */
|
|
87
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] [class*="avatar"] {
|
|
88
|
+
box-shadow: 0 0 0 1px var(--wp-acct-ring), 0 0 10px var(--wp-acct-glow);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:root[data-wp-theme="neon"] {
|
|
92
|
+
--wp-foot-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 45%, #0a0c11);
|
|
93
|
+
--wp-foot-inner: color-mix(in srgb, var(--wp-accent, #4d6bfe) 22%, transparent);
|
|
94
|
+
--wp-foot-cast: 0 -10px 20px -12px rgba(0, 0, 0, .75);
|
|
95
|
+
--wp-foot-radius: 10px;
|
|
96
|
+
--wp-acct-hover: #121828;
|
|
97
|
+
--wp-acct-hover-hi: color-mix(in srgb, var(--wp-accent, #4d6bfe) 22%, transparent);
|
|
98
|
+
--wp-acct-active: #0b0f18;
|
|
99
|
+
--wp-acct-press: inset 0 1px 3px rgba(0, 0, 0, .65);
|
|
100
|
+
--wp-acct-text: #e9f0ff;
|
|
101
|
+
--wp-acct-ring: color-mix(in srgb, var(--wp-accent, #4d6bfe) 50%, transparent);
|
|
102
|
+
--wp-acct-glow: color-mix(in srgb, var(--wp-accent, #4d6bfe) 35%, transparent);
|
|
103
|
+
--wp-acct-radius: 10px;
|
|
104
|
+
--wp-acct-focus: color-mix(in srgb, var(--wp-accent, #4d6bfe) 75%, white);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (prefers-reduced-motion: reduce) {
|
|
108
|
+
:root[data-wp-theme="neon"] [class*="footArea"] button { transition: none !important; }
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 主题素材「neon 霓虹」
|
|
3
|
+
* 文件:assets/themes/neon/header-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
* 无外链;强调色跟随 --wp-accent(插件已把工作区星标色写入该变量)。
|
|
6
|
+
*
|
|
7
|
+
* 选择器说明同 metal:类名是 CSS Modules 哈希,故用 [class*="..."] 子串匹配。
|
|
8
|
+
* 可读性:发光只落在 1px 描边/分隔线上,文字一律实色,不做 text-shadow 发光。
|
|
9
|
+
* ========================================================================== */
|
|
10
|
+
|
|
11
|
+
:root[data-wp-theme="neon"] {
|
|
12
|
+
/* —— 大框 —— */
|
|
13
|
+
--wp-fr-radius: 12px;
|
|
14
|
+
--wp-fr-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 52%, #0a0c11);
|
|
15
|
+
--wp-fr-bg: linear-gradient(180deg, #0a0c12 0%, #08090f 55%, #06070b 100%);
|
|
16
|
+
--wp-fr-shadow:
|
|
17
|
+
0 0 18px color-mix(in srgb, var(--wp-accent, #4d6bfe) 20%, transparent),
|
|
18
|
+
inset 0 0 12px color-mix(in srgb, var(--wp-accent, #4d6bfe) 9%, transparent);
|
|
19
|
+
--wp-fr-top-bg: linear-gradient(180deg, #0f121b 0%, #090b12 100%);
|
|
20
|
+
--wp-fr-top-shadow: inset 0 0 14px color-mix(in srgb, var(--wp-accent, #4d6bfe) 10%, transparent);
|
|
21
|
+
--wp-fr-divider: color-mix(in srgb, var(--wp-accent, #4d6bfe) 32%, #06070b);
|
|
22
|
+
--wp-fr-divider-hi: color-mix(in srgb, var(--wp-accent, #4d6bfe) 55%, transparent);
|
|
23
|
+
|
|
24
|
+
/* —— 标题栏 —— */
|
|
25
|
+
--wp-hd-radius: 9px;
|
|
26
|
+
--wp-hd-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 62%, #0a0c11);
|
|
27
|
+
--wp-hd-bg: linear-gradient(180deg, #101420 0%, #0a0d15 60%, #080a10 100%);
|
|
28
|
+
--wp-hd-shadow:
|
|
29
|
+
inset 0 0 12px color-mix(in srgb, var(--wp-accent, #4d6bfe) 14%, transparent),
|
|
30
|
+
0 0 12px color-mix(in srgb, var(--wp-accent, #4d6bfe) 16%, transparent);
|
|
31
|
+
--wp-hd-text: #eaf0ff;
|
|
32
|
+
--wp-hd-accent: linear-gradient(180deg, var(--wp-accent, #4d6bfe), color-mix(in srgb, var(--wp-accent, #4d6bfe) 35%, transparent));
|
|
33
|
+
--wp-hd-accent-w: 3px;
|
|
34
|
+
--wp-hd-accent-glow: 0 0 9px color-mix(in srgb, var(--wp-accent, #4d6bfe) 80%, transparent);
|
|
35
|
+
|
|
36
|
+
/* —— 选项框 —— */
|
|
37
|
+
--wp-opt-radius: 7px;
|
|
38
|
+
--wp-opt-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 42%, #0a0c11);
|
|
39
|
+
--wp-opt-bg: color-mix(in srgb, var(--wp-accent, #4d6bfe) 8%, #06070b);
|
|
40
|
+
--wp-opt-shadow: inset 0 0 8px color-mix(in srgb, var(--wp-accent, #4d6bfe) 14%, transparent);
|
|
41
|
+
--wp-opt-icon: #cfe0ff;
|
|
42
|
+
--wp-opt-hover: color-mix(in srgb, var(--wp-accent, #4d6bfe) 22%, transparent);
|
|
43
|
+
|
|
44
|
+
/* —— 顶部两按钮 —— */
|
|
45
|
+
--wp-btn-radius: 8px;
|
|
46
|
+
--wp-btn-line: color-mix(in srgb, var(--wp-accent, #4d6bfe) 48%, #0a0c11);
|
|
47
|
+
--wp-btn-bg: linear-gradient(180deg, #141a2a 0%, #0b0f19 100%);
|
|
48
|
+
--wp-btn-hover: linear-gradient(180deg, color-mix(in srgb, var(--wp-accent, #4d6bfe) 22%, #141a2a) 0%, #0d1220 100%);
|
|
49
|
+
--wp-btn-text: #eef4ff;
|
|
50
|
+
--wp-btn-shadow:
|
|
51
|
+
inset 0 1px 0 color-mix(in srgb, var(--wp-accent, #4d6bfe) 22%, transparent),
|
|
52
|
+
0 0 10px color-mix(in srgb, var(--wp-accent, #4d6bfe) 16%, transparent);
|
|
53
|
+
|
|
54
|
+
--wp-focus: color-mix(in srgb, var(--wp-accent, #4d6bfe) 75%, white);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ===== 1) 大框·上段:新会话 / 上传 ==================================== */
|
|
58
|
+
|
|
59
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] {
|
|
60
|
+
position: relative;
|
|
61
|
+
margin: 0 !important;
|
|
62
|
+
padding: 5px 6px !important;
|
|
63
|
+
gap: 6px !important;
|
|
64
|
+
border: 1px solid var(--wp-fr-line) !important;
|
|
65
|
+
border-bottom: 1px solid var(--wp-fr-divider) !important;
|
|
66
|
+
border-radius: var(--wp-fr-radius) var(--wp-fr-radius) 0 0 !important;
|
|
67
|
+
background: var(--wp-fr-top-bg) !important;
|
|
68
|
+
box-shadow: var(--wp-fr-top-shadow) !important;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"]::after {
|
|
73
|
+
content: "";
|
|
74
|
+
position: absolute;
|
|
75
|
+
left: 0;
|
|
76
|
+
right: 0;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
height: 1px;
|
|
79
|
+
background: var(--wp-fr-divider-hi);
|
|
80
|
+
opacity: .55;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button {
|
|
85
|
+
height: 36px !important;
|
|
86
|
+
border: 1px solid var(--wp-btn-line) !important;
|
|
87
|
+
border-radius: var(--wp-btn-radius) !important;
|
|
88
|
+
background: var(--wp-btn-bg) !important;
|
|
89
|
+
color: var(--wp-btn-text) !important;
|
|
90
|
+
box-shadow: var(--wp-btn-shadow) !important;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button[class*="newSession"] {
|
|
95
|
+
flex: 1 1 auto !important;
|
|
96
|
+
min-width: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:not([class*="newSession"]) {
|
|
100
|
+
flex: 0 0 auto !important;
|
|
101
|
+
width: 36px !important;
|
|
102
|
+
padding: 0 !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (hover: hover) {
|
|
106
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:hover {
|
|
107
|
+
background: var(--wp-btn-hover) !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:root[data-wp-theme="neon"] [class*="newSessionRow"] button:focus-visible {
|
|
112
|
+
outline: 2px solid var(--wp-focus) !important;
|
|
113
|
+
outline-offset: -2px !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ===== 2) 大框·下段 =================================================== */
|
|
117
|
+
|
|
118
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [class*="scrollRegion"] {
|
|
119
|
+
margin-top: 0 !important;
|
|
120
|
+
border: 1px solid var(--wp-fr-line);
|
|
121
|
+
border-top: 0;
|
|
122
|
+
border-radius: 0 0 var(--wp-fr-radius) var(--wp-fr-radius);
|
|
123
|
+
background: var(--wp-fr-bg);
|
|
124
|
+
box-shadow: var(--wp-fr-shadow);
|
|
125
|
+
overflow: clip;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:root[data-wp-theme="neon"] [class*="scrollFade"] {
|
|
129
|
+
background: linear-gradient(to bottom, transparent, rgba(7, 8, 12, .94));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* ===== 3) 标题栏 ====================================================== */
|
|
133
|
+
|
|
134
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] {
|
|
135
|
+
height: 36px !important;
|
|
136
|
+
margin: 6px 6px 4px 6px !important;
|
|
137
|
+
padding: 0 3px 0 8px !important;
|
|
138
|
+
gap: 0 !important;
|
|
139
|
+
border: 1px solid var(--wp-hd-line) !important;
|
|
140
|
+
border-radius: var(--wp-hd-radius) !important;
|
|
141
|
+
background: var(--wp-hd-bg) !important;
|
|
142
|
+
box-shadow: var(--wp-hd-shadow) !important;
|
|
143
|
+
overflow: hidden !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [class*="sectionLabel"] {
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
gap: 6px;
|
|
150
|
+
height: 100%;
|
|
151
|
+
max-width: 45%;
|
|
152
|
+
color: var(--wp-hd-text);
|
|
153
|
+
font-size: 12.5px;
|
|
154
|
+
font-weight: 650;
|
|
155
|
+
letter-spacing: .1em;
|
|
156
|
+
text-shadow: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [class*="sectionLabel"]::before {
|
|
160
|
+
content: "";
|
|
161
|
+
flex: none;
|
|
162
|
+
width: var(--wp-hd-accent-w);
|
|
163
|
+
height: 13px;
|
|
164
|
+
border-radius: 1px;
|
|
165
|
+
background: var(--wp-hd-accent);
|
|
166
|
+
box-shadow: var(--wp-hd-accent-glow);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* ===== 4) 选项框 ====================================================== */
|
|
170
|
+
|
|
171
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [class*="searchSlot"] {
|
|
172
|
+
flex: 0 0 auto !important;
|
|
173
|
+
max-width: none !important;
|
|
174
|
+
height: 30px;
|
|
175
|
+
margin-left: auto !important;
|
|
176
|
+
padding: 0 1px;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
border: 1px solid var(--wp-opt-line);
|
|
179
|
+
border-right: 0;
|
|
180
|
+
border-radius: var(--wp-opt-radius) 0 0 var(--wp-opt-radius);
|
|
181
|
+
background: var(--wp-opt-bg);
|
|
182
|
+
box-shadow: var(--wp-opt-shadow);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [class*="headerActions"] {
|
|
186
|
+
max-width: none !important;
|
|
187
|
+
height: 30px;
|
|
188
|
+
padding: 0 2px !important;
|
|
189
|
+
gap: 2px !important;
|
|
190
|
+
overflow: visible !important;
|
|
191
|
+
box-sizing: border-box;
|
|
192
|
+
border-top: 1px solid var(--wp-opt-line);
|
|
193
|
+
border-bottom: 1px solid var(--wp-opt-line);
|
|
194
|
+
border-left: 1px solid var(--wp-opt-line);
|
|
195
|
+
background: var(--wp-opt-bg);
|
|
196
|
+
box-shadow: var(--wp-opt-shadow);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [class*="headerActions"] [class*="iconButton"],
|
|
200
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [class*="searchButton"] {
|
|
201
|
+
color: var(--wp-opt-icon) !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [data-wp-settings-toggle] {
|
|
205
|
+
flex: 0 0 auto !important;
|
|
206
|
+
box-sizing: content-box !important;
|
|
207
|
+
width: 28px !important;
|
|
208
|
+
height: 28px !important;
|
|
209
|
+
margin: 0 !important;
|
|
210
|
+
padding: 0 !important;
|
|
211
|
+
border: 1px solid var(--wp-opt-line) !important;
|
|
212
|
+
border-left: 1px solid var(--wp-opt-line) !important;
|
|
213
|
+
border-radius: 0 var(--wp-opt-radius) var(--wp-opt-radius) 0 !important;
|
|
214
|
+
background: var(--wp-opt-bg) !important;
|
|
215
|
+
color: var(--wp-opt-icon) !important;
|
|
216
|
+
box-shadow: var(--wp-opt-shadow) !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])):not(:has([data-wp-settings-toggle])) [class*="headerActions"] {
|
|
220
|
+
border-right: 1px solid var(--wp-opt-line);
|
|
221
|
+
border-radius: 0 var(--wp-opt-radius) var(--wp-opt-radius) 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (hover: hover) {
|
|
225
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
226
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
227
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:hover {
|
|
228
|
+
background: var(--wp-opt-hover) !important;
|
|
229
|
+
color: #ffffff !important;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] button:focus-visible {
|
|
234
|
+
outline: 2px solid var(--wp-focus) !important;
|
|
235
|
+
outline-offset: -2px !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* ===== 5) 可选协同:工作区盒子只留细光边,暗底压住对话内容 ========== */
|
|
239
|
+
|
|
240
|
+
:root[data-wp-theme="neon"] {
|
|
241
|
+
--wp-box-radius: 8px;
|
|
242
|
+
--wp-lid-radius: 7px 7px 0 0;
|
|
243
|
+
--wp-box-background:
|
|
244
|
+
linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0) 45%) padding-box,
|
|
245
|
+
linear-gradient(180deg, #0a0d14, #070810) padding-box,
|
|
246
|
+
linear-gradient(180deg,
|
|
247
|
+
color-mix(in srgb, var(--wp-accent, #4d6bfe) 38%, transparent),
|
|
248
|
+
color-mix(in srgb, var(--wp-accent, #4d6bfe) 12%, transparent)) border-box;
|
|
249
|
+
--wp-box-shadow: inset 0 0 8px color-mix(in srgb, var(--wp-accent, #4d6bfe) 8%, transparent);
|
|
250
|
+
--wp-lid-background: linear-gradient(180deg, #141c2c, #0d1322);
|
|
251
|
+
--wp-lid-shadow: inset 0 0 8px color-mix(in srgb, var(--wp-accent, #4d6bfe) 14%, transparent);
|
|
252
|
+
--wp-lid-text: #eaf0ff;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@media (prefers-reduced-motion: reduce) {
|
|
256
|
+
:root[data-wp-theme="neon"] [class*="newSessionRow"] button,
|
|
257
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header] button {
|
|
258
|
+
transition: none !important;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* 搜索展开态:收起标题栏左右留白,让搜索条吃满内宽(各主题一致) */
|
|
263
|
+
:root[data-wp-theme="neon"] [data-sidebar-workspace-header]:has([class*="searchExpanded"]) {
|
|
264
|
+
padding: 0 1px !important;
|
|
265
|
+
gap: 0 !important;
|
|
266
|
+
}
|
|
267
|
+
/* ===== 工作区标题 / 会话区:100% 不透明也必须能分辨 =====================
|
|
268
|
+
* 透明度只到 100% 时,"标题=会话区+20%" 的差值消失,只能用美术手段区分。
|
|
269
|
+
* 这里用「常驻 1px 分隔线 + 标题字重更高」:
|
|
270
|
+
* - 分隔线画在工作区标题行元素本身(border),插件在 fade 时只清
|
|
271
|
+
* background / box-shadow,不清 border,所以 0% 透明时这条线仍然在;
|
|
272
|
+
* - 100% 时再叠加:盖子底色比盒体亮一档(见 --wp-lid-background)、
|
|
273
|
+
* 标题文字使用 --wp-lid-text。
|
|
274
|
+
* 同色系不同明度 + 细线,不是撞色。 */
|
|
275
|
+
:root[data-wp-theme="neon"] {
|
|
276
|
+
--wp-lid-sep: color-mix(in srgb, var(--wp-accent, #4d6bfe) 70%, transparent);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
:root[data-wp-theme="neon"]:not(:has([data-sidebar-collapsed="true"])) [data-row-key^="workspace:"] {
|
|
280
|
+
border-bottom: 1px solid var(--wp-lid-sep) !important;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
:root[data-wp-theme="neon"] [class*="groupSection"] [data-row-key^="workspace:"] [class*="title"] {
|
|
284
|
+
font-weight: 650 !important;
|
|
285
|
+
letter-spacing: .02em;
|
|
286
|
+
}
|