@muxima-ui/core 1.1.0 → 1.3.0
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 +15 -0
- package/fesm2022/muxima-ui-core-carousel.mjs +377 -0
- package/fesm2022/muxima-ui-core-carousel.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-color-picker.mjs +755 -0
- package/fesm2022/muxima-ui-core-color-picker.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-data-grid.mjs +1187 -0
- package/fesm2022/muxima-ui-core-data-grid.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-editor.mjs +575 -0
- package/fesm2022/muxima-ui-core-editor.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-image-cropper.mjs +568 -0
- package/fesm2022/muxima-ui-core-image-cropper.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-kanban.mjs +369 -0
- package/fesm2022/muxima-ui-core-kanban.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-notification-center.mjs +487 -0
- package/fesm2022/muxima-ui-core-notification-center.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-sidebar.mjs +333 -0
- package/fesm2022/muxima-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/muxima-ui-core-timeline.mjs +117 -0
- package/fesm2022/muxima-ui-core-timeline.mjs.map +1 -0
- package/fesm2022/muxima-ui-core.mjs +1 -1
- package/fesm2022/muxima-ui-core.mjs.map +1 -1
- package/package.json +57 -2
- package/styles/base.css +17 -0
- package/styles/components/carousel.css +113 -0
- package/styles/components/color-picker.css +207 -0
- package/styles/components/data-grid.css +235 -0
- package/styles/components/editor.css +187 -0
- package/styles/components/image-cropper.css +113 -0
- package/styles/components/kanban.css +115 -0
- package/styles/components/notification-center.css +220 -0
- package/styles/components/sidebar.css +211 -0
- package/styles/components/timeline.css +180 -0
- package/styles/muxima.css +9 -0
- package/types/muxima-ui-core-carousel.d.ts +72 -0
- package/types/muxima-ui-core-color-picker.d.ts +153 -0
- package/types/muxima-ui-core-data-grid.d.ts +175 -0
- package/types/muxima-ui-core-editor.d.ts +104 -0
- package/types/muxima-ui-core-image-cropper.d.ts +105 -0
- package/types/muxima-ui-core-kanban.d.ts +83 -0
- package/types/muxima-ui-core-notification-center.d.ts +91 -0
- package/types/muxima-ui-core-sidebar.d.ts +115 -0
- package/types/muxima-ui-core-timeline.d.ts +59 -0
- package/types/muxima-ui-core.d.ts +1 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* ---------- Editor (Tiptap) ---------- */
|
|
2
|
+
|
|
3
|
+
.mx-editor {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
border: 1px solid var(--mx-control-border);
|
|
9
|
+
border-radius: var(--mx-radius);
|
|
10
|
+
background: var(--mx-surface);
|
|
11
|
+
color: var(--mx-ink);
|
|
12
|
+
font-family: var(--mx-font-sans);
|
|
13
|
+
transition: border-color var(--mx-duration) var(--mx-ease);
|
|
14
|
+
}
|
|
15
|
+
.mx-editor:hover:not([data-disabled]):not([data-readonly]) {
|
|
16
|
+
border-color: var(--mx-muted);
|
|
17
|
+
}
|
|
18
|
+
.mx-editor:has(.mx-editor-prose:focus-visible),
|
|
19
|
+
.mx-editor:has(.mx-editor-prose:focus) {
|
|
20
|
+
border-color: var(--mx-accent);
|
|
21
|
+
outline: var(--mx-focus-width) solid var(--mx-accent);
|
|
22
|
+
outline-offset: var(--mx-focus-offset);
|
|
23
|
+
}
|
|
24
|
+
.mx-editor[data-invalid] {
|
|
25
|
+
border-color: var(--mx-danger);
|
|
26
|
+
}
|
|
27
|
+
.mx-editor[data-disabled] {
|
|
28
|
+
background: var(--mx-subtle);
|
|
29
|
+
color: var(--mx-muted);
|
|
30
|
+
}
|
|
31
|
+
.mx-editor[data-readonly] {
|
|
32
|
+
border-color: var(--mx-stone);
|
|
33
|
+
}
|
|
34
|
+
.mx-editor-toolbar {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 2px;
|
|
39
|
+
padding: 4px;
|
|
40
|
+
border-bottom: var(--mx-border);
|
|
41
|
+
}
|
|
42
|
+
.mx-editor-tool {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
width: 30px;
|
|
47
|
+
height: 30px;
|
|
48
|
+
padding: 0;
|
|
49
|
+
border: 0;
|
|
50
|
+
border-radius: calc(var(--mx-radius) - 2px);
|
|
51
|
+
background: transparent;
|
|
52
|
+
color: var(--mx-muted);
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
.mx-editor-icon,
|
|
56
|
+
.mx-editor-icon svg {
|
|
57
|
+
display: block;
|
|
58
|
+
width: 16px;
|
|
59
|
+
height: 16px;
|
|
60
|
+
}
|
|
61
|
+
.mx-editor-tool:hover:not(:disabled) {
|
|
62
|
+
background: var(--mx-subtle);
|
|
63
|
+
color: var(--mx-ink);
|
|
64
|
+
}
|
|
65
|
+
.mx-editor-tool[aria-pressed='true'] {
|
|
66
|
+
background: var(--mx-accent-soft);
|
|
67
|
+
color: var(--mx-accent);
|
|
68
|
+
}
|
|
69
|
+
.mx-editor-tool:disabled {
|
|
70
|
+
color: var(--mx-stone-strong);
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
73
|
+
.mx-editor-sep {
|
|
74
|
+
width: 1px;
|
|
75
|
+
height: 18px;
|
|
76
|
+
margin: 0 4px;
|
|
77
|
+
background: var(--mx-stone);
|
|
78
|
+
}
|
|
79
|
+
.mx-editor-linkbar {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-wrap: wrap;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 6px;
|
|
84
|
+
padding: 6px 8px;
|
|
85
|
+
border-bottom: var(--mx-border);
|
|
86
|
+
background: var(--mx-paper);
|
|
87
|
+
}
|
|
88
|
+
.mx-editor-linkbar .mx-input {
|
|
89
|
+
flex: 1 1 200px;
|
|
90
|
+
width: auto;
|
|
91
|
+
}
|
|
92
|
+
.mx-editor-text-button {
|
|
93
|
+
height: 28px;
|
|
94
|
+
padding: 0 10px;
|
|
95
|
+
border: 1px solid var(--mx-control-border);
|
|
96
|
+
border-radius: calc(var(--mx-radius) - 2px);
|
|
97
|
+
background: var(--mx-surface);
|
|
98
|
+
color: var(--mx-ink);
|
|
99
|
+
font: inherit;
|
|
100
|
+
font-size: var(--mx-text-sm);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
.mx-editor-text-button:hover {
|
|
104
|
+
background: var(--mx-subtle);
|
|
105
|
+
}
|
|
106
|
+
.mx-editor-content {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
overflow-y: auto;
|
|
110
|
+
}
|
|
111
|
+
.mx-editor-prose {
|
|
112
|
+
flex: 1;
|
|
113
|
+
padding: 10px 14px;
|
|
114
|
+
font-size: var(--mx-text-md);
|
|
115
|
+
line-height: 1.6;
|
|
116
|
+
outline: none;
|
|
117
|
+
white-space: pre-wrap;
|
|
118
|
+
overflow-wrap: anywhere;
|
|
119
|
+
}
|
|
120
|
+
.mx-editor-prose > * + * {
|
|
121
|
+
margin-top: 0.6em;
|
|
122
|
+
}
|
|
123
|
+
.mx-editor-prose p,
|
|
124
|
+
.mx-editor-prose ul,
|
|
125
|
+
.mx-editor-prose ol,
|
|
126
|
+
.mx-editor-prose blockquote {
|
|
127
|
+
margin-bottom: 0;
|
|
128
|
+
}
|
|
129
|
+
.mx-editor-prose p:first-child {
|
|
130
|
+
margin-top: 0;
|
|
131
|
+
}
|
|
132
|
+
.mx-editor-prose h2,
|
|
133
|
+
.mx-editor-prose h3,
|
|
134
|
+
.mx-editor-prose h4 {
|
|
135
|
+
margin-bottom: 0;
|
|
136
|
+
line-height: 1.3;
|
|
137
|
+
}
|
|
138
|
+
.mx-editor-prose h2 {
|
|
139
|
+
font-size: 1.35em;
|
|
140
|
+
}
|
|
141
|
+
.mx-editor-prose h3 {
|
|
142
|
+
font-size: 1.15em;
|
|
143
|
+
}
|
|
144
|
+
.mx-editor-prose ul,
|
|
145
|
+
.mx-editor-prose ol {
|
|
146
|
+
padding-left: 1.4em;
|
|
147
|
+
}
|
|
148
|
+
.mx-editor-prose blockquote {
|
|
149
|
+
margin-left: 0;
|
|
150
|
+
padding-left: 12px;
|
|
151
|
+
border-left: 3px solid var(--mx-stone-strong);
|
|
152
|
+
color: var(--mx-muted);
|
|
153
|
+
}
|
|
154
|
+
.mx-editor-prose code {
|
|
155
|
+
padding: 1px 5px;
|
|
156
|
+
border-radius: 4px;
|
|
157
|
+
background: var(--mx-subtle);
|
|
158
|
+
font-family: var(--mx-font-mono);
|
|
159
|
+
font-size: 0.9em;
|
|
160
|
+
}
|
|
161
|
+
.mx-editor-prose a {
|
|
162
|
+
color: var(--mx-accent);
|
|
163
|
+
text-decoration: underline;
|
|
164
|
+
text-underline-offset: 2px;
|
|
165
|
+
}
|
|
166
|
+
.mx-editor-prose p.is-editor-empty:first-child::before {
|
|
167
|
+
content: attr(data-placeholder);
|
|
168
|
+
float: left;
|
|
169
|
+
height: 0;
|
|
170
|
+
color: var(--mx-muted);
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
.mx-editor-footer {
|
|
174
|
+
display: flex;
|
|
175
|
+
justify-content: flex-end;
|
|
176
|
+
padding: 4px 10px;
|
|
177
|
+
border-top: var(--mx-border);
|
|
178
|
+
}
|
|
179
|
+
.mx-editor-count {
|
|
180
|
+
color: var(--mx-muted);
|
|
181
|
+
font-size: var(--mx-text-xs);
|
|
182
|
+
font-variant-numeric: tabular-nums;
|
|
183
|
+
}
|
|
184
|
+
.mx-editor-count[data-over] {
|
|
185
|
+
color: var(--mx-danger);
|
|
186
|
+
font-weight: 600;
|
|
187
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* ---------- Image cropper ---------- */
|
|
2
|
+
|
|
3
|
+
.mx-image-cropper {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
font-family: var(--mx-font-sans);
|
|
9
|
+
}
|
|
10
|
+
.mx-cropper-stage {
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
border-radius: var(--mx-radius-surface);
|
|
14
|
+
background: repeating-conic-gradient(var(--mx-subtle) 0% 25%, var(--mx-surface) 0% 50%) 50% / 16px 16px;
|
|
15
|
+
touch-action: none;
|
|
16
|
+
user-select: none;
|
|
17
|
+
}
|
|
18
|
+
.mx-cropper-image {
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
max-width: none;
|
|
23
|
+
transform-origin: center;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
.mx-cropper-box {
|
|
27
|
+
position: absolute;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
border: 2px solid #fff;
|
|
30
|
+
box-shadow: 0 0 0 9999px rgb(0 0 0 / 0.55);
|
|
31
|
+
cursor: move;
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
.mx-image-cropper[data-round] .mx-cropper-box {
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
}
|
|
37
|
+
.mx-cropper-box:focus-visible {
|
|
38
|
+
border-color: var(--mx-accent);
|
|
39
|
+
outline: 2px solid #fff;
|
|
40
|
+
outline-offset: 2px;
|
|
41
|
+
}
|
|
42
|
+
.mx-cropper-grid {
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset: 0;
|
|
45
|
+
background:
|
|
46
|
+
linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.45) calc(33.33% - 0.5px), rgb(255 255 255 / 0.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgb(255 255 255 / 0.45) calc(66.66% - 0.5px), rgb(255 255 255 / 0.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
|
|
47
|
+
linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.45) calc(33.33% - 0.5px), rgb(255 255 255 / 0.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgb(255 255 255 / 0.45) calc(66.66% - 0.5px), rgb(255 255 255 / 0.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
|
|
48
|
+
border-radius: inherit;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
}
|
|
51
|
+
.mx-cropper-handle {
|
|
52
|
+
position: absolute;
|
|
53
|
+
width: 14px;
|
|
54
|
+
height: 14px;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
border: 2px solid var(--mx-accent);
|
|
57
|
+
border-radius: 3px;
|
|
58
|
+
background: #fff;
|
|
59
|
+
}
|
|
60
|
+
.mx-cropper-handle[data-handle='nw'] { top: -8px; left: -8px; cursor: nwse-resize; }
|
|
61
|
+
.mx-cropper-handle[data-handle='ne'] { top: -8px; right: -8px; cursor: nesw-resize; }
|
|
62
|
+
.mx-cropper-handle[data-handle='sw'] { bottom: -8px; left: -8px; cursor: nesw-resize; }
|
|
63
|
+
.mx-cropper-handle[data-handle='se'] { bottom: -8px; right: -8px; cursor: nwse-resize; }
|
|
64
|
+
.mx-cropper-handle[data-handle='n'] { top: -8px; left: calc(50% - 7px); cursor: ns-resize; }
|
|
65
|
+
.mx-cropper-handle[data-handle='s'] { bottom: -8px; left: calc(50% - 7px); cursor: ns-resize; }
|
|
66
|
+
.mx-cropper-handle[data-handle='e'] { top: calc(50% - 7px); right: -8px; cursor: ew-resize; }
|
|
67
|
+
.mx-cropper-handle[data-handle='w'] { top: calc(50% - 7px); left: -8px; cursor: ew-resize; }
|
|
68
|
+
.mx-image-cropper[data-round] .mx-cropper-handle:is([data-handle='nw'], [data-handle='ne'], [data-handle='sw'], [data-handle='se']) {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
.mx-cropper-controls {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-wrap: wrap;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 8px;
|
|
76
|
+
}
|
|
77
|
+
.mx-cropper-zoom {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex: 1 1 180px;
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: 10px;
|
|
82
|
+
color: var(--mx-muted);
|
|
83
|
+
font-size: var(--mx-text-sm);
|
|
84
|
+
}
|
|
85
|
+
.mx-cropper-zoom .mx-slider {
|
|
86
|
+
flex: 1;
|
|
87
|
+
}
|
|
88
|
+
.mx-cropper-button {
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
min-width: 32px;
|
|
93
|
+
height: 32px;
|
|
94
|
+
padding: 0 8px;
|
|
95
|
+
border: 1px solid var(--mx-control-border);
|
|
96
|
+
border-radius: var(--mx-radius);
|
|
97
|
+
background: var(--mx-surface);
|
|
98
|
+
color: var(--mx-ink);
|
|
99
|
+
font: inherit;
|
|
100
|
+
font-size: var(--mx-text-sm);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
.mx-cropper-button svg {
|
|
104
|
+
width: 16px;
|
|
105
|
+
height: 16px;
|
|
106
|
+
}
|
|
107
|
+
.mx-cropper-button:hover:not(:disabled) {
|
|
108
|
+
background: var(--mx-subtle);
|
|
109
|
+
}
|
|
110
|
+
.mx-cropper-button:disabled {
|
|
111
|
+
color: var(--mx-muted);
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* ---------- Kanban ---------- */
|
|
2
|
+
|
|
3
|
+
.mx-kanban {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
font-family: var(--mx-font-sans);
|
|
7
|
+
}
|
|
8
|
+
.mx-kanban-board {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
gap: 12px;
|
|
12
|
+
padding-bottom: 6px;
|
|
13
|
+
overflow-x: auto;
|
|
14
|
+
}
|
|
15
|
+
.mx-kanban-column {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 0 0 272px;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 8px;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
max-height: 100%;
|
|
22
|
+
padding: 10px;
|
|
23
|
+
border-radius: var(--mx-radius-surface);
|
|
24
|
+
background: var(--mx-subtle);
|
|
25
|
+
}
|
|
26
|
+
.mx-kanban-column-head {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
gap: 8px;
|
|
31
|
+
padding: 2px 4px;
|
|
32
|
+
}
|
|
33
|
+
.mx-kanban-column-title {
|
|
34
|
+
margin: 0;
|
|
35
|
+
color: var(--mx-ink);
|
|
36
|
+
font-size: var(--mx-text-sm);
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
}
|
|
39
|
+
.mx-kanban-count {
|
|
40
|
+
padding: 1px 8px;
|
|
41
|
+
border-radius: 999px;
|
|
42
|
+
background: var(--mx-surface);
|
|
43
|
+
color: var(--mx-muted);
|
|
44
|
+
font-size: var(--mx-text-xs);
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
font-variant-numeric: tabular-nums;
|
|
47
|
+
}
|
|
48
|
+
.mx-kanban-column[data-full] .mx-kanban-count {
|
|
49
|
+
background: color-mix(in oklab, var(--mx-warning) 14%, var(--mx-surface));
|
|
50
|
+
color: var(--mx-warning);
|
|
51
|
+
}
|
|
52
|
+
.mx-kanban-list {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: 8px;
|
|
56
|
+
min-height: 56px;
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0;
|
|
59
|
+
overflow-y: auto;
|
|
60
|
+
list-style: none;
|
|
61
|
+
}
|
|
62
|
+
.mx-kanban-card {
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
padding: 10px 12px;
|
|
65
|
+
border: var(--mx-border);
|
|
66
|
+
border-radius: var(--mx-radius);
|
|
67
|
+
background: var(--mx-surface);
|
|
68
|
+
color: var(--mx-ink);
|
|
69
|
+
font-size: var(--mx-text-sm);
|
|
70
|
+
line-height: 1.4;
|
|
71
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
|
|
72
|
+
cursor: grab;
|
|
73
|
+
transition: box-shadow var(--mx-duration) var(--mx-ease), transform var(--mx-duration) var(--mx-ease);
|
|
74
|
+
}
|
|
75
|
+
.mx-kanban-card:hover {
|
|
76
|
+
border-color: var(--mx-stone-strong);
|
|
77
|
+
}
|
|
78
|
+
.mx-kanban-card:focus-visible {
|
|
79
|
+
outline: var(--mx-focus-width) solid var(--mx-accent);
|
|
80
|
+
outline-offset: var(--mx-focus-offset);
|
|
81
|
+
}
|
|
82
|
+
.mx-kanban-card[data-grabbed] {
|
|
83
|
+
border-color: var(--mx-accent);
|
|
84
|
+
box-shadow: var(--mx-shadow-overlay);
|
|
85
|
+
transform: rotate(-1.5deg);
|
|
86
|
+
}
|
|
87
|
+
.mx-kanban-card.cdk-drag-preview {
|
|
88
|
+
box-shadow: var(--mx-shadow-overlay);
|
|
89
|
+
cursor: grabbing;
|
|
90
|
+
}
|
|
91
|
+
.mx-kanban-card.cdk-drag-animating,
|
|
92
|
+
.mx-kanban-list.cdk-drop-list-dragging .mx-kanban-card:not(.cdk-drag-placeholder) {
|
|
93
|
+
transition: transform 200ms var(--mx-ease);
|
|
94
|
+
}
|
|
95
|
+
.mx-kanban-placeholder {
|
|
96
|
+
min-height: 44px;
|
|
97
|
+
border: 1.5px dashed var(--mx-accent);
|
|
98
|
+
border-radius: var(--mx-radius);
|
|
99
|
+
background: var(--mx-accent-soft);
|
|
100
|
+
}
|
|
101
|
+
.mx-kanban-empty {
|
|
102
|
+
padding: 16px 8px;
|
|
103
|
+
border: 1.5px dashed var(--mx-stone-strong);
|
|
104
|
+
border-radius: var(--mx-radius);
|
|
105
|
+
color: var(--mx-muted);
|
|
106
|
+
font-size: var(--mx-text-sm);
|
|
107
|
+
text-align: center;
|
|
108
|
+
}
|
|
109
|
+
.mx-kanban-list.cdk-drop-list-dragging .mx-kanban-empty,
|
|
110
|
+
.mx-kanban-list:has(.cdk-drag-placeholder) .mx-kanban-empty {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
.mx-kanban-column-foot {
|
|
114
|
+
padding-top: 2px;
|
|
115
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/* ---------- Notification center ---------- */
|
|
2
|
+
|
|
3
|
+
.mx-notification-center {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
color: var(--mx-ink);
|
|
9
|
+
font-family: var(--mx-font-sans);
|
|
10
|
+
}
|
|
11
|
+
.mx-notification-head {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
}
|
|
16
|
+
.mx-notification-title {
|
|
17
|
+
margin: 0;
|
|
18
|
+
font-size: var(--mx-text-md);
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
.mx-notification-count {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
min-width: 20px;
|
|
26
|
+
height: 20px;
|
|
27
|
+
padding: 0 6px;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
border-radius: 999px;
|
|
30
|
+
background: var(--mx-accent);
|
|
31
|
+
color: var(--mx-on-accent);
|
|
32
|
+
font-size: var(--mx-text-xs);
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
font-variant-numeric: tabular-nums;
|
|
35
|
+
}
|
|
36
|
+
.mx-notification-link {
|
|
37
|
+
margin-left: auto;
|
|
38
|
+
padding: 2px 4px;
|
|
39
|
+
border: 0;
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
background: none;
|
|
42
|
+
color: var(--mx-accent);
|
|
43
|
+
font: inherit;
|
|
44
|
+
font-size: var(--mx-text-sm);
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
.mx-notification-link:hover:not(:disabled) {
|
|
49
|
+
text-decoration: underline;
|
|
50
|
+
text-underline-offset: 3px;
|
|
51
|
+
}
|
|
52
|
+
.mx-notification-link:disabled {
|
|
53
|
+
color: var(--mx-muted);
|
|
54
|
+
cursor: default;
|
|
55
|
+
}
|
|
56
|
+
.mx-notification-filters {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
gap: 6px;
|
|
60
|
+
}
|
|
61
|
+
.mx-notification-list {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
list-style: none;
|
|
67
|
+
}
|
|
68
|
+
.mx-notification {
|
|
69
|
+
--_tone: var(--mx-accent);
|
|
70
|
+
position: relative;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
padding: 2px 0;
|
|
75
|
+
border-top: var(--mx-border);
|
|
76
|
+
}
|
|
77
|
+
.mx-notification:first-child {
|
|
78
|
+
border-top: 0;
|
|
79
|
+
}
|
|
80
|
+
.mx-notification[data-variant='success'] {
|
|
81
|
+
--_tone: var(--mx-success);
|
|
82
|
+
}
|
|
83
|
+
.mx-notification[data-variant='warning'] {
|
|
84
|
+
--_tone: var(--mx-warning);
|
|
85
|
+
}
|
|
86
|
+
.mx-notification[data-variant='danger'] {
|
|
87
|
+
--_tone: var(--mx-danger);
|
|
88
|
+
}
|
|
89
|
+
.mx-notification-dot {
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
width: 8px;
|
|
92
|
+
height: 8px;
|
|
93
|
+
margin: 16px 2px 0 4px;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
background: transparent;
|
|
96
|
+
}
|
|
97
|
+
.mx-notification[data-unread] .mx-notification-dot {
|
|
98
|
+
background: var(--_tone);
|
|
99
|
+
}
|
|
100
|
+
.mx-notification-main {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex: 1;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 2px;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
padding: 10px 8px;
|
|
107
|
+
border: 0;
|
|
108
|
+
border-radius: var(--mx-radius);
|
|
109
|
+
background: transparent;
|
|
110
|
+
color: inherit;
|
|
111
|
+
font: inherit;
|
|
112
|
+
text-align: start;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
}
|
|
115
|
+
.mx-notification-main:hover {
|
|
116
|
+
background: var(--mx-subtle);
|
|
117
|
+
}
|
|
118
|
+
.mx-notification-text {
|
|
119
|
+
font-size: var(--mx-text-sm);
|
|
120
|
+
line-height: 1.4;
|
|
121
|
+
}
|
|
122
|
+
.mx-notification[data-unread] .mx-notification-text {
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
}
|
|
125
|
+
.mx-notification-desc {
|
|
126
|
+
color: var(--mx-muted);
|
|
127
|
+
font-size: var(--mx-text-sm);
|
|
128
|
+
line-height: 1.4;
|
|
129
|
+
}
|
|
130
|
+
.mx-notification-time {
|
|
131
|
+
color: var(--mx-muted);
|
|
132
|
+
font-size: var(--mx-text-xs);
|
|
133
|
+
}
|
|
134
|
+
.mx-notification-actions {
|
|
135
|
+
display: flex;
|
|
136
|
+
gap: 2px;
|
|
137
|
+
padding-top: 8px;
|
|
138
|
+
opacity: 0.85;
|
|
139
|
+
}
|
|
140
|
+
.mx-notification-action {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
width: 28px;
|
|
145
|
+
height: 28px;
|
|
146
|
+
padding: 0;
|
|
147
|
+
border: 0;
|
|
148
|
+
border-radius: var(--mx-radius);
|
|
149
|
+
background: transparent;
|
|
150
|
+
color: var(--mx-muted);
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
}
|
|
153
|
+
.mx-notification-action svg {
|
|
154
|
+
width: 14px;
|
|
155
|
+
height: 14px;
|
|
156
|
+
}
|
|
157
|
+
.mx-notification-action:hover {
|
|
158
|
+
background: var(--mx-subtle);
|
|
159
|
+
color: var(--mx-ink);
|
|
160
|
+
}
|
|
161
|
+
.mx-notification-empty {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
padding: 28px 12px;
|
|
167
|
+
color: var(--mx-muted);
|
|
168
|
+
font-size: var(--mx-text-sm);
|
|
169
|
+
text-align: center;
|
|
170
|
+
}
|
|
171
|
+
.mx-notification-empty svg {
|
|
172
|
+
width: 28px;
|
|
173
|
+
height: 28px;
|
|
174
|
+
}
|
|
175
|
+
.mx-notification-empty p {
|
|
176
|
+
margin: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Sino */
|
|
180
|
+
.mx-notification-bell {
|
|
181
|
+
position: relative;
|
|
182
|
+
display: inline-flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
width: 36px;
|
|
186
|
+
height: 36px;
|
|
187
|
+
padding: 0;
|
|
188
|
+
border: 0;
|
|
189
|
+
border-radius: var(--mx-radius);
|
|
190
|
+
background: transparent;
|
|
191
|
+
color: var(--mx-ink);
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
.mx-notification-bell:hover {
|
|
195
|
+
background: var(--mx-subtle);
|
|
196
|
+
}
|
|
197
|
+
.mx-notification-bell svg {
|
|
198
|
+
width: 20px;
|
|
199
|
+
height: 20px;
|
|
200
|
+
}
|
|
201
|
+
.mx-notification-bell-count {
|
|
202
|
+
position: absolute;
|
|
203
|
+
top: 2px;
|
|
204
|
+
right: 1px;
|
|
205
|
+
display: inline-flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
min-width: 16px;
|
|
209
|
+
height: 16px;
|
|
210
|
+
padding: 0 4px;
|
|
211
|
+
box-sizing: border-box;
|
|
212
|
+
border: 2px solid var(--mx-surface);
|
|
213
|
+
border-radius: 999px;
|
|
214
|
+
background: var(--mx-danger);
|
|
215
|
+
color: var(--mx-on-danger);
|
|
216
|
+
font-family: var(--mx-font-sans);
|
|
217
|
+
font-size: 10px;
|
|
218
|
+
font-weight: 700;
|
|
219
|
+
line-height: 1;
|
|
220
|
+
}
|