mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skin): add bounded plugin runtime and Harbor voice sample
This commit is contained in:
1 parent
8f097ec597
commit
96c29394f3
30 files changed
+1540
-185
No files matched your search
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
# Harbor Voice Workspace
|
||||
|
||||
这是一个 KOOK 语音工作区风格的完整皮肤测试包,参考范围只限语音客户端:服务器快捷栏、频道列表、中央聊天、成员列表和底部语音控制。没有复用 KOOK 的图片、标志、广告或站点文案,也没有加入发现、陪玩、派对、商城、活动通知、排行榜或管理后台。
|
||||
|
||||
皮肤使用 `components.json` 的安全声明式 surface 和 WebSpeak 宿主控件。频道树会在当前频道下显示已连接成员;双击频道才请求 TeamSpeak 加入,避免单击选中与加入混为一谈。服务器与频道列表只读取已授权的公开标签和状态;切换服务器、静音和断开都由宿主执行并校验。皮肤不读取服务器地址、账号凭据或连接密钥,也不包含可执行 JavaScript/Wasm;这个样例用于验证 v3 兼容 surface,v4 Wasm 插件运行时另由运行时测试覆盖。
|
||||
|
||||
桌面布局保留四个区域:服务器快捷栏、频道树、聊天区和成员区;连接后语音控制坞固定在频道栏底部。窄屏下服务器栏保持可用,频道项转为横向滚动,成员与语音控制各自占一行,基础连接控制不被隐藏。
|
||||
|
||||
`manifest.json`、`components.json` 与 `skin.css` 是可编辑源码。根目录的 `../harbor-voice.wskin` 是源码打包后的本地导入包;可在测试实例的皮肤管理页导入验证,当前没有加入公共皮肤目录或发布到服务器。
|
||||
@@ -0,0 +1,280 @@
|
||||
{
|
||||
"schemaVersion": 3,
|
||||
"components": [
|
||||
{
|
||||
"id": "harbor-home",
|
||||
"name": "Harbor connection home",
|
||||
"page": "home",
|
||||
"mode": "surface",
|
||||
"accessibleName": "WebSpeak connection page",
|
||||
"permissions": ["ui.surface.replace"],
|
||||
"actions": {},
|
||||
"root": {
|
||||
"tag": "main",
|
||||
"part": "home",
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "home-header",
|
||||
"children": [
|
||||
{ "tag": "span", "part": "brand-mark", "children": [{ "text": "W" }] },
|
||||
{ "tag": "span", "part": "brand-name", "children": [{ "text": "WEBSPEAK" }] },
|
||||
{ "widget": "app.language-switcher", "part": "language" },
|
||||
{ "widget": "app.skin-switcher", "part": "skin" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "section",
|
||||
"part": "connection-card",
|
||||
"children": [
|
||||
{ "tag": "p", "part": "eyebrow", "children": [{ "text": "VOICE CLIENT" }] },
|
||||
{ "tag": "h1", "part": "title", "children": [{ "text": "Connect with your community" }] },
|
||||
{ "tag": "p", "part": "description", "children": [{ "text": "Choose a TeamSpeak server and return to your voice channels." }] },
|
||||
{ "widget": "home.connection-form", "part": "connection-form" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "footer",
|
||||
"part": "home-footer",
|
||||
"children": [{ "text": "Your connection and identity stay under WebSpeak's control." }]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "harbor-workspace",
|
||||
"name": "Harbor voice workspace",
|
||||
"page": "voice",
|
||||
"mode": "surface",
|
||||
"accessibleName": "WebSpeak voice workspace",
|
||||
"permissions": [
|
||||
"ui.surface.replace",
|
||||
"session.status.read",
|
||||
"session.channels.read",
|
||||
"session.members.read",
|
||||
"session.channel.join",
|
||||
"servers.quickList.read",
|
||||
"servers.quickList.switch"
|
||||
],
|
||||
"actions": {
|
||||
"switch-server": {
|
||||
"type": "quickServers.switch",
|
||||
"args": { "quickServerId": "{{server.id}}" }
|
||||
},
|
||||
"join-channel": {
|
||||
"type": "voice.joinChannel",
|
||||
"args": { "channelId": "{{channel.id}}" }
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"tag": "main",
|
||||
"part": "workspace",
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "topbar",
|
||||
"children": [
|
||||
{ "tag": "span", "part": "brand-mark", "children": [{ "text": "W" }] },
|
||||
{ "tag": "span", "part": "brand-name", "children": [{ "text": "WEBSPEAK" }] },
|
||||
{ "tag": "span", "part": "server-title", "children": [{ "text": "{{session.status.serverLabel}}" }] },
|
||||
{ "widget": "app.language-switcher", "part": "language" },
|
||||
{ "widget": "app.skin-switcher", "part": "skin" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "nav",
|
||||
"part": "server-rail",
|
||||
"attributes": { "aria-label": "Favorite and recent servers" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "quick-server-item",
|
||||
"repeat": { "path": "servers.quickList", "as": "server" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "quick-server",
|
||||
"attributes": {
|
||||
"type": "button",
|
||||
"aria-current": "{{server.current}}",
|
||||
"aria-label": "Switch to {{server.label}}"
|
||||
},
|
||||
"events": { "click": "switch-server" },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "server-monogram", "children": [{ "text": "{{server.label}}" }] },
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "server-kind",
|
||||
"when": { "path": "server.favorite", "equals": true },
|
||||
"children": [{ "text": "Saved" }]
|
||||
},
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "server-kind",
|
||||
"when": { "path": "server.kind", "equals": "recent" },
|
||||
"children": [{ "text": "Recent" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "aside",
|
||||
"part": "channel-panel",
|
||||
"attributes": { "aria-label": "Server channels" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "server-summary",
|
||||
"children": [
|
||||
{ "tag": "strong", "part": "server-name", "children": [{ "text": "{{session.status.serverLabel}}" }] },
|
||||
{ "tag": "small", "part": "server-subtitle", "children": [{ "text": "VOICE CHANNELS" }] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "nav",
|
||||
"part": "channel-list",
|
||||
"attributes": { "aria-label": "Channels" },
|
||||
"children": [
|
||||
{ "tag": "h2", "part": "section-label", "children": [{ "text": "CHANNELS" }] },
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "channel-item",
|
||||
"repeat": { "path": "session.channels", "as": "channel" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "channel-row",
|
||||
"attributes": {
|
||||
"type": "button",
|
||||
"aria-current": "{{channel.current}}",
|
||||
"aria-label": "Join {{channel.name}}"
|
||||
},
|
||||
"events": { "dblclick": "join-channel" },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "channel-glyph", "children": [{ "text": "◉" }] },
|
||||
{ "tag": "span", "part": "channel-name", "children": [{ "text": "{{channel.name}}" }] },
|
||||
{ "tag": "small", "part": "channel-count", "children": [{ "text": "{{channel.memberCount}}" }] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "ul",
|
||||
"part": "channel-voice-members",
|
||||
"when": { "path": "channel.current", "equals": true },
|
||||
"attributes": { "aria-label": "Members connected to this channel" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "li",
|
||||
"part": "channel-voice-member",
|
||||
"repeat": { "path": "channel.members", "as": "voicemember" },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "channel-member-avatar", "children": [{ "text": "{{voicemember.name}}" }] },
|
||||
{ "tag": "span", "part": "channel-member-name", "children": [{ "text": "{{voicemember.name}}" }] },
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "channel-member-state",
|
||||
"when": { "path": "voicemember.self", "equals": true },
|
||||
"children": [{ "text": "YOU" }]
|
||||
},
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "channel-member-state",
|
||||
"when": { "path": "voicemember.speaking", "equals": true },
|
||||
"attributes": { "aria-label": "Speaking" },
|
||||
"children": [{ "text": "●" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "section",
|
||||
"part": "conversation",
|
||||
"attributes": { "aria-label": "Current channel conversation" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "conversation-heading",
|
||||
"children": [
|
||||
{ "tag": "span", "part": "conversation-glyph", "children": [{ "text": "◉" }] },
|
||||
{ "tag": "h1", "part": "channel-title", "children": [{ "text": "{{session.status.channelName}}" }] },
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "connection-state",
|
||||
"when": { "path": "session.status.connected", "equals": true },
|
||||
"children": [{ "text": "CONNECTED" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.chat-panel", "part": "chat" },
|
||||
{ "widget": "voice.screen-share-player", "part": "screen-player" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "aside",
|
||||
"part": "members-panel",
|
||||
"attributes": { "aria-label": "Members in this channel" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "members-heading",
|
||||
"children": [
|
||||
{ "tag": "h2", "part": "section-label", "children": [{ "text": "MEMBERS" }] }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "ul",
|
||||
"part": "member-list",
|
||||
"children": [
|
||||
{
|
||||
"tag": "li",
|
||||
"part": "member-row",
|
||||
"repeat": { "path": "session.members", "as": "member" },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "member-avatar", "children": [{ "text": "{{member.name}}" }] },
|
||||
{ "tag": "span", "part": "member-name", "children": [{ "text": "{{member.name}}" }] },
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "speaking-indicator",
|
||||
"when": { "path": "member.speaking", "equals": true },
|
||||
"attributes": { "aria-label": "Speaking" },
|
||||
"children": [{ "text": "SPEAKING" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.whisper-controls", "part": "whisper-controls" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "footer",
|
||||
"part": "voice-dock",
|
||||
"attributes": { "aria-label": "Voice controls" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "voice-dock-heading",
|
||||
"children": [
|
||||
{ "tag": "span", "part": "connection-indicator", "children": [{ "text": "●" }] },
|
||||
{ "tag": "strong", "part": "voice-channel-name", "children": [{ "text": "{{session.status.channelName}}" }] },
|
||||
{ "tag": "span", "part": "voice-dock-caption", "children": [{ "text": "VOICE CONNECTED" }] }
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.audio-controls", "part": "audio-controls" },
|
||||
{ "widget": "voice.disconnect-control", "part": "disconnect-control" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"schemaVersion": 3,
|
||||
"packageType": "open-skin",
|
||||
"id": "community.harbor-voice",
|
||||
"name": "Harbor Voice Workspace",
|
||||
"version": "1.0.0",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired dark voice workspace using only WebSpeak host controls and public session data.",
|
||||
"entry": "skin.css",
|
||||
"components": "components.json",
|
||||
"minAppVersion": "0.2.7-preview"
|
||||
}
|
||||
@@ -0,0 +1,706 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--skin-harbor-bg: #17181b;
|
||||
--skin-harbor-rail: #141518;
|
||||
--skin-harbor-panel: #1d1e22;
|
||||
--skin-harbor-raised: #292a2f;
|
||||
--skin-harbor-hover: #303137;
|
||||
--skin-harbor-border: #303136;
|
||||
--skin-harbor-text: #f0f1f3;
|
||||
--skin-harbor-muted: #a0a2a8;
|
||||
--skin-harbor-dim: #777a82;
|
||||
--skin-harbor-accent: #58c877;
|
||||
--skin-harbor-danger: #e36b6b;
|
||||
--skin-harbor-radius: 9px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home"] {
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
justify-items: center;
|
||||
min-height: 100dvh;
|
||||
gap: 28px;
|
||||
padding: clamp(16px, 4vw, 42px);
|
||||
color: var(--skin-harbor-text);
|
||||
background:
|
||||
radial-gradient(ellipse at 50% 44%, #25272b 0, transparent 58%),
|
||||
var(--skin-harbor-bg);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.home-header"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
width: min(100%, 1080px);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.brand-mark"],
|
||||
[data-ws-plugin-part="harbor-workspace.brand-mark"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 34px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
color: #101512;
|
||||
background: var(--skin-harbor-accent);
|
||||
font-size: 14px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.brand-name"],
|
||||
[data-ws-plugin-part="harbor-workspace.brand-name"] {
|
||||
color: var(--skin-harbor-text);
|
||||
font-size: 12px;
|
||||
font-weight: 850;
|
||||
letter-spacing: .1em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.language"] { margin-left: auto; }
|
||||
|
||||
[data-ws-plugin-part="harbor-home.connection-card"] {
|
||||
align-self: center;
|
||||
width: min(100%, 510px);
|
||||
padding: clamp(22px, 5vw, 40px);
|
||||
border: 1px solid var(--skin-harbor-border);
|
||||
border-radius: 16px;
|
||||
background: color-mix(in srgb, var(--skin-harbor-panel) 96%, transparent);
|
||||
box-shadow: 0 24px 70px #0007;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.eyebrow"] {
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .14em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.title"] {
|
||||
margin: 12px 0 8px;
|
||||
font-size: clamp(26px, 5vw, 38px);
|
||||
letter-spacing: -.04em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.description"],
|
||||
[data-ws-plugin-part="harbor-home.home-footer"] {
|
||||
color: var(--skin-harbor-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home.home-footer"] {
|
||||
width: min(100%, 1080px);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home"] .join-card {
|
||||
color: var(--skin-harbor-text);
|
||||
background: transparent;
|
||||
border-color: var(--skin-harbor-border);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home"] .field-wrap,
|
||||
[data-ws-plugin-part="harbor-home"] .settings-select {
|
||||
color: var(--skin-harbor-muted);
|
||||
background: var(--skin-harbor-raised);
|
||||
border-color: var(--skin-harbor-border);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-home"] .field-wrap input,
|
||||
[data-ws-plugin-part="harbor-home"] .settings-select {
|
||||
color: var(--skin-harbor-text);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] {
|
||||
display: grid;
|
||||
grid-template-columns: 68px 276px minmax(340px, 1fr) 244px;
|
||||
grid-template-rows: 54px minmax(0, 1fr);
|
||||
width: 100%;
|
||||
height: 100dvh;
|
||||
min-height: 560px;
|
||||
overflow: hidden;
|
||||
color: var(--skin-harbor-text);
|
||||
background: var(--skin-harbor-bg);
|
||||
font-family: Inter, "Segoe UI", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"],
|
||||
[data-ws-plugin-part="harbor-workspace"] * {
|
||||
scrollbar-color: #4a4c51 transparent;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] *::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
[data-ws-plugin-part="harbor-workspace"] *::-webkit-scrollbar-thumb { background: #4a4c51; border-radius: 6px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.topbar"] {
|
||||
z-index: 2;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
min-width: 0;
|
||||
padding: 0 14px;
|
||||
border-bottom: 1px solid var(--skin-harbor-border);
|
||||
background: var(--skin-harbor-rail);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-title"] {
|
||||
overflow: hidden;
|
||||
margin-right: auto;
|
||||
color: var(--skin-harbor-muted);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-rail"] {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 13px 7px;
|
||||
background: var(--skin-harbor-rail);
|
||||
border-right: 1px solid #ffffff08;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"] {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 3px;
|
||||
width: 52px;
|
||||
min-height: 54px;
|
||||
padding: 4px;
|
||||
border: 0;
|
||||
border-radius: 13px;
|
||||
color: var(--skin-harbor-muted);
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"]:hover,
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"]:focus-visible {
|
||||
color: var(--skin-harbor-text);
|
||||
background: var(--skin-harbor-raised);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"][aria-current="true"] {
|
||||
color: var(--skin-harbor-text);
|
||||
background: var(--skin-harbor-raised);
|
||||
box-shadow: inset 3px 0 var(--skin-harbor-accent);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-monogram"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #ffffff12;
|
||||
border-radius: 13px;
|
||||
color: var(--skin-harbor-text);
|
||||
background: linear-gradient(145deg, #383a40, #222429);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-kind"] {
|
||||
color: var(--skin-harbor-dim);
|
||||
font-size: 8px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-panel"] {
|
||||
z-index: 1;
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 12px 9px 118px;
|
||||
border-right: 1px solid var(--skin-harbor-border);
|
||||
background: var(--skin-harbor-panel);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-summary"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-height: 49px;
|
||||
padding: 3px 9px 13px;
|
||||
border-bottom: 1px solid #ffffff0b;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-name"] {
|
||||
overflow: hidden;
|
||||
color: var(--skin-harbor-text);
|
||||
font-size: 13px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-subtitle"],
|
||||
[data-ws-plugin-part="harbor-workspace.section-label"] {
|
||||
color: var(--skin-harbor-dim);
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .08em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-list"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-height: 0;
|
||||
padding-top: 13px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.section-label"] { margin: 0 8px 7px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
padding: 6px 9px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
color: var(--skin-harbor-muted);
|
||||
background: transparent;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"]:hover,
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][aria-current="true"] {
|
||||
color: var(--skin-harbor-text);
|
||||
background: var(--skin-harbor-raised);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][aria-current="true"] {
|
||||
box-shadow: inset 2px 0 var(--skin-harbor-accent);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-glyph"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 18px;
|
||||
color: var(--skin-harbor-dim);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-name"] {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-count"] {
|
||||
color: var(--skin-harbor-dim);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-voice-members"] {
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
margin: 0 0 6px 29px;
|
||||
padding: 2px 0 3px;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-voice-member"] {
|
||||
display: grid;
|
||||
grid-template-columns: 18px minmax(0, 1fr) auto auto;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
min-height: 21px;
|
||||
color: var(--skin-harbor-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-avatar"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
overflow: hidden;
|
||||
border-radius: 50%;
|
||||
color: var(--skin-harbor-text);
|
||||
background: #393b41;
|
||||
font-size: 7px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-name"] {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-state"] {
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 8px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation"] {
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
display: grid;
|
||||
grid-template-rows: 48px minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding: 0 17px 12px;
|
||||
background: var(--skin-harbor-bg);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation-heading"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
min-width: 0;
|
||||
border-bottom: 1px solid var(--skin-harbor-border);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation-glyph"] {
|
||||
color: var(--skin-harbor-muted);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-title"] {
|
||||
min-width: 0;
|
||||
margin: 0 auto 0 0;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.connection-state"] {
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .06em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] [data-ws-part="voice.chat"] {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
color: var(--skin-harbor-text);
|
||||
background: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] .chat-panel { min-height: 0; background: transparent; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .chat-heading { border-color: var(--skin-harbor-border); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .message-bubble { color: var(--skin-harbor-text); background: var(--skin-harbor-panel); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .message-composer { border-color: var(--skin-harbor-border); background: var(--skin-harbor-panel); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .message-composer input { color: var(--skin-harbor-text); }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.members-panel"] {
|
||||
grid-column: 4;
|
||||
grid-row: 2;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 16px 11px 118px;
|
||||
border-left: 1px solid var(--skin-harbor-border);
|
||||
background: var(--skin-harbor-panel);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.members-heading"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.members-heading"] .section-label { margin: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace.member-total"] { color: var(--skin-harbor-dim); font-size: 11px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-list"] {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
margin: 8px 0 16px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-row"] {
|
||||
display: grid;
|
||||
grid-template-columns: 32px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
column-gap: 8px;
|
||||
min-height: 42px;
|
||||
padding: 4px 5px;
|
||||
border-radius: 6px;
|
||||
color: var(--skin-harbor-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-row"]:hover { background: var(--skin-harbor-raised); }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-avatar"] {
|
||||
grid-row: span 2;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
overflow: hidden;
|
||||
border-radius: 50%;
|
||||
color: var(--skin-harbor-text);
|
||||
background: #393b41;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-name"] {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--skin-harbor-text);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.speaking-indicator"] {
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 8px;
|
||||
font-weight: 800;
|
||||
letter-spacing: .05em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock"] {
|
||||
z-index: 4;
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
align-self: end;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 6px 8px;
|
||||
min-width: 0;
|
||||
padding: 9px;
|
||||
border: 1px solid var(--skin-harbor-border);
|
||||
border-radius: 10px;
|
||||
background: #222328;
|
||||
box-shadow: 0 8px 20px #0005;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-heading"] {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: 10px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 2px 7px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.connection-indicator"] {
|
||||
grid-row: span 2;
|
||||
color: var(--skin-harbor-accent);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-channel-name"] {
|
||||
overflow: hidden;
|
||||
color: var(--skin-harbor-text);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-caption"] {
|
||||
color: var(--skin-harbor-dim);
|
||||
font-size: 8px;
|
||||
letter-spacing: .05em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] [data-ws-part="voice.audio-controls"] { min-width: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .desktop-audio-dock {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace"] .desktop-audio-dock-copy { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .desktop-audio-dock-actions { gap: 2px; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .dock-audio-button { width: 34px; height: 34px; color: var(--skin-harbor-muted); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .dock-audio-button:hover,
|
||||
[data-ws-plugin-part="harbor-workspace"] .dock-audio-button:focus-visible { color: var(--skin-harbor-accent); background: var(--skin-harbor-raised); border-color: var(--skin-harbor-border); }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"] {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] .ws-plugin-disconnect-control {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
color: var(--skin-harbor-danger);
|
||||
background: var(--skin-harbor-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] .ws-plugin-disconnect-control:hover { background: #3a292b; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] button:focus-visible,
|
||||
[data-ws-plugin-part="harbor-home"] button:focus-visible,
|
||||
[data-ws-plugin-part="harbor-home"] input:focus-visible {
|
||||
outline: 2px solid var(--skin-harbor-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 1060px) {
|
||||
[data-ws-plugin-part="harbor-workspace"] {
|
||||
grid-template-columns: 60px 236px minmax(300px, 1fr) 204px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
[data-ws-plugin-part="harbor-workspace"] {
|
||||
grid-template-columns: 56px minmax(0, 1fr);
|
||||
grid-template-rows: 50px 126px minmax(220px, 1fr) 82px 74px;
|
||||
height: 100dvh;
|
||||
min-height: 540px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.topbar"] { padding: 0 8px; gap: 7px; }
|
||||
[data-ws-plugin-part="harbor-workspace.brand-mark"] { flex-basis: 28px; width: 28px; height: 28px; }
|
||||
[data-ws-plugin-part="harbor-workspace.brand-name"] { font-size: 10px; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-title"] { font-size: 10px; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-rail"] { grid-column: 1; grid-row: 2 / 6; padding: 8px 3px; }
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"] { width: 48px; min-height: 48px; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-monogram"] { width: 36px; height: 36px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-panel"] {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: 30px minmax(0, 1fr);
|
||||
gap: 4px;
|
||||
overflow: hidden;
|
||||
padding: 5px 8px;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--skin-harbor-border);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-summary"] {
|
||||
min-height: 0;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 2px;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.server-name"] { max-width: 60%; font-size: 11px; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-subtitle"],
|
||||
[data-ws-plugin-part="harbor-workspace.channel-list"] > [data-ws-plugin-part="harbor-workspace.section-label"] { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-list"] {
|
||||
flex-direction: row;
|
||||
gap: 5px;
|
||||
overflow: auto hidden;
|
||||
padding: 0;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.channel-item"] { flex: 0 0 auto; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"] { width: max-content; min-width: 116px; min-height: 42px; margin: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-voice-members"] { display: none; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation"] {
|
||||
grid-column: 2;
|
||||
grid-row: 3;
|
||||
grid-template-rows: 40px minmax(0, 1fr) auto;
|
||||
gap: 6px;
|
||||
padding: 0 8px 6px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.members-panel"] {
|
||||
grid-column: 2;
|
||||
grid-row: 4;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
overflow: hidden;
|
||||
padding: 5px 8px;
|
||||
border-top: 1px solid var(--skin-harbor-border);
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.members-heading"] { gap: 5px; }
|
||||
[data-ws-plugin-part="harbor-workspace.members-heading"] .section-label { max-width: 60px; font-size: 8px; }
|
||||
[data-ws-plugin-part="harbor-workspace.member-list"] {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
overflow: auto hidden;
|
||||
margin: 0;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.member-row"] { flex: 0 0 auto; grid-template-columns: 28px auto; min-height: 38px; padding: 2px 4px; }
|
||||
[data-ws-plugin-part="harbor-workspace.member-avatar"] { width: 26px; height: 26px; }
|
||||
[data-ws-plugin-part="harbor-workspace.speaking-indicator"] { display: none; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock"] {
|
||||
grid-column: 2;
|
||||
grid-row: 5;
|
||||
align-self: stretch;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 8px;
|
||||
border-radius: 0;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-heading"] { grid-column: auto; grid-row: auto; }
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-caption"] { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"] { grid-column: 2; grid-row: 1; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .mobile-voice-controls { gap: 5px; min-width: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .mobile-voice-toggle { min-width: 44px; min-height: 44px; color: var(--skin-harbor-text); background: var(--skin-harbor-raised); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .ws-plugin-disconnect-control { width: 42px; height: 44px; }
|
||||
}
|
||||
|
||||
@media (max-width: 460px) {
|
||||
[data-ws-plugin-part="harbor-workspace"] { grid-template-columns: 50px minmax(0, 1fr); }
|
||||
[data-ws-plugin-part="harbor-workspace.server-rail"] { padding-inline: 1px; }
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"] { width: 44px; }
|
||||
[data-ws-plugin-part="harbor-workspace.topbar"] { padding-inline: 5px; }
|
||||
[data-ws-plugin-part="harbor-workspace.brand-name"] { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-title"] { max-width: 100px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-panel"] { grid-column: 2; }
|
||||
[data-ws-plugin-part="harbor-workspace.conversation"] { grid-column: 2; }
|
||||
[data-ws-plugin-part="harbor-workspace.members-panel"] { grid-column: 2; }
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock"] { grid-column: 2; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
[data-ws-plugin-part="harbor-home"] *,
|
||||
[data-ws-plugin-part="harbor-workspace"] * {
|
||||
scroll-behavior: auto;
|
||||
animation-duration: .01ms;
|
||||
animation-iteration-count: 1;
|
||||
transition-duration: .01ms;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user