@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,43 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 顶部品牌区(brand bar)
|
|
3
|
+
* 文件:assets/themes/oldday/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="oldday"]: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
|
+
|
|
24
|
+
/* 极淡分隔光带:压在分隔线上方,不遮 logo、不压字 */
|
|
25
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [class*="logoRow"]::after {
|
|
26
|
+
content: "";
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 8px;
|
|
29
|
+
right: 8px;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
height: 6px;
|
|
32
|
+
background: linear-gradient(to top, var(--wp-brand-band), transparent);
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:root[data-wp-theme="oldday"] {
|
|
37
|
+
--wp-brand-line: #808080;
|
|
38
|
+
--wp-brand-bg: #c0c0c0;
|
|
39
|
+
--wp-brand-band: transparent;
|
|
40
|
+
--wp-brand-top: #ffffff;
|
|
41
|
+
--wp-brand-radius: 0px;
|
|
42
|
+
|
|
43
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 底部用户栏(实体 · 固定底座)(footer / account)
|
|
3
|
+
* 文件:assets/themes/oldday/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="oldday"]: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: #c0c0c0 !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="oldday"]: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="oldday"]: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="oldday"]: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="oldday"]: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="oldday"]: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="oldday"] [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="oldday"]: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="oldday"]: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="oldday"]: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="oldday"] {
|
|
92
|
+
--wp-foot-line: #808080;
|
|
93
|
+
--wp-foot-inner: #ffffff;
|
|
94
|
+
--wp-foot-cast: 0 0 0 rgba(0, 0, 0, 0);
|
|
95
|
+
--wp-foot-radius: 0px;
|
|
96
|
+
--wp-acct-hover: #d4d4d4;
|
|
97
|
+
--wp-acct-hover-hi: #ffffff;
|
|
98
|
+
--wp-acct-active: #a8a8a8;
|
|
99
|
+
--wp-acct-press: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
|
|
100
|
+
--wp-acct-text: #000000;
|
|
101
|
+
--wp-acct-ring: #000000;
|
|
102
|
+
--wp-acct-glow: transparent;
|
|
103
|
+
--wp-acct-radius: 0px;
|
|
104
|
+
--wp-acct-focus: #000000;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (prefers-reduced-motion: reduce) {
|
|
108
|
+
:root[data-wp-theme="oldday"] [class*="footArea"] button { transition: none !important; }
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [class*="footArea"] {
|
|
112
|
+
border: 1px solid #808080 !important;
|
|
113
|
+
border-radius: 0 !important;
|
|
114
|
+
box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000 !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 主题素材「oldday 旧日」
|
|
3
|
+
* 文件:assets/themes/oldday/header-frame.css
|
|
4
|
+
* 许可:自制(随插件同许可分发;见同目录 LICENSE.txt)
|
|
5
|
+
*
|
|
6
|
+
* 设计:上世纪 95/98 窗口质感 —— 深蓝→浅蓝标题栏、灰面板、外凸 3D 边、
|
|
7
|
+
* 方形按钮、白/黑描边。不做像素画:只用渐变、1px 线、斜面高光。
|
|
8
|
+
* 说明:本文件只负责「标题栏 + 会话区盒子 + 行文字颜色」;
|
|
9
|
+
* 品牌/按钮条/选项框/用户栏/外框分别在 brand/actions/options/footer/sidebar-outer。
|
|
10
|
+
* 选择器:DSH 类名是 CSS Modules 哈希,统一 [class*="..."] 子串匹配。
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
:root[data-wp-theme="oldday"] {
|
|
14
|
+
/* 会话区盒子:灰面板 + 外凸 3D 边(左上白、右下黑/深灰) */
|
|
15
|
+
--wp-box-radius: 0px;
|
|
16
|
+
--wp-lid-radius: 0px;
|
|
17
|
+
--wp-box-background:
|
|
18
|
+
linear-gradient(#c0c0c0, #c0c0c0) padding-box,
|
|
19
|
+
#808080 border-box;
|
|
20
|
+
--wp-box-shadow:
|
|
21
|
+
inset 1px 1px 0 #ffffff,
|
|
22
|
+
inset -1px -1px 0 #000000,
|
|
23
|
+
inset 2px 2px 0 #dfdfdf,
|
|
24
|
+
inset -2px -2px 0 #808080;
|
|
25
|
+
--wp-lid-background: #c0c0c0;
|
|
26
|
+
--wp-lid-shadow:
|
|
27
|
+
inset 1px 1px 0 #ffffff,
|
|
28
|
+
inset -1px -1px 0 #808080;
|
|
29
|
+
--wp-lid-text: #000080;
|
|
30
|
+
--wp-sess-background: #b8b8b8;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ===== 标题栏:「工作区」= 经典深蓝窗口标题栏 ========================= */
|
|
34
|
+
|
|
35
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] {
|
|
36
|
+
height: 36px !important;
|
|
37
|
+
margin: 6px 6px 4px !important;
|
|
38
|
+
padding: 0 4px 0 8px !important;
|
|
39
|
+
gap: 0 !important;
|
|
40
|
+
border: 1px solid #000000 !important;
|
|
41
|
+
border-radius: 0 !important;
|
|
42
|
+
background: linear-gradient(90deg, #000080 0%, #1084d0 100%) !important;
|
|
43
|
+
box-shadow: inset 1px 1px 0 #4d6fc4, inset -1px -1px 0 #001040 !important;
|
|
44
|
+
overflow: hidden !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [class*="sectionLabel"] {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
height: 100%;
|
|
51
|
+
max-width: 45%;
|
|
52
|
+
color: #ffffff !important;
|
|
53
|
+
font-size: 13px;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
letter-spacing: .02em;
|
|
56
|
+
text-shadow: 1px 1px 0 rgba(0, 0, 0, .55);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Win95 标题栏没有左侧竖条 */
|
|
60
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [class*="sectionLabel"]::before {
|
|
61
|
+
display: none !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* ===== 品牌区:灰工具条上的深色字(logo slot 保持原样) ============= */
|
|
65
|
+
|
|
66
|
+
:root[data-wp-theme="oldday"] [class*="logoRow"] {
|
|
67
|
+
color: #000000 !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:root[data-wp-theme="oldday"] [class*="logoRow"] [class*="brand"],
|
|
71
|
+
:root[data-wp-theme="oldday"] [class*="logoRow"] [class*="brandName"] {
|
|
72
|
+
color: #000000 !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:root[data-wp-theme="oldday"] [class*="logoRow"] small {
|
|
76
|
+
color: #404040 !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* ===== 会话区:灰底黑字,工作区标题用深蓝 ============================= */
|
|
80
|
+
|
|
81
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key] {
|
|
82
|
+
color: #101010 !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key^="workspace:"] {
|
|
86
|
+
color: #000080 !important;
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key^="session:"] {
|
|
91
|
+
color: #141414 !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key] [class*="time"] {
|
|
95
|
+
color: #4a4a4a !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* 标题文字统一跟随行色:覆盖 DSH 深色 UI 的浅色 title */
|
|
99
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key] [class*="title"],
|
|
100
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key] [class*="projectText"] {
|
|
101
|
+
color: inherit !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* 悬停:灰面轻微加深(不用白/黑,避免在浅底上看不见) */
|
|
105
|
+
@media (hover: hover) {
|
|
106
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key]:hover {
|
|
107
|
+
background-color: #d4d4d4 !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* 搜索展开:标题栏内让出留白(与 options-frame 的规则一致,防止旧浏览器缺 :has 时塌) */
|
|
112
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header]:has([class*="searchExpanded"]) {
|
|
113
|
+
padding: 0 2px !important;
|
|
114
|
+
gap: 0 !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (prefers-reduced-motion: reduce) {
|
|
118
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key] {
|
|
119
|
+
transition: none !important;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* ===== 工作区标题 / 会话区:100% 不透明也必须能分辨 =====================
|
|
124
|
+
* 透明度只到 100% 时,"标题=会话区+20%" 的差值消失,只能用美术手段区分。
|
|
125
|
+
* 这里用「常驻 1px 分隔线 + 标题字重更高」:
|
|
126
|
+
* - 分隔线画在工作区标题行元素本身(border),插件在 fade 时只清
|
|
127
|
+
* background / box-shadow,不清 border,所以 0% 透明时这条线仍然在;
|
|
128
|
+
* - 100% 时再叠加:盖子底色比盒体亮一档(见 --wp-lid-background)、
|
|
129
|
+
* 标题文字使用 --wp-lid-text。
|
|
130
|
+
* 同色系不同明度 + 细线,不是撞色。 */
|
|
131
|
+
:root[data-wp-theme="oldday"] {
|
|
132
|
+
--wp-lid-sep: #808080;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-row-key^="workspace:"] {
|
|
136
|
+
border-bottom: 1px solid var(--wp-lid-sep) !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:root[data-wp-theme="oldday"] [class*="groupSection"] [data-row-key^="workspace:"] [class*="title"] {
|
|
140
|
+
font-weight: 700 !important;
|
|
141
|
+
letter-spacing: .02em;
|
|
142
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 选项按钮区(options cluster)
|
|
3
|
+
* 文件:assets/themes/oldday/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="oldday"]: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="oldday"]: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="oldday"]: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="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="headerActions"] [class*="iconButton"],
|
|
55
|
+
:root[data-wp-theme="oldday"]: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="oldday"]: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="oldday"]: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="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
84
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
85
|
+
:root[data-wp-theme="oldday"]: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="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="iconButton"]:active,
|
|
93
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [data-sidebar-workspace-header] [class*="searchButton"]:active,
|
|
94
|
+
:root[data-wp-theme="oldday"]: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="oldday"]: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="oldday"] [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="oldday"] {
|
|
110
|
+
--wp-opt-line: #808080;
|
|
111
|
+
--wp-opt-bg: #c0c0c0;
|
|
112
|
+
--wp-opt-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, inset 2px 2px 0 #dfdfdf, inset -2px -2px 0 #808080;
|
|
113
|
+
--wp-opt-icon: #000000;
|
|
114
|
+
--wp-opt-hover: #d4d4d4;
|
|
115
|
+
--wp-opt-active: #a8a8a8;
|
|
116
|
+
--wp-opt-radius: 0px;
|
|
117
|
+
--wp-opt-focus: #000000;
|
|
118
|
+
--wp-opt-text-hover: #ffffff;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* 搜索展开态:收起左右留白,让搜索条吃满内宽 */
|
|
122
|
+
:root[data-wp-theme="oldday"]: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="oldday"] [data-sidebar-workspace-header] button { transition: none !important; }
|
|
129
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 整个侧边栏外框(sidebar outer frame)
|
|
3
|
+
* 文件:assets/themes/oldday/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="oldday"] [class*="sidebarCol"] {
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:root[data-wp-theme="oldday"]: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="oldday"]: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="oldday"]:not(:has([data-sidebar-collapsed="true"])) [class*="newSessionRow"]::after { content: none !important; }
|
|
47
|
+
|
|
48
|
+
:root[data-wp-theme="oldday"]: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="oldday"] {
|
|
59
|
+
--wp-outer-inset: 6px 8px;
|
|
60
|
+
--wp-outer-line: #808080;
|
|
61
|
+
--wp-outer-radius: 3px;
|
|
62
|
+
--wp-outer-glow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000, inset 2px 2px 0 #dfdfdf, inset -2px -2px 0 #808080;
|
|
63
|
+
--wp-outer-inner: transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:root[data-wp-theme="oldday"]:not(:has([data-sidebar-collapsed="true"])) [class*="scrollRegion"] {
|
|
67
|
+
background: #c0c0c0 !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
* 很炫的栏 · 主题素材「旧日」· 顶部区(topbar)
|
|
3
|
+
* 文件:assets/themes/oldday/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="oldday"] {
|
|
22
|
+
--wp-top-bg: #c0c0c0;
|
|
23
|
+
--wp-top-line: #808080;
|
|
24
|
+
--wp-top-bottom: #808080;
|
|
25
|
+
--wp-top-inner: #ffffff;
|
|
26
|
+
--wp-top-radius: 0px;
|
|
27
|
+
--wp-top-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000;
|
|
28
|
+
--wp-top-backdrop: none;
|
|
29
|
+
--wp-top-ring: #000000;
|
|
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="oldday"] [class*="newSessionRow"] button:hover,
|
|
65
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [class*="searchButton"]:hover,
|
|
66
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [class*="iconButton"]:hover,
|
|
67
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:hover,
|
|
68
|
+
:root[data-wp-theme="oldday"] 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="oldday"] [class*="newSessionRow"] button:active,
|
|
76
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [class*="searchButton"]:active,
|
|
77
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [class*="iconButton"]:active,
|
|
78
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] [data-wp-settings-toggle]:active,
|
|
79
|
+
:root[data-wp-theme="oldday"] 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="oldday"] [class*="newSessionRow"] button,
|
|
88
|
+
:root[data-wp-theme="oldday"] [data-sidebar-workspace-header] button {
|
|
89
|
+
transition: none !important;
|
|
90
|
+
}
|
|
91
|
+
}
|