@xenosystem/elements-react 0.0.10 → 0.0.12
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/dist/containers/Avatar.d.ts +8 -1
- package/dist/containers/Avatar.js +3 -3
- package/dist/containers/BulkActionBar.d.ts +20 -0
- package/dist/containers/BulkActionBar.js +8 -0
- package/dist/containers/DataTable.d.ts +50 -6
- package/dist/containers/DataTable.js +185 -11
- package/dist/containers/Table.d.ts +2 -2
- package/dist/containers/Table.js +4 -3
- package/dist/content/Kbd.d.ts +16 -0
- package/dist/content/Kbd.js +8 -0
- package/dist/forms/FormField.d.ts +32 -0
- package/dist/forms/FormField.js +26 -0
- package/dist/forms/NumberInput.d.ts +27 -0
- package/dist/forms/NumberInput.js +69 -0
- package/dist/forms/Select.d.ts +84 -0
- package/dist/forms/Select.js +243 -0
- package/dist/forms/Slider.d.ts +38 -0
- package/dist/forms/Slider.js +31 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.js +20 -1
- package/dist/nav/Breadcrumb.d.ts +22 -0
- package/dist/nav/Breadcrumb.js +10 -0
- package/dist/nav/Pagination.d.ts +22 -0
- package/dist/nav/Pagination.js +35 -0
- package/dist/overlays/CommandPalette.d.ts +43 -0
- package/dist/overlays/CommandPalette.js +96 -0
- package/dist/overlays/Drawer.d.ts +30 -0
- package/dist/overlays/Drawer.js +41 -0
- package/dist/overlays/Popover.d.ts +27 -12
- package/dist/overlays/Popover.js +104 -7
- package/dist/overlays/ShortcutsSheet.d.ts +21 -0
- package/dist/overlays/ShortcutsSheet.js +7 -0
- package/dist/overlays/Tooltip.d.ts +21 -10
- package/dist/overlays/Tooltip.js +93 -9
- package/dist/shortcuts.d.ts +45 -0
- package/dist/shortcuts.js +164 -0
- package/dist/status/Banner.d.ts +23 -0
- package/dist/status/Banner.js +8 -0
- package/dist/status/EmptyState.d.ts +20 -0
- package/dist/status/EmptyState.js +9 -0
- package/dist/status/Skeleton.d.ts +36 -0
- package/dist/status/Skeleton.js +31 -0
- package/dist/status/Toast.d.ts +28 -0
- package/dist/status/Toast.js +11 -0
- package/dist/uiTree.d.ts +53 -0
- package/dist/uiTree.js +197 -0
- package/dist/useDialog.d.ts +3 -1
- package/dist/useDialog.js +37 -1
- package/dist/useMenu.js +31 -1
- package/dist/useToastQueue.d.ts +29 -0
- package/dist/useToastQueue.js +73 -0
- package/package.json +9 -3
- package/src/chrome-separated.css +133 -72
- package/src/chrome-unified.css +48 -16
- package/src/containers/Badges.css +52 -28
- package/src/containers/avatar.css +7 -2
- package/src/containers/bulk-action-bar.css +45 -0
- package/src/containers/card.css +14 -13
- package/src/containers/chip.css +1 -1
- package/src/containers/panel.css +16 -53
- package/src/containers/table.css +107 -1
- package/src/content/kbd.css +33 -0
- package/src/content/model-picker.css +2 -1
- package/src/controls.css +25 -11
- package/src/fonts.css +8 -2
- package/src/forced-colors.css +41 -0
- package/src/forms/form-field.css +78 -0
- package/src/forms/number-input.css +86 -0
- package/src/forms/select.css +210 -0
- package/src/forms/slider.css +145 -0
- package/src/layout-platform.css +495 -0
- package/src/mcp-app-platform.css +1019 -0
- package/src/nav/breadcrumb.css +84 -0
- package/src/nav/pagination.css +61 -0
- package/src/overlays/command-palette.css +157 -0
- package/src/overlays/drawer.css +79 -0
- package/src/overlays/menu.css +25 -16
- package/src/overlays/modal.css +9 -27
- package/src/overlays/onboarding.css +1305 -0
- package/src/overlays/segmented-control.css +6 -3
- package/src/overlays/shortcuts-sheet.css +55 -0
- package/src/overlays/tooltip.css +22 -4
- package/src/size.css +40 -0
- package/src/status/banner.css +83 -0
- package/src/status/empty-state.css +56 -0
- package/src/status/skeleton.css +70 -0
- package/src/status/toast.css +95 -0
- package/src/xeno-elements.css +71 -44
- package/src/xeno-theme.css +75 -31
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.xeno-form-field {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 5px;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.xeno-form-field[data-inline='true'] {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
|
|
12
|
+
column-gap: 12px;
|
|
13
|
+
row-gap: 4px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.xeno-form-field[data-inline='true'] > .xeno-form-field-error,
|
|
18
|
+
.xeno-form-field[data-inline='true'] > .xeno-form-field-hint {
|
|
19
|
+
grid-column: 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.xeno-form-field-head {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.xeno-form-field-label {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 3px;
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
color: var(--xeno-text);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.xeno-form-field[data-disabled='true'] .xeno-form-field-label {
|
|
41
|
+
color: var(--xeno-muted-text);
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.xeno-form-field-req {
|
|
46
|
+
color: var(--xeno-danger-text);
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.xeno-form-field-action {
|
|
51
|
+
font-size: 11px;
|
|
52
|
+
color: var(--xeno-muted-text);
|
|
53
|
+
font-variant-numeric: tabular-nums;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.xeno-form-field-control {
|
|
57
|
+
min-width: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.xeno-form-field[data-invalid='true'] .xeno-input,
|
|
61
|
+
.xeno-form-field[data-invalid='true'] .xeno-textarea,
|
|
62
|
+
.xeno-form-field[data-invalid='true'] .xeno-select-trigger,
|
|
63
|
+
.xeno-form-field[data-invalid='true'] .xeno-combobox-box,
|
|
64
|
+
.xeno-form-field[data-invalid='true'] .xeno-num-input {
|
|
65
|
+
border-color: var(--xeno-danger-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.xeno-form-field-error {
|
|
69
|
+
font-size: 11.5px;
|
|
70
|
+
color: var(--xeno-danger-text);
|
|
71
|
+
line-height: 1.35;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-form-field-hint {
|
|
75
|
+
font-size: 11.5px;
|
|
76
|
+
color: var(--xeno-muted-text);
|
|
77
|
+
line-height: 1.35;
|
|
78
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.xeno-num-input {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
height: var(--xeno-h-md, 32px);
|
|
5
|
+
border-radius: var(--xeno-radius-control, 6px);
|
|
6
|
+
border: 1px solid var(--xeno-border);
|
|
7
|
+
background: var(--xeno-field, var(--xeno-canvas));
|
|
8
|
+
color: var(--xeno-text);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.xeno-num-input[data-size='sm'] {
|
|
14
|
+
height: var(--xeno-h-sm, 26px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.xeno-num-input[data-size='lg'] {
|
|
18
|
+
height: var(--xeno-h-lg, 38px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.xeno-num-input:focus-within {
|
|
22
|
+
border-color: var(--xeno-border-strong);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.xeno-num-input[data-availability='disabled'] {
|
|
26
|
+
opacity: 0.45;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.xeno-num-field {
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
min-width: 44px;
|
|
32
|
+
width: 64px;
|
|
33
|
+
height: 100%;
|
|
34
|
+
border: 0;
|
|
35
|
+
background: transparent;
|
|
36
|
+
color: inherit;
|
|
37
|
+
padding-inline: 8px;
|
|
38
|
+
font-family: var(--xeno-font-mono);
|
|
39
|
+
font-size: 12.5px;
|
|
40
|
+
font-variant-numeric: tabular-nums;
|
|
41
|
+
text-align: center;
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.xeno-num-unit {
|
|
46
|
+
padding-inline-end: 8px;
|
|
47
|
+
font-size: 11px;
|
|
48
|
+
font-family: var(--xeno-font-mono);
|
|
49
|
+
color: var(--xeno-muted-text);
|
|
50
|
+
user-select: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.xeno-num-step {
|
|
54
|
+
appearance: none;
|
|
55
|
+
flex: none;
|
|
56
|
+
width: 26px;
|
|
57
|
+
height: 100%;
|
|
58
|
+
border: 0;
|
|
59
|
+
background: var(--xeno-control);
|
|
60
|
+
color: var(--xeno-muted-text);
|
|
61
|
+
font-size: 13px;
|
|
62
|
+
line-height: 1;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
display: grid;
|
|
65
|
+
place-items: center;
|
|
66
|
+
padding: 0;
|
|
67
|
+
transition: background 120ms ease, color 120ms ease;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.xeno-num-step:first-child {
|
|
71
|
+
border-inline-end: 1px solid var(--xeno-border-subtle);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-num-step:last-child {
|
|
75
|
+
border-inline-start: 1px solid var(--xeno-border-subtle);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.xeno-num-step:hover:not(:disabled) {
|
|
79
|
+
background: var(--xeno-hover-strong, var(--xeno-elevated));
|
|
80
|
+
color: var(--xeno-text);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.xeno-num-step:disabled {
|
|
84
|
+
opacity: 0.35;
|
|
85
|
+
cursor: default;
|
|
86
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
.xeno-select,
|
|
2
|
+
.xeno-combobox {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.xeno-select-trigger,
|
|
9
|
+
.xeno-combobox-box {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
width: 100%;
|
|
15
|
+
min-height: var(--xeno-h-md, 32px);
|
|
16
|
+
padding-inline: 10px;
|
|
17
|
+
padding-block: 4px;
|
|
18
|
+
border-radius: var(--xeno-radius-control, 6px);
|
|
19
|
+
border: 1px solid var(--xeno-border);
|
|
20
|
+
background: var(--xeno-field, var(--xeno-canvas));
|
|
21
|
+
color: var(--xeno-text);
|
|
22
|
+
font-family: var(--xeno-font-sans);
|
|
23
|
+
font-size: 12.5px;
|
|
24
|
+
text-align: start;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
transition: border-color 120ms ease, background 120ms ease;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.xeno-select-trigger[data-size='sm'],
|
|
31
|
+
.xeno-combobox-box[data-size='sm'] {
|
|
32
|
+
min-height: var(--xeno-h-sm, 26px);
|
|
33
|
+
padding-inline: 8px;
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.xeno-select-trigger[data-size='lg'],
|
|
38
|
+
.xeno-combobox-box[data-size='lg'] {
|
|
39
|
+
min-height: var(--xeno-h-lg, 38px);
|
|
40
|
+
padding-inline: 12px;
|
|
41
|
+
font-size: 13.5px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.xeno-select-trigger:hover:not(:disabled),
|
|
45
|
+
.xeno-combobox-box:hover:not([data-disabled='true']) {
|
|
46
|
+
border-color: var(--xeno-border-strong);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.xeno-select-trigger[data-open='true'],
|
|
50
|
+
.xeno-combobox-box[data-open='true'],
|
|
51
|
+
.xeno-select-trigger:focus-visible,
|
|
52
|
+
.xeno-combobox-box:focus-within {
|
|
53
|
+
border-color: var(--xeno-accent);
|
|
54
|
+
outline: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.xeno-select-trigger:disabled,
|
|
58
|
+
.xeno-combobox-box[data-disabled='true'] {
|
|
59
|
+
opacity: 0.45;
|
|
60
|
+
cursor: default;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.xeno-select-trigger[data-placeholder='true'] .xeno-select-value {
|
|
64
|
+
color: var(--xeno-muted-text);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.xeno-select-value {
|
|
68
|
+
flex: 1 1 auto;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.xeno-select-caret {
|
|
76
|
+
flex: none;
|
|
77
|
+
color: var(--xeno-muted-text);
|
|
78
|
+
transition: transform 140ms ease;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.xeno-select-trigger[data-open='true'] .xeno-select-caret {
|
|
82
|
+
transform: rotate(180deg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.xeno-combobox-box {
|
|
86
|
+
flex-wrap: wrap;
|
|
87
|
+
justify-content: flex-start;
|
|
88
|
+
gap: 4px;
|
|
89
|
+
cursor: text;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.xeno-combobox-chips {
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
gap: 4px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.xeno-combobox-chip {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 4px;
|
|
102
|
+
height: 20px;
|
|
103
|
+
padding-inline: 6px;
|
|
104
|
+
border-radius: var(--xeno-radius-sm, 4px);
|
|
105
|
+
background: var(--xeno-control);
|
|
106
|
+
border: 1px solid var(--xeno-border);
|
|
107
|
+
font-size: 11px;
|
|
108
|
+
color: var(--xeno-text);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.xeno-combobox-chip-x {
|
|
112
|
+
appearance: none;
|
|
113
|
+
border: 0;
|
|
114
|
+
background: transparent;
|
|
115
|
+
color: var(--xeno-muted-text);
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
padding: 0 2px;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
line-height: 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.xeno-combobox-chip-x:hover {
|
|
123
|
+
color: var(--xeno-text);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.xeno-combobox-input {
|
|
127
|
+
flex: 1 1 80px;
|
|
128
|
+
min-width: 60px;
|
|
129
|
+
border: 0;
|
|
130
|
+
background: transparent;
|
|
131
|
+
color: var(--xeno-text);
|
|
132
|
+
font: inherit;
|
|
133
|
+
outline: none;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.xeno-combobox-input::placeholder {
|
|
138
|
+
color: var(--xeno-muted-text);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.xeno-select-list {
|
|
142
|
+
min-width: 200px;
|
|
143
|
+
max-height: 260px;
|
|
144
|
+
overflow-y: auto;
|
|
145
|
+
padding: 4px;
|
|
146
|
+
border-radius: var(--xeno-radius-md, 8px);
|
|
147
|
+
background: var(--xeno-elevated, var(--xeno-surface));
|
|
148
|
+
border: 1px solid var(--xeno-border-strong, var(--xeno-border));
|
|
149
|
+
box-shadow: var(--xeno-pop);
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
gap: 2px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.xeno-select-option {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
gap: 8px;
|
|
160
|
+
padding-block: 6px;
|
|
161
|
+
padding-inline: 8px;
|
|
162
|
+
border-radius: var(--xeno-radius-sm, 5px);
|
|
163
|
+
font-size: 12.5px;
|
|
164
|
+
color: var(--xeno-text);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
user-select: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.xeno-select-option[data-active='true'] {
|
|
170
|
+
background: var(--xeno-hover);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.xeno-select-option[data-selected='true'] {
|
|
174
|
+
background: var(--xeno-hover-strong, var(--xeno-control));
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.xeno-select-option[data-disabled='true'] {
|
|
179
|
+
opacity: 0.4;
|
|
180
|
+
cursor: default;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.xeno-select-opt-text {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
min-width: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.xeno-select-opt-label {
|
|
190
|
+
white-space: nowrap;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
text-overflow: ellipsis;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.xeno-select-opt-desc {
|
|
196
|
+
font-size: 11px;
|
|
197
|
+
color: var(--xeno-muted-text);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.xeno-select-check {
|
|
201
|
+
flex: none;
|
|
202
|
+
color: var(--xeno-success-text, var(--xeno-accent));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.xeno-select-empty {
|
|
206
|
+
padding: 12px 8px;
|
|
207
|
+
text-align: center;
|
|
208
|
+
font-size: 12px;
|
|
209
|
+
color: var(--xeno-muted-text);
|
|
210
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
.xeno-slider {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 6px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.xeno-slider[data-disabled='true'] {
|
|
11
|
+
opacity: 0.45;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.xeno-slider-head {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.xeno-slider-label {
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
color: var(--xeno-text);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xeno-slider-value {
|
|
28
|
+
font-size: 11.5px;
|
|
29
|
+
font-family: var(--xeno-font-mono);
|
|
30
|
+
font-variant-numeric: tabular-nums;
|
|
31
|
+
color: var(--xeno-muted-text);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.xeno-slider-track-wrap {
|
|
35
|
+
position: relative;
|
|
36
|
+
height: 20px;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.xeno-slider-track {
|
|
42
|
+
position: relative;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 4px;
|
|
45
|
+
border-radius: 2px;
|
|
46
|
+
background: var(--xeno-border);
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.xeno-slider-fill {
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset-block: 0;
|
|
54
|
+
inset-inline-start: 0;
|
|
55
|
+
background: var(--xeno-accent);
|
|
56
|
+
border-radius: 2px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.xeno-slider-input {
|
|
60
|
+
position: absolute;
|
|
61
|
+
inset: 0;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
margin: 0;
|
|
65
|
+
appearance: none;
|
|
66
|
+
background: transparent;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.xeno-slider-input:disabled {
|
|
71
|
+
cursor: default;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-slider-input::-webkit-slider-thumb {
|
|
75
|
+
appearance: none;
|
|
76
|
+
width: 14px;
|
|
77
|
+
height: 14px;
|
|
78
|
+
border-radius: 4px;
|
|
79
|
+
background: var(--xeno-accent);
|
|
80
|
+
border: 2px solid var(--xeno-surface);
|
|
81
|
+
box-shadow: 0 0 0 1px var(--xeno-border-strong);
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.xeno-slider-input::-moz-range-thumb {
|
|
86
|
+
width: 14px;
|
|
87
|
+
height: 14px;
|
|
88
|
+
border-radius: 4px;
|
|
89
|
+
background: var(--xeno-accent);
|
|
90
|
+
border: 2px solid var(--xeno-surface);
|
|
91
|
+
box-shadow: 0 0 0 1px var(--xeno-border-strong);
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.xeno-slider-input:focus-visible {
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.xeno-slider-input:focus-visible::-webkit-slider-thumb {
|
|
100
|
+
box-shadow: 0 0 0 2px var(--xeno-info-text);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.xeno-slider-marks {
|
|
104
|
+
position: relative;
|
|
105
|
+
height: 16px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.xeno-slider-mark {
|
|
109
|
+
position: absolute;
|
|
110
|
+
transform: translateX(-50%);
|
|
111
|
+
appearance: none;
|
|
112
|
+
border: 0;
|
|
113
|
+
background: transparent;
|
|
114
|
+
padding: 0 2px;
|
|
115
|
+
font-size: 10.5px;
|
|
116
|
+
font-family: var(--xeno-font-mono);
|
|
117
|
+
color: var(--xeno-muted-text);
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.xeno-slider-mark:first-child {
|
|
123
|
+
transform: translateX(0);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.xeno-slider-mark:last-child {
|
|
127
|
+
transform: translateX(-100%);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[dir='rtl'] .xeno-slider-mark {
|
|
131
|
+
transform: translateX(50%);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[dir='rtl'] .xeno-slider-mark:first-child {
|
|
135
|
+
transform: translateX(0);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[dir='rtl'] .xeno-slider-mark:last-child {
|
|
139
|
+
transform: translateX(100%);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.xeno-slider-mark[data-active='true'],
|
|
143
|
+
.xeno-slider-mark:hover:not(:disabled) {
|
|
144
|
+
color: var(--xeno-text);
|
|
145
|
+
}
|