@weitc/dfy-awesome-sidebar 0.0.0-stage → 1.0.1
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 +2015 -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,300 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 主题素材「metal 金属」
|
|
3
|
+
* 文件:assets/themes/metal/header-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
* 无外链、无第三方字体/图库;全部是 CSS 渐变 + 内联 SVG data URI。
|
|
6
|
+
*
|
|
7
|
+
* 挂载(8 号 · 补鳞):
|
|
8
|
+
* 1) 并入插件注入的 <style> 或单独 <link>,放在 DSH 应用样式之后;
|
|
9
|
+
* 2) 根节点需有 data-wp-theme="metal"(插件 v0.12 已设置);
|
|
10
|
+
* 3) 所有选择器以 :root[data-wp-theme="metal"] 限定,五套可同时加载。
|
|
11
|
+
*
|
|
12
|
+
* DSH 的类名是 CSS Modules 哈希(例如 wtg9ga_newSessionRow),
|
|
13
|
+
* 因此这里一律用 [class*="..."] 子串匹配 —— 与插件既有写法一致。
|
|
14
|
+
*
|
|
15
|
+
* 折叠铁轨态:用 :not(:has([data-sidebar-collapsed="true"])) 守卫,
|
|
16
|
+
* 侧栏收起时本素材全部不生效(铁轨有自己的一套 36px 布局)。
|
|
17
|
+
* ========================================================================== */
|
|
18
|
+
|
|
19
|
+
:root[data-wp-theme="metal"],
|
|
20
|
+
:root:not([data-wp-theme]) {
|
|
21
|
+
/* —— 大框 —— */
|
|
22
|
+
--wp-fr-radius: 12px;
|
|
23
|
+
--wp-fr-line: #565e6a;
|
|
24
|
+
--wp-fr-bg: linear-gradient(180deg, #181b20 0%, #14171b 55%, #111316 100%);
|
|
25
|
+
--wp-fr-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .035), 0 2px 8px rgba(0, 0, 0, .45);
|
|
26
|
+
--wp-fr-top-bg: linear-gradient(180deg, #31363f 0%, #262b33 46%, #1f232a 100%);
|
|
27
|
+
--wp-fr-top-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .50);
|
|
28
|
+
--wp-fr-divider: #0d0f12;
|
|
29
|
+
--wp-fr-divider-hi: rgba(255, 255, 255, .11);
|
|
30
|
+
/* 拉丝纹理:自制 SVG data URI,48×48 无缝平铺(源文件 brushed-texture.svg) */
|
|
31
|
+
--wp-brushed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05'%3E%3Cpath d='M0 2h48M0 6h48M0 10h48M0 14h48M0 18h48M0 22h48M0 26h48M0 30h48M0 34h48M0 38h48M0 42h48M0 46h48'/%3E%3C/g%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='.055'%3E%3Cpath d='M0 4h48M0 12h48M0 20h48M0 28h48M0 36h48M0 44h48'/%3E%3C/g%3E%3C/svg%3E");
|
|
32
|
+
|
|
33
|
+
/* —— 标题栏 —— */
|
|
34
|
+
--wp-hd-radius: 8px;
|
|
35
|
+
--wp-hd-line: #545c68;
|
|
36
|
+
--wp-hd-bg: linear-gradient(180deg, #30353e 0%, #262b33 54%, #1e2228 100%);
|
|
37
|
+
--wp-hd-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -1px 0 rgba(0, 0, 0, .58), 0 1px 2px rgba(0, 0, 0, .40);
|
|
38
|
+
--wp-hd-text: #eef2f8;
|
|
39
|
+
--wp-hd-accent: linear-gradient(180deg, #e2e7ef, #7d8592);
|
|
40
|
+
--wp-hd-accent-w: 3px;
|
|
41
|
+
--wp-hd-accent-glow: none;
|
|
42
|
+
|
|
43
|
+
/* —— 选项框:搜索 | 视图/新建 | 齿轮,拼成一个可延长的小框 —— */
|
|
44
|
+
--wp-opt-radius: 7px;
|
|
45
|
+
--wp-opt-line: #454c58;
|
|
46
|
+
--wp-opt-bg: linear-gradient(180deg, #101318 0%, #161a20 100%);
|
|
47
|
+
--wp-opt-shadow: inset 0 1px 3px rgba(0, 0, 0, .70), 0 1px 0 rgba(255, 255, 255, .05);
|
|
48
|
+
--wp-opt-icon: #c8cfda;
|
|
49
|
+
--wp-opt-hover: rgba(255, 255, 255, .11);
|
|
50
|
+
|
|
51
|
+
/* —— 顶部两按钮 —— */
|
|
52
|
+
--wp-btn-radius: 8px;
|
|
53
|
+
--wp-btn-line: #4f5762;
|
|
54
|
+
--wp-btn-bg: linear-gradient(180deg, #383e48 0%, #2a2f37 55%, #23272e 100%);
|
|
55
|
+
--wp-btn-hover: linear-gradient(180deg, #434a55 0%, #2f353d 55%, #272c33 100%);
|
|
56
|
+
--wp-btn-text: #f2f5fa;
|
|
57
|
+
--wp-btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .35);
|
|
58
|
+
|
|
59
|
+
--wp-focus: #a8bcdb;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* ===== 1) 大框·上段:新会话 / 上传 ==================================== */
|
|
63
|
+
|
|
64
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] {
|
|
65
|
+
position: relative;
|
|
66
|
+
margin: 0 !important;
|
|
67
|
+
padding: 5px 6px !important;
|
|
68
|
+
gap: 6px !important;
|
|
69
|
+
border: 1px solid var(--wp-fr-line) !important;
|
|
70
|
+
border-bottom: 1px solid var(--wp-fr-divider) !important;
|
|
71
|
+
border-radius: var(--wp-fr-radius) var(--wp-fr-radius) 0 0 !important;
|
|
72
|
+
background: var(--wp-brushed) 0 0 / 48px 48px repeat, var(--wp-fr-top-bg) !important;
|
|
73
|
+
box-shadow: var(--wp-fr-top-shadow) !important;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 接缝下的一条细高光:让上段与标题栏读作同一个大框 */
|
|
78
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"]::after {
|
|
79
|
+
content: "";
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 0;
|
|
82
|
+
right: 0;
|
|
83
|
+
bottom: 0;
|
|
84
|
+
height: 1px;
|
|
85
|
+
background: var(--wp-fr-divider-hi);
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button {
|
|
90
|
+
height: 36px !important;
|
|
91
|
+
border: 1px solid var(--wp-btn-line) !important;
|
|
92
|
+
border-radius: var(--wp-btn-radius) !important;
|
|
93
|
+
background: var(--wp-btn-bg) !important;
|
|
94
|
+
color: var(--wp-btn-text) !important;
|
|
95
|
+
box-shadow: var(--wp-btn-shadow) !important;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button[class*="newSession"] {
|
|
100
|
+
flex: 1 1 auto !important;
|
|
101
|
+
min-width: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:not([class*="newSession"]) {
|
|
105
|
+
flex: 0 0 auto !important;
|
|
106
|
+
width: 36px !important;
|
|
107
|
+
padding: 0 !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (hover: hover) {
|
|
111
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] button:hover {
|
|
112
|
+
background: var(--wp-btn-hover) !important;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:root[data-wp-theme="metal"] [class*="newSessionRow"] button:focus-visible {
|
|
117
|
+
outline: 2px solid var(--wp-focus) !important;
|
|
118
|
+
outline-offset: -2px !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* ===== 2) 大框·下段:滚动区(标题栏 + 工作区列表) =================== */
|
|
122
|
+
|
|
123
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="scrollRegion"] {
|
|
124
|
+
margin-top: 0 !important;
|
|
125
|
+
border: 1px solid var(--wp-fr-line);
|
|
126
|
+
border-top: 0;
|
|
127
|
+
border-radius: 0 0 var(--wp-fr-radius) var(--wp-fr-radius);
|
|
128
|
+
background: var(--wp-fr-bg);
|
|
129
|
+
box-shadow: var(--wp-fr-shadow);
|
|
130
|
+
overflow: clip;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* 底部渐隐落到大框底色,避免框底出现异色带(可选) */
|
|
134
|
+
:root[data-wp-theme="metal"] [class*="scrollFade"] {
|
|
135
|
+
background: linear-gradient(to bottom, transparent, rgba(20, 23, 27, .92));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* ===== 3) 标题栏:「工作区」 ========================================= */
|
|
139
|
+
|
|
140
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] {
|
|
141
|
+
height: 36px !important;
|
|
142
|
+
margin: 6px 6px 4px 6px !important;
|
|
143
|
+
padding: 0 3px 0 8px !important;
|
|
144
|
+
gap: 0 !important;
|
|
145
|
+
border: 1px solid var(--wp-hd-line) !important;
|
|
146
|
+
border-radius: var(--wp-hd-radius) !important;
|
|
147
|
+
background: var(--wp-brushed) 0 0 / 48px 48px repeat, var(--wp-hd-bg) !important;
|
|
148
|
+
box-shadow: var(--wp-hd-shadow) !important;
|
|
149
|
+
overflow: hidden !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="sectionLabel"] {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
gap: 6px;
|
|
156
|
+
height: 100%;
|
|
157
|
+
max-width: 45%;
|
|
158
|
+
color: var(--wp-hd-text);
|
|
159
|
+
font-size: 12.5px;
|
|
160
|
+
font-weight: 650;
|
|
161
|
+
letter-spacing: .09em;
|
|
162
|
+
text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="sectionLabel"]::before {
|
|
166
|
+
content: "";
|
|
167
|
+
flex: none;
|
|
168
|
+
width: var(--wp-hd-accent-w);
|
|
169
|
+
height: 12px;
|
|
170
|
+
border-radius: 1px;
|
|
171
|
+
background: var(--wp-hd-accent);
|
|
172
|
+
box-shadow: var(--wp-hd-accent-glow);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ===== 4) 选项框:搜索 | 视图·新建 | 齿轮 ============================
|
|
176
|
+
* 不改 DOM:.searchSlot / .headerActions / [data-wp-settings-toggle] 是连续兄弟,
|
|
177
|
+
* 各画一段边框,拼成一个会随选项增多而延长的独立小框。
|
|
178
|
+
* 仅在搜索未展开时生效,避免压掉 DSH 的搜索展开动画。
|
|
179
|
+
* ===================================================================== */
|
|
180
|
+
|
|
181
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [class*="searchSlot"] {
|
|
182
|
+
flex: 0 0 auto !important;
|
|
183
|
+
max-width: none !important;
|
|
184
|
+
height: 30px;
|
|
185
|
+
margin-left: auto !important;
|
|
186
|
+
padding: 0 1px;
|
|
187
|
+
box-sizing: border-box;
|
|
188
|
+
border: 1px solid var(--wp-opt-line);
|
|
189
|
+
border-right: 0;
|
|
190
|
+
border-radius: var(--wp-opt-radius) 0 0 var(--wp-opt-radius);
|
|
191
|
+
background: var(--wp-opt-bg);
|
|
192
|
+
box-shadow: var(--wp-opt-shadow);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [class*="headerActions"] {
|
|
196
|
+
max-width: none !important;
|
|
197
|
+
height: 30px;
|
|
198
|
+
padding: 0 2px !important;
|
|
199
|
+
gap: 2px !important;
|
|
200
|
+
overflow: visible !important;
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
border-top: 1px solid var(--wp-opt-line);
|
|
203
|
+
border-bottom: 1px solid var(--wp-opt-line);
|
|
204
|
+
border-left: 1px solid var(--wp-opt-line);
|
|
205
|
+
background: var(--wp-opt-bg);
|
|
206
|
+
box-shadow: var(--wp-opt-shadow);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="headerActions"] [class*="iconButton"],
|
|
210
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="searchButton"] {
|
|
211
|
+
color: var(--wp-opt-icon) !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [data-wp-settings-toggle] {
|
|
215
|
+
flex: 0 0 auto !important;
|
|
216
|
+
box-sizing: content-box !important;
|
|
217
|
+
width: 28px !important;
|
|
218
|
+
height: 28px !important;
|
|
219
|
+
margin: 0 !important;
|
|
220
|
+
padding: 0 !important;
|
|
221
|
+
border: 1px solid var(--wp-opt-line) !important;
|
|
222
|
+
border-left: 1px solid var(--wp-opt-line) !important;
|
|
223
|
+
border-radius: 0 var(--wp-opt-radius) var(--wp-opt-radius) 0 !important;
|
|
224
|
+
background: var(--wp-opt-bg) !important;
|
|
225
|
+
color: var(--wp-opt-icon) !important;
|
|
226
|
+
box-shadow: var(--wp-opt-shadow) !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* 没有齿轮时,由 .headerActions 收右边 */
|
|
230
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])):not(:has([data-wp-settings-toggle])) [class*="headerActions"] {
|
|
231
|
+
border-right: 1px solid var(--wp-opt-line);
|
|
232
|
+
border-radius: 0 var(--wp-opt-radius) var(--wp-opt-radius) 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@media (hover: hover) {
|
|
236
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
237
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
238
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:hover {
|
|
239
|
+
background: var(--wp-opt-hover) !important;
|
|
240
|
+
color: var(--wp-hd-text) !important;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] button:focus-visible {
|
|
245
|
+
outline: 2px solid var(--wp-focus) !important;
|
|
246
|
+
outline-offset: -2px !important;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* ===== 5) 可选协同:让工作区盒子比大框淡一档,避免三层边框抢戏 ======
|
|
250
|
+
* 用插件 v0.12 的 --wp-box-* / --wp-lid-* 变量。
|
|
251
|
+
* 想保留旧盒子观感,整段删掉即可,其余素材不受影响。
|
|
252
|
+
* ===================================================================== */
|
|
253
|
+
|
|
254
|
+
:root[data-wp-theme="metal"] {
|
|
255
|
+
--wp-box-radius: 8px;
|
|
256
|
+
--wp-lid-radius: 7px 7px 0 0;
|
|
257
|
+
--wp-box-background:
|
|
258
|
+
linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 45%) padding-box,
|
|
259
|
+
linear-gradient(180deg, #22262d, #1a1d22) padding-box,
|
|
260
|
+
linear-gradient(180deg, #3a4049, #2a2f36) border-box;
|
|
261
|
+
--wp-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .28);
|
|
262
|
+
--wp-lid-background:
|
|
263
|
+
linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%),
|
|
264
|
+
linear-gradient(180deg, #313842, #262b33);
|
|
265
|
+
--wp-lid-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
|
|
266
|
+
--wp-lid-text: #e6eaf1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@media (prefers-reduced-motion: reduce) {
|
|
270
|
+
:root[data-wp-theme="metal"] [class*="newSessionRow"] button,
|
|
271
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] button {
|
|
272
|
+
transition: none !important;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* 搜索展开态:收起标题栏左右留白,让搜索条吃满内宽(各主题一致) */
|
|
277
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header]:has([class*="searchExpanded"]) {
|
|
278
|
+
padding: 0 1px !important;
|
|
279
|
+
gap: 0 !important;
|
|
280
|
+
}
|
|
281
|
+
/* ===== 工作区标题 / 会话区:100% 不透明也必须能分辨 =====================
|
|
282
|
+
* 透明度只到 100% 时,"标题=会话区+20%" 的差值消失,只能用美术手段区分。
|
|
283
|
+
* 这里用「常驻 1px 分隔线 + 标题字重更高」:
|
|
284
|
+
* - 分隔线画在工作区标题行元素本身(border),插件在 fade 时只清
|
|
285
|
+
* background / box-shadow,不清 border,所以 0% 透明时这条线仍然在;
|
|
286
|
+
* - 100% 时再叠加:盖子底色比盒体亮一档(见 --wp-lid-background)、
|
|
287
|
+
* 标题文字使用 --wp-lid-text。
|
|
288
|
+
* 同色系不同明度 + 细线,不是撞色。 */
|
|
289
|
+
:root[data-wp-theme="metal"] {
|
|
290
|
+
--wp-lid-sep: rgba(255, 255, 255, .22);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-row-key^="workspace:"] {
|
|
294
|
+
border-bottom: 1px solid var(--wp-lid-sep) !important;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:root[data-wp-theme="metal"] [class*="groupSection"] [data-row-key^="workspace:"] [class*="title"] {
|
|
298
|
+
font-weight: 650 !important;
|
|
299
|
+
letter-spacing: .02em;
|
|
300
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 选项按钮区(options cluster)
|
|
3
|
+
* 文件:assets/themes/metal/options-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
|
+
/* 选项框主体:搜索 | 视图·新建 | 齿轮,三段各画一段边,拼成一个可延长的框。
|
|
17
|
+
* 本文件是 header-frame.css §4 的完整替代版(含 hover/active/expanded),
|
|
18
|
+
* 加载顺序在本文件之后即可覆盖旧规则,不会叠加。 */
|
|
19
|
+
|
|
20
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [class*="searchSlot"] {
|
|
21
|
+
flex: 0 0 auto !important;
|
|
22
|
+
max-width: none !important;
|
|
23
|
+
height: 30px;
|
|
24
|
+
margin-left: auto !important;
|
|
25
|
+
padding: 0 1px;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
border: 1px solid var(--wp-opt-line);
|
|
28
|
+
border-right: 0;
|
|
29
|
+
border-radius: var(--wp-opt-radius) 0 0 var(--wp-opt-radius);
|
|
30
|
+
background: var(--wp-opt-bg);
|
|
31
|
+
box-shadow: var(--wp-opt-shadow);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [class*="headerActions"] {
|
|
35
|
+
max-width: none !important;
|
|
36
|
+
height: 30px;
|
|
37
|
+
padding: 0 2px !important;
|
|
38
|
+
gap: 2px !important;
|
|
39
|
+
overflow: visible !important;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
border-top: 1px solid var(--wp-opt-line);
|
|
42
|
+
border-bottom: 1px solid var(--wp-opt-line);
|
|
43
|
+
border-left: 1px solid var(--wp-opt-line);
|
|
44
|
+
background: var(--wp-opt-bg);
|
|
45
|
+
box-shadow: var(--wp-opt-shadow);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* 窄侧栏(~180px)时让标题先收缩,别被选项框挤掉 */
|
|
49
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="sectionLabel"] {
|
|
50
|
+
flex: 0 1 auto !important;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="headerActions"] [class*="iconButton"],
|
|
55
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="searchButton"] {
|
|
56
|
+
color: var(--wp-opt-icon) !important;
|
|
57
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])) [data-wp-settings-toggle] {
|
|
61
|
+
flex: 0 0 auto !important;
|
|
62
|
+
box-sizing: content-box !important;
|
|
63
|
+
width: 28px !important;
|
|
64
|
+
height: 28px !important;
|
|
65
|
+
margin: 0 !important;
|
|
66
|
+
padding: 0 !important;
|
|
67
|
+
border: 1px solid var(--wp-opt-line) !important;
|
|
68
|
+
border-left: 1px solid var(--wp-opt-line) !important;
|
|
69
|
+
border-radius: 0 var(--wp-opt-radius) var(--wp-opt-radius) 0 !important;
|
|
70
|
+
background: var(--wp-opt-bg) !important;
|
|
71
|
+
color: var(--wp-opt-icon) !important;
|
|
72
|
+
box-shadow: var(--wp-opt-shadow) !important;
|
|
73
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* 没有齿轮时由选项段收右边 */
|
|
77
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header]:not(:has([class*="searchExpanded"])):not(:has([data-wp-settings-toggle])) [class*="headerActions"] {
|
|
78
|
+
border-right: 1px solid var(--wp-opt-line);
|
|
79
|
+
border-radius: 0 var(--wp-opt-radius) var(--wp-opt-radius) 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (hover: hover) {
|
|
83
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
84
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
85
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [data-wp-settings-toggle]:hover {
|
|
86
|
+
background: var(--wp-opt-hover) !important;
|
|
87
|
+
color: var(--wp-opt-text-hover) !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* 按下:内凹一档(不位移,避免四段边框错位) */
|
|
92
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="iconButton"]:active,
|
|
93
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="searchButton"]:active,
|
|
94
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [data-wp-settings-toggle]:active {
|
|
95
|
+
background: var(--wp-opt-active) !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* 已展开的菜单按钮(排序/新建下拉)保持高亮 */
|
|
99
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [aria-expanded="true"] {
|
|
100
|
+
background: var(--wp-opt-active) !important;
|
|
101
|
+
color: var(--wp-opt-text-hover) !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] button:focus-visible {
|
|
105
|
+
outline: 2px solid var(--wp-opt-focus) !important;
|
|
106
|
+
outline-offset: -2px !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:root[data-wp-theme="metal"] {
|
|
110
|
+
--wp-opt-line: #454c58;
|
|
111
|
+
--wp-opt-bg: linear-gradient(180deg, #101318 0%, #161a20 100%);
|
|
112
|
+
--wp-opt-shadow: inset 0 1px 3px rgba(0, 0, 0, .70), 0 1px 0 rgba(255, 255, 255, .05);
|
|
113
|
+
--wp-opt-icon: #c8cfda;
|
|
114
|
+
--wp-opt-hover: rgba(255, 255, 255, .11);
|
|
115
|
+
--wp-opt-active: rgba(0, 0, 0, .28);
|
|
116
|
+
--wp-opt-radius: 7px;
|
|
117
|
+
--wp-opt-focus: #a8bcdb;
|
|
118
|
+
--wp-opt-text-hover: #ffffff;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* 搜索展开态:收起左右留白,让搜索条吃满内宽 */
|
|
122
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header]:has([class*="searchExpanded"]) {
|
|
123
|
+
padding: 0 1px !important;
|
|
124
|
+
gap: 0 !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (prefers-reduced-motion: reduce) {
|
|
128
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] button { transition: none !important; }
|
|
129
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 整个侧边栏外框(sidebar outer frame)
|
|
3
|
+
* 文件:assets/themes/metal/sidebar-outer.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
|
+
/* 外框画在 .sidebarCol 的 ::after 上:
|
|
17
|
+
* - 不新增 DOM、不改布局、不写死宽度;
|
|
18
|
+
* - inset 4px 内缩,圆角/描边在四角收口;
|
|
19
|
+
* - z-index 在内容之上但 pointer-events:none,不挡点击;
|
|
20
|
+
* - 折叠铁轨态由守卫隐藏。
|
|
21
|
+
* 本文件同时接管 header-frame.css 的旧两段框(上段 newSessionRow / 下段 scrollRegion),
|
|
22
|
+
* 避免出现「框里再套框」。想回退旧两段框:不加载本文件即可。 */
|
|
23
|
+
|
|
24
|
+
:root[data-wp-theme="metal"] [class*="sidebarCol"] {
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="sidebarCol"]::after {
|
|
29
|
+
content: "";
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: var(--wp-outer-inset);
|
|
32
|
+
border: 1px solid var(--wp-outer-line);
|
|
33
|
+
border-radius: var(--wp-outer-radius);
|
|
34
|
+
box-shadow: var(--wp-outer-glow), inset 0 0 0 1px var(--wp-outer-inner);
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
z-index: 6;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"] {
|
|
40
|
+
border: 0 !important;
|
|
41
|
+
border-radius: 0 !important;
|
|
42
|
+
background: transparent !important;
|
|
43
|
+
box-shadow: none !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"]::after { content: none !important; }
|
|
47
|
+
|
|
48
|
+
:root[data-wp-theme="metal"]:not(:has([data-sidebar-collapsed="true"])) [class*="scrollRegion"] {
|
|
49
|
+
border: 0 !important;
|
|
50
|
+
border-radius: 0 !important;
|
|
51
|
+
background: transparent !important;
|
|
52
|
+
box-shadow: none !important;
|
|
53
|
+
backdrop-filter: none !important;
|
|
54
|
+
-webkit-backdrop-filter: none !important;
|
|
55
|
+
overflow: visible !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:root[data-wp-theme="metal"] {
|
|
59
|
+
--wp-outer-inset: 4px;
|
|
60
|
+
--wp-outer-line: #565e6a;
|
|
61
|
+
--wp-outer-radius: 14px;
|
|
62
|
+
--wp-outer-glow: 0 2px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
|
|
63
|
+
--wp-outer-inner: rgba(255, 255, 255, .035);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 主题素材「金属」· 顶部区(topbar)
|
|
3
|
+
* 文件:assets/themes/metal/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="metal"] {
|
|
22
|
+
--wp-top-bg: linear-gradient(105deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 68%, rgba(255,255,255,.06) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05'%3E%3Cpath d='M0 2h48M0 6h48M0 10h48M0 14h48M0 18h48M0 22h48M0 26h48M0 30h48M0 34h48M0 38h48M0 42h48M0 46h48'/%3E%3C/g%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='.05'%3E%3Cpath d='M0 4h48M0 12h48M0 20h48M0 28h48M0 36h48M0 44h48'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 48px 48px repeat, linear-gradient(180deg, #2d323b 0%, #20242a 100%) #20242a;
|
|
23
|
+
--wp-top-line: #4a5059;
|
|
24
|
+
--wp-top-bottom: #5b636f;
|
|
25
|
+
--wp-top-inner: rgba(255, 255, 255, .16);
|
|
26
|
+
--wp-top-radius: 10px;
|
|
27
|
+
--wp-top-shadow: 0 4px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .16);
|
|
28
|
+
--wp-top-backdrop: none;
|
|
29
|
+
--wp-top-ring: #9aa6b8;
|
|
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="metal"] [class*="newSessionRow"] button:hover,
|
|
65
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
66
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
67
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:hover,
|
|
68
|
+
:root[data-wp-theme="metal"] 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="metal"] [class*="newSessionRow"] button:active,
|
|
76
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="searchButton"]:active,
|
|
77
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [class*="iconButton"]:active,
|
|
78
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:active,
|
|
79
|
+
:root[data-wp-theme="metal"] 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="metal"] [class*="newSessionRow"] button,
|
|
88
|
+
:root[data-wp-theme="metal"] [data-sidebar-workspace-header] button {
|
|
89
|
+
transition: none !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 新会话 + 导入按钮区(session actions)
|
|
3
|
+
* 文件:assets/themes/minimal/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="minimal"]: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="minimal"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"]::after { content: none !important; }
|
|
31
|
+
|
|
32
|
+
:root[data-wp-theme="minimal"]: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="minimal"]: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="minimal"]: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="minimal"]: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="minimal"]: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="minimal"] [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="minimal"] {
|
|
73
|
+
--wp-act-bg: var(--dsw-specific-sidebar-fill, transparent);
|
|
74
|
+
--wp-act-line: #2e3138;
|
|
75
|
+
--wp-act-shadow: none;
|
|
76
|
+
--wp-act-h: 36px;
|
|
77
|
+
--wp-act-radius: 6px;
|
|
78
|
+
--wp-act-btn-bg: transparent;
|
|
79
|
+
--wp-act-btn-line: #41454d;
|
|
80
|
+
--wp-act-btn-text: #e6e8ec;
|
|
81
|
+
--wp-act-btn-shadow: none;
|
|
82
|
+
--wp-act-btn-hover: rgba(255, 255, 255, .05);
|
|
83
|
+
--wp-act-btn-active: rgba(0, 0, 0, .16);
|
|
84
|
+
--wp-act-focus: #8f96a3;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (prefers-reduced-motion: reduce) {
|
|
88
|
+
:root[data-wp-theme="minimal"] [class*="newSessionRow"] button { transition: none !important; }
|
|
89
|
+
:root[data-wp-theme="minimal"] [class*="newSessionRow"] button:active { transform: none; }
|
|
90
|
+
}
|