collabmd 0.1.21 → 0.1.23
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/README.md +94 -7
- package/bin/collabmd.js +3 -2
- package/docker-compose.yml +13 -1
- package/package.json +2 -1
- package/public/assets/css/style.css +1 -1
- package/public/assets/js/chunks/{chunk-HEWVH67U.js → chunk-CYK7KO7W.js} +8 -8
- package/public/assets/js/chunks/editor-session-S5AT7BMV.js +22 -0
- package/public/assets/js/{excalidraw-editor-TCIH6GJL.js → excalidraw-editor-5YWMGLKF.js} +145 -62
- package/public/assets/js/excalidraw-editor.js +1 -1
- package/public/assets/js/main.js +503 -182
- package/public/index.html +104 -84
- package/src/client/application/app-shell/git-feature.js +247 -9
- package/src/client/application/app-shell/ui-feature.js +65 -7
- package/src/client/application/app-shell/workspace-feature.js +46 -0
- package/src/client/application/app-shell-elements.js +2 -0
- package/src/client/application/mermaid-preview-hydrator.js +1 -1
- package/src/client/application/plantuml-preview-hydrator.js +1 -1
- package/src/client/application/workspace-coordinator.js +147 -18
- package/src/client/application/workspace-preview-controller.js +34 -0
- package/src/client/application/workspace-route-controller.js +104 -0
- package/src/client/bootstrap/collabmd-app-shell.js +95 -0
- package/src/client/domain/runtime-paths.js +5 -0
- package/src/client/excalidraw-editor.js +50 -2
- package/src/client/infrastructure/auth-client.js +219 -52
- package/src/client/infrastructure/browser-navigation-port.js +20 -0
- package/src/client/infrastructure/editor-collaboration-client.js +4 -0
- package/src/client/infrastructure/editor-session.js +47 -7
- package/src/client/infrastructure/editor-view-adapter.js +122 -58
- package/src/client/infrastructure/runtime-config.js +66 -0
- package/src/client/presentation/comment-ui-controller.js +82 -26
- package/src/client/presentation/comments-panel.js +2 -2
- package/src/client/presentation/excalidraw-embed-controller.js +60 -2
- package/src/client/presentation/file-history-view-controller.js +806 -0
- package/src/client/presentation/git-diff-view-controller.js +718 -121
- package/src/client/presentation/git-panel-controller.js +458 -66
- package/src/client/presentation/layout-controller.js +1 -1
- package/src/client/styles/components/actions.css +89 -0
- package/src/client/styles/components/feedback.css +43 -0
- package/src/client/styles/components/navigation.css +68 -0
- package/src/client/styles/components/scrollbars.css +104 -0
- package/src/client/styles/components/states.css +289 -0
- package/src/client/styles/components/surfaces.css +155 -0
- package/src/client/styles/features/backlinks.css +213 -0
- package/src/client/styles/features/collaboration-chat.css +228 -0
- package/src/client/styles/features/collaboration-dialogs.css +154 -0
- package/src/client/styles/features/collaboration-presence.css +103 -0
- package/src/client/styles/features/collaboration-ui.css +3 -0
- package/src/client/styles/features/comment-card.css +236 -0
- package/src/client/styles/features/comment-markdown.css +127 -0
- package/src/client/styles/features/comment-overlays.css +60 -0
- package/src/client/styles/features/comments-drawer.css +120 -0
- package/src/client/styles/features/comments.css +4 -0
- package/src/client/styles/features/diagram-preview.css +227 -0
- package/src/client/styles/features/diff-commit.css +268 -0
- package/src/client/styles/features/diff-lines.css +160 -0
- package/src/client/styles/features/diff-toolbar.css +98 -0
- package/src/client/styles/features/diff.css +3 -0
- package/src/client/styles/features/embedded-preview.css +218 -0
- package/src/client/styles/features/git-branch.css +155 -0
- package/src/client/styles/features/git-files.css +105 -0
- package/src/client/styles/features/git-history.css +339 -0
- package/src/client/styles/features/git.css +3 -0
- package/src/client/styles/features/media-lightbox.css +157 -0
- package/src/client/styles/features/outline.css +115 -0
- package/src/client/styles/features/preview-content.css +3 -0
- package/src/client/styles/features/preview-markdown.css +201 -0
- package/src/client/styles/features/preview-sidebars.css +2 -0
- package/src/client/styles/features/quick-switcher.css +167 -0
- package/src/client/styles/foundation/themes.css +347 -0
- package/src/client/styles/foundation/tokens.css +66 -0
- package/src/client/styles/foundation/utilities.css +36 -0
- package/src/client/styles/layout/editor-page.css +203 -0
- package/src/client/styles/layout/overlays.css +132 -0
- package/src/client/styles/layout/responsive.css +251 -0
- package/src/client/styles/layout/shell.css +314 -0
- package/src/client/styles/layout/sidebar.css +176 -0
- package/src/client/styles/layout/view-modes.css +92 -0
- package/src/client/styles/overrides/codemirror.css +53 -0
- package/src/client/styles/overrides/highlightjs.css +7 -0
- package/src/client/styles/overrides/vendor.css +2 -0
- package/src/client/styles/primitives/controls.css +276 -0
- package/src/client/styles/style.css +25 -4945
- package/src/server/auth/create-auth-service.js +373 -15
- package/src/server/auth/session-cookie.js +30 -4
- package/src/server/config/env.js +121 -5
- package/src/server/create-app-server.js +8 -0
- package/src/server/domain/collaboration/collaboration-room.js +90 -47
- package/src/server/index.js +3 -1
- package/src/server/infrastructure/git/command-runner.js +2 -1
- package/src/server/infrastructure/git/git-service.js +48 -2
- package/src/server/infrastructure/git/history-service.js +683 -0
- package/src/server/infrastructure/git/parsers.js +30 -0
- package/src/server/infrastructure/git/responses.js +73 -0
- package/src/server/infrastructure/http/create-auth-api-handler.js +30 -2
- package/src/server/infrastructure/http/create-git-api-command-handler.js +2 -0
- package/src/server/infrastructure/http/create-git-api-handler.js +2 -0
- package/src/server/infrastructure/http/create-git-api-query-handler.js +61 -0
- package/src/server/infrastructure/http/create-request-handler.js +15 -0
- package/public/assets/js/chunks/editor-session-EAUBJCHH.js +0 -22
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/* ===== SIDEBAR ===== */
|
|
2
|
+
|
|
3
|
+
.sidebar {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 260px;
|
|
7
|
+
min-width: 260px;
|
|
8
|
+
max-width: 260px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border-right: 1px solid var(--color-divider);
|
|
11
|
+
background: var(--color-surface);
|
|
12
|
+
transition: width 180ms cubic-bezier(0.16, 1, 0.3, 1), min-width 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sidebar.collapsed {
|
|
16
|
+
width: 0;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
border-right: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sidebar-header {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
min-height: var(--toolbar-h);
|
|
27
|
+
gap: var(--space-2);
|
|
28
|
+
padding: var(--space-3);
|
|
29
|
+
border-bottom: 1px solid var(--color-divider);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sidebar-brand {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--space-2);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sidebar-title {
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
font-size: var(--text-sm);
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
letter-spacing: -0.02em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sidebar-actions {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 4px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sidebar-close-btn {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sidebar-search {
|
|
55
|
+
padding: var(--space-2) var(--space-3);
|
|
56
|
+
border-bottom: 1px solid var(--color-divider);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sidebar-search-input {
|
|
60
|
+
width: 100%;
|
|
61
|
+
padding: var(--space-1) var(--space-2);
|
|
62
|
+
border: 1px solid transparent;
|
|
63
|
+
border-radius: var(--radius-sm);
|
|
64
|
+
background: var(--color-surface-offset);
|
|
65
|
+
color: var(--color-text);
|
|
66
|
+
outline: none;
|
|
67
|
+
transition: border-color var(--transition-interactive);
|
|
68
|
+
font-size: var(--text-xs);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sidebar-search-input::placeholder {
|
|
72
|
+
color: var(--color-text-faint);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sidebar-search-input:focus {
|
|
76
|
+
border-color: var(--color-primary);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes pulse-dot {
|
|
80
|
+
0%,
|
|
81
|
+
100% {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
transform: scale(1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
50% {
|
|
87
|
+
opacity: 0.5;
|
|
88
|
+
transform: scale(0.8);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.file-tree {
|
|
93
|
+
flex: 1;
|
|
94
|
+
overflow-x: hidden;
|
|
95
|
+
overflow-y: auto;
|
|
96
|
+
padding: var(--space-2) 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.file-tree-empty {
|
|
100
|
+
padding: var(--space-4) var(--space-3);
|
|
101
|
+
color: var(--color-text-faint);
|
|
102
|
+
text-align: center;
|
|
103
|
+
font-size: var(--text-xs);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.file-tree-item {
|
|
107
|
+
position: relative;
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: var(--space-1);
|
|
111
|
+
width: 100%;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
padding-top: 4px;
|
|
114
|
+
padding-right: 8px;
|
|
115
|
+
padding-bottom: 4px;
|
|
116
|
+
padding-left: calc(8px + var(--depth, 0) * 16px);
|
|
117
|
+
border: none;
|
|
118
|
+
border-radius: 0;
|
|
119
|
+
background: none;
|
|
120
|
+
color: var(--color-text-muted);
|
|
121
|
+
text-align: left;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
user-select: none;
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
transition: background var(--transition-interactive), color var(--transition-interactive);
|
|
126
|
+
font-family: var(--font-body);
|
|
127
|
+
font-size: var(--text-ui-sm);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.file-tree-item:not([data-depth='0'])::before {
|
|
131
|
+
content: '';
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 0;
|
|
134
|
+
bottom: 0;
|
|
135
|
+
left: calc(8px + (var(--depth, 1) - 1) * 16px + 6px);
|
|
136
|
+
width: 1px;
|
|
137
|
+
background-color: var(--color-border);
|
|
138
|
+
opacity: 0.3;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.file-tree-file {
|
|
142
|
+
padding-left: calc(8px + var(--depth, 0) * 16px + 18px);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.file-tree-item:hover {
|
|
146
|
+
background: var(--color-surface-offset);
|
|
147
|
+
color: var(--color-text);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.file-tree-file.active {
|
|
151
|
+
background: var(--color-primary-highlight);
|
|
152
|
+
color: var(--color-primary);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.file-tree-chevron {
|
|
156
|
+
flex-shrink: 0;
|
|
157
|
+
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.file-tree-chevron.expanded {
|
|
161
|
+
transform: rotate(90deg);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.file-tree-icon {
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
opacity: 0.5;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.file-tree-name {
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
text-overflow: ellipsis;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.file-tree-children {
|
|
175
|
+
/* Children indentation handled by paddingLeft on items */
|
|
176
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* ===== VIEW MODES ===== */
|
|
2
|
+
|
|
3
|
+
.editor-layout[data-view="editor"] .preview-pane,
|
|
4
|
+
.editor-layout[data-view="editor"] .resizer {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.editor-layout[data-view="preview"] .editor-pane,
|
|
9
|
+
.editor-layout[data-view="preview"] .resizer {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-layout[data-view="preview"] .preview-pane {
|
|
14
|
+
flex: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-layout[data-view="preview"] .preview-body {
|
|
18
|
+
--preview-content-max-width: 1080px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-layout[data-view="preview"] .preview-content {
|
|
22
|
+
max-width: 1080px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editor-layout[data-view="preview"] .preview-content.is-excalidraw-file-preview,
|
|
26
|
+
.editor-layout[data-view="preview"] .preview-content.is-image-file-preview,
|
|
27
|
+
.editor-layout[data-view="preview"] .preview-content.is-mermaid-file-preview,
|
|
28
|
+
.editor-layout[data-view="preview"] .preview-content.is-plantuml-file-preview {
|
|
29
|
+
max-width: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.editor-layout[data-view="preview"] .preview-content p {
|
|
33
|
+
max-width: 84ch;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.editor-layout[data-view="preview"] .preview-content p:has(> .excalidraw-embed-placeholder:only-child),
|
|
37
|
+
.editor-layout[data-view="preview"] .preview-content p:has(> .video-embed-placeholder:only-child),
|
|
38
|
+
.editor-layout[data-view="preview"] .preview-content p:has(> .mermaid-shell:only-child),
|
|
39
|
+
.editor-layout[data-view="preview"] .preview-content p:has(> .plantuml-shell:only-child) {
|
|
40
|
+
max-width: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (min-width: 769px) {
|
|
44
|
+
.preview-body > .comments-drawer,
|
|
45
|
+
.preview-body > .outline-panel {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: var(--preview-floating-sidebar-gap);
|
|
48
|
+
right: var(--preview-floating-sidebar-gap);
|
|
49
|
+
bottom: var(--preview-floating-sidebar-gap);
|
|
50
|
+
z-index: 20;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
border: 1px solid var(--color-divider);
|
|
53
|
+
border-radius: calc(var(--radius-lg) + 2px);
|
|
54
|
+
box-shadow: var(--shadow-lg);
|
|
55
|
+
backdrop-filter: blur(14px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.preview-body > .comments-drawer {
|
|
59
|
+
width: var(--preview-floating-comments-width);
|
|
60
|
+
min-width: 240px;
|
|
61
|
+
border-left: 1px solid var(--color-divider);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.preview-body > .outline-panel {
|
|
65
|
+
width: var(--preview-floating-outline-width);
|
|
66
|
+
border-left: 1px solid var(--color-divider);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.preview-body > .comments-drawer.hidden,
|
|
70
|
+
.preview-body > .outline-panel.hidden {
|
|
71
|
+
display: flex !important;
|
|
72
|
+
opacity: 0;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
transform: translateX(12px);
|
|
75
|
+
visibility: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.preview-body > .comments-drawer:not(.hidden),
|
|
79
|
+
.preview-body > .outline-panel:not(.hidden) {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
transform: translateX(0);
|
|
82
|
+
visibility: visible;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.preview-body:has(> .outline-panel:not(.hidden)) > .comments-drawer:not(.hidden) {
|
|
86
|
+
right: calc(var(--preview-floating-sidebar-gap) * 2 + var(--preview-floating-outline-width));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.editor-layout[data-view="editor"] .editor-pane {
|
|
91
|
+
flex: 1;
|
|
92
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* ===== OVERRIDES / CODEMIRROR ===== */
|
|
2
|
+
|
|
3
|
+
.cm-tooltip-autocomplete {
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
border: 1px solid var(--color-divider) !important;
|
|
6
|
+
border-radius: var(--radius-md) !important;
|
|
7
|
+
background: var(--color-surface) !important;
|
|
8
|
+
box-shadow: var(--shadow-md) !important;
|
|
9
|
+
font-family: var(--font-body);
|
|
10
|
+
font-size: var(--text-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cm-tooltip-autocomplete > ul {
|
|
14
|
+
max-height: 240px !important;
|
|
15
|
+
padding: var(--space-1) 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cm-tooltip-autocomplete > ul > li {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: var(--space-2);
|
|
22
|
+
padding: var(--space-2) var(--space-3) !important;
|
|
23
|
+
line-height: 1.4;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cm-tooltip-autocomplete > ul > li[aria-selected] {
|
|
27
|
+
background: var(--color-primary) !important;
|
|
28
|
+
color: var(--color-text-inverse) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cm-tooltip-autocomplete .cm-completionLabel {
|
|
32
|
+
flex: 1;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cm-tooltip-autocomplete .cm-completionDetail {
|
|
39
|
+
margin-left: auto;
|
|
40
|
+
color: inherit;
|
|
41
|
+
opacity: 0.6;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
font-size: var(--text-xs);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cm-tooltip-autocomplete > ul > li[aria-selected] .cm-completionDetail {
|
|
47
|
+
opacity: 0.85;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cm-completionIcon-text::after {
|
|
51
|
+
content: '📄';
|
|
52
|
+
font-size: var(--text-ui-sm);
|
|
53
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/* ===== PRIMITIVES / CONTROLS ===== */
|
|
2
|
+
|
|
3
|
+
.ui-button,
|
|
4
|
+
.btn {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: var(--space-2);
|
|
9
|
+
min-height: var(--control-h-md);
|
|
10
|
+
padding: 0 var(--space-4);
|
|
11
|
+
border: 1px solid transparent;
|
|
12
|
+
border-radius: var(--radius-md);
|
|
13
|
+
font-size: var(--text-sm);
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
transition:
|
|
18
|
+
transform var(--transition-interactive),
|
|
19
|
+
background var(--transition-interactive),
|
|
20
|
+
color var(--transition-interactive),
|
|
21
|
+
border-color var(--transition-interactive),
|
|
22
|
+
box-shadow var(--transition-interactive);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ui-button:active,
|
|
26
|
+
.btn:active {
|
|
27
|
+
transform: scale(0.97);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ui-button--primary,
|
|
31
|
+
.btn-primary {
|
|
32
|
+
background: var(--color-primary);
|
|
33
|
+
color: var(--color-text-inverse);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ui-button--primary:hover,
|
|
37
|
+
.btn-primary:hover {
|
|
38
|
+
background: var(--color-primary-hover);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ui-button--secondary,
|
|
42
|
+
.btn-secondary {
|
|
43
|
+
background: var(--color-surface-2);
|
|
44
|
+
color: var(--color-text);
|
|
45
|
+
border-color: var(--color-border);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ui-button--secondary:hover,
|
|
49
|
+
.btn-secondary:hover {
|
|
50
|
+
background: var(--color-surface-dynamic);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ui-button--danger,
|
|
54
|
+
.btn-danger {
|
|
55
|
+
background: var(--color-error);
|
|
56
|
+
color: var(--color-text-inverse);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ui-button--danger:hover,
|
|
60
|
+
.btn-danger:hover {
|
|
61
|
+
filter: brightness(0.95);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ui-button--ghost,
|
|
65
|
+
.btn-ghost {
|
|
66
|
+
background: transparent;
|
|
67
|
+
color: var(--color-text-muted);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ui-button--ghost:hover,
|
|
71
|
+
.btn-ghost:hover {
|
|
72
|
+
background: var(--color-surface-offset);
|
|
73
|
+
color: var(--color-text);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ui-button--lg,
|
|
77
|
+
.btn-lg {
|
|
78
|
+
min-height: var(--control-h-lg);
|
|
79
|
+
padding: 0 var(--space-6);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ui-button--compact,
|
|
84
|
+
.btn-compact {
|
|
85
|
+
min-height: var(--control-h-xs);
|
|
86
|
+
gap: var(--space-1);
|
|
87
|
+
padding: 0 var(--space-2);
|
|
88
|
+
border-radius: var(--radius-sm);
|
|
89
|
+
font-size: var(--text-xs);
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ui-button--toggle.active,
|
|
94
|
+
.ui-button--toggle.is-active,
|
|
95
|
+
.ui-button--toggle[aria-pressed='true'],
|
|
96
|
+
.ui-button--toggle[aria-selected='true'] {
|
|
97
|
+
border-color: var(--interactive-border);
|
|
98
|
+
background: var(--interactive-surface);
|
|
99
|
+
color: var(--color-primary);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ui-icon-button {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
width: var(--control-h-xs);
|
|
107
|
+
min-width: var(--control-h-xs);
|
|
108
|
+
height: var(--control-h-xs);
|
|
109
|
+
padding: 0;
|
|
110
|
+
border: 1px solid transparent;
|
|
111
|
+
border-radius: var(--radius-sm);
|
|
112
|
+
color: var(--color-text-muted);
|
|
113
|
+
background: transparent;
|
|
114
|
+
transition:
|
|
115
|
+
transform var(--transition-interactive),
|
|
116
|
+
background var(--transition-interactive),
|
|
117
|
+
color var(--transition-interactive),
|
|
118
|
+
border-color var(--transition-interactive);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ui-icon-button:hover {
|
|
122
|
+
background: var(--color-surface-offset);
|
|
123
|
+
color: var(--color-text);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ui-icon-button--toolbar {
|
|
127
|
+
width: 36px;
|
|
128
|
+
min-width: 36px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ui-pill-button {
|
|
132
|
+
border-radius: var(--radius-full);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ui-segmented-control {
|
|
136
|
+
display: inline-flex;
|
|
137
|
+
gap: 2px;
|
|
138
|
+
padding: 2px;
|
|
139
|
+
border-radius: var(--radius-md);
|
|
140
|
+
background: var(--color-surface-offset);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ui-segmented-control--pill {
|
|
144
|
+
padding: 3px;
|
|
145
|
+
border-radius: var(--radius-full);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.ui-segmented-btn {
|
|
149
|
+
display: inline-flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
min-width: 32px;
|
|
153
|
+
min-height: var(--control-h-xs);
|
|
154
|
+
padding: 0 var(--space-3);
|
|
155
|
+
border: 1px solid transparent;
|
|
156
|
+
border-radius: var(--radius-sm);
|
|
157
|
+
background: transparent;
|
|
158
|
+
color: var(--color-text-faint);
|
|
159
|
+
white-space: nowrap;
|
|
160
|
+
transition:
|
|
161
|
+
transform var(--transition-interactive),
|
|
162
|
+
background var(--transition-interactive),
|
|
163
|
+
color var(--transition-interactive),
|
|
164
|
+
border-color var(--transition-interactive),
|
|
165
|
+
box-shadow var(--transition-interactive);
|
|
166
|
+
font-size: var(--text-xs);
|
|
167
|
+
font-weight: 600;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ui-segmented-control--pill .ui-segmented-btn {
|
|
171
|
+
border-radius: var(--radius-full);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ui-segmented-btn:hover {
|
|
175
|
+
color: var(--color-text-muted);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ui-segmented-btn.active,
|
|
179
|
+
.ui-segmented-btn.is-active,
|
|
180
|
+
.ui-segmented-btn[aria-pressed='true'],
|
|
181
|
+
.ui-segmented-btn[aria-selected='true'] {
|
|
182
|
+
background: var(--color-surface);
|
|
183
|
+
color: var(--color-text);
|
|
184
|
+
box-shadow: var(--shadow-sm);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ui-button:disabled,
|
|
188
|
+
.btn:disabled,
|
|
189
|
+
.ui-icon-button:disabled,
|
|
190
|
+
.ui-segmented-btn:disabled {
|
|
191
|
+
opacity: 0.45;
|
|
192
|
+
cursor: not-allowed;
|
|
193
|
+
transform: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ui-input,
|
|
197
|
+
.input {
|
|
198
|
+
width: 100%;
|
|
199
|
+
min-height: var(--control-h-md);
|
|
200
|
+
padding: 0 var(--space-3);
|
|
201
|
+
border: 1px solid var(--color-border);
|
|
202
|
+
border-radius: var(--radius-md);
|
|
203
|
+
background: var(--color-surface);
|
|
204
|
+
color: var(--color-text);
|
|
205
|
+
font-size: var(--text-sm);
|
|
206
|
+
transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ui-input:focus,
|
|
210
|
+
.input:focus {
|
|
211
|
+
outline: none;
|
|
212
|
+
border-color: var(--color-primary);
|
|
213
|
+
box-shadow: var(--shadow-focus);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ui-input::placeholder,
|
|
217
|
+
.input::placeholder {
|
|
218
|
+
color: var(--color-text-faint);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.ui-badge {
|
|
222
|
+
display: inline-flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
min-height: 20px;
|
|
226
|
+
padding: 0 8px;
|
|
227
|
+
border-radius: var(--radius-full);
|
|
228
|
+
font-size: var(--text-meta);
|
|
229
|
+
font-weight: 600;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.ui-pill {
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
gap: var(--space-1);
|
|
236
|
+
min-height: 20px;
|
|
237
|
+
padding: 0 8px;
|
|
238
|
+
border-radius: var(--radius-full);
|
|
239
|
+
background: var(--surface-fill-strong);
|
|
240
|
+
color: var(--color-text-muted);
|
|
241
|
+
font-size: var(--text-meta);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.ui-panel {
|
|
245
|
+
border: var(--panel-border-width) solid var(--color-border);
|
|
246
|
+
border-radius: var(--radius-lg);
|
|
247
|
+
background: var(--color-surface);
|
|
248
|
+
box-shadow: var(--shadow-md);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.ui-toolbar-group {
|
|
252
|
+
display: inline-flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
gap: var(--space-2);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.ui-list-item {
|
|
258
|
+
border-radius: var(--radius-md);
|
|
259
|
+
border: var(--panel-border-width) solid var(--color-border);
|
|
260
|
+
background: var(--surface-fill-subtle);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.ui-floating-dock {
|
|
264
|
+
border: var(--panel-border-width) solid var(--color-divider);
|
|
265
|
+
border-radius: calc(var(--radius-lg) + 2px);
|
|
266
|
+
background: var(--surface-overlay);
|
|
267
|
+
box-shadow: var(--shadow-lg);
|
|
268
|
+
backdrop-filter: blur(14px);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.ui-dialog-surface {
|
|
272
|
+
border: var(--panel-border-width) solid var(--color-border);
|
|
273
|
+
border-radius: var(--radius-xl);
|
|
274
|
+
background: var(--color-surface);
|
|
275
|
+
box-shadow: var(--shadow-lg);
|
|
276
|
+
}
|