@robert-stackflow/oneui 0.6.40 → 0.6.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +9 -1
- package/components/AccountItem.module.css +103 -103
- package/components/AppShell.module.css +223 -223
- package/components/Badge.module.css +30 -30
- package/components/BarChart.module.css +35 -35
- package/components/Breadcrumb.module.css +97 -97
- package/components/Button.module.css +120 -120
- package/components/Checkbox.module.css +95 -95
- package/components/Control.module.css +86 -86
- package/components/DataTable.module.css +75 -75
- package/components/Form.d.ts +5 -1
- package/components/Form.js +5 -1
- package/components/FormField.js +1 -0
- package/components/HierarchyPicker.module.css +185 -185
- package/components/Indicator.module.css +83 -83
- package/components/Layout.module.css +82 -82
- package/components/Markdown.module.css +227 -227
- package/components/NativeForm.d.ts +10 -0
- package/components/NativeForm.js +155 -0
- package/components/NavBar.module.css +130 -130
- package/components/Progress.module.css +33 -33
- package/components/RadioGroup.module.css +87 -87
- package/components/RangeSlider.module.css +141 -141
- package/components/ResizablePanel.module.css +101 -101
- package/components/ResourceCard.module.css +98 -98
- package/components/Slider.module.css +19 -19
- package/components/Steps.module.css +176 -176
- package/components/Tab.module.css +148 -148
- package/components/ThemePicker.module.css +178 -178
- package/components/TimeColumns.module.css +47 -47
- package/components/Timeline.module.css +202 -202
- package/components/Toast.d.ts +7 -2
- package/components/Toast.js +146 -98
- package/components/Toast.module.css +182 -85
- package/components/ToastProvider.js +19 -62
- package/components/ToastStack.d.ts +8 -0
- package/components/ToastStack.js +190 -0
- package/components/TreeTable.module.css +57 -57
- package/components/UptimeChart.module.css +15 -15
- package/components/field.d.ts +1 -1
- package/components/field.js +2 -1
- package/components/form-validation.d.ts +4 -0
- package/components/form-validation.js +22 -0
- package/components/index.d.ts +4 -2
- package/components/index.js +9 -3
- package/package.json +1 -1
- package/styles/blue.css +270 -270
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
.field {
|
|
2
|
-
min-width: 0;
|
|
3
|
-
outline: none;
|
|
4
|
-
}
|
|
5
|
-
.label {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
gap: 12px;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
line-height: 20px;
|
|
12
|
-
margin-bottom: 12px;
|
|
13
|
-
}
|
|
14
|
-
.label > span:last-child {
|
|
15
|
-
color: var(--muted);
|
|
16
|
-
font-variant-numeric: tabular-nums;
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
}
|
|
19
|
-
.rail {
|
|
20
|
-
position: relative;
|
|
21
|
-
height: 24px;
|
|
22
|
-
margin: 0 9px;
|
|
23
|
-
touch-action: none;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
}
|
|
26
|
-
.track,
|
|
27
|
-
.fill {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: 10px;
|
|
30
|
-
height: 4px;
|
|
31
|
-
border-radius: 3px;
|
|
32
|
-
pointer-events: none;
|
|
33
|
-
}
|
|
34
|
-
.track {
|
|
35
|
-
inset-inline: 0;
|
|
36
|
-
background: var(--line);
|
|
37
|
-
}
|
|
38
|
-
.fill {
|
|
39
|
-
background: var(--accent-ink, var(--accent));
|
|
40
|
-
transition:
|
|
41
|
-
left var(--motion-hover) var(--ease),
|
|
42
|
-
width var(--motion-hover) var(--ease);
|
|
43
|
-
}
|
|
44
|
-
.anchor {
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 50%;
|
|
47
|
-
transform: translate(-50%, -50%);
|
|
48
|
-
height: 18px;
|
|
49
|
-
width: 18px;
|
|
50
|
-
transition: left var(--motion-hover) var(--ease);
|
|
51
|
-
}
|
|
52
|
-
.thumb {
|
|
53
|
-
display: block;
|
|
54
|
-
width: 18px;
|
|
55
|
-
height: 18px;
|
|
56
|
-
background: var(--field);
|
|
57
|
-
border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--surface));
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
box-shadow: var(--shadow-sm);
|
|
60
|
-
outline: none;
|
|
61
|
-
cursor: grab;
|
|
62
|
-
transition:
|
|
63
|
-
border-color var(--motion-hover),
|
|
64
|
-
box-shadow var(--motion-hover),
|
|
65
|
-
background-color var(--motion-hover);
|
|
66
|
-
}
|
|
67
|
-
.thumb:hover {
|
|
68
|
-
border-color: var(--accent-ink, var(--accent));
|
|
69
|
-
}
|
|
70
|
-
.thumb:focus,
|
|
71
|
-
.thumb:focus-visible {
|
|
72
|
-
outline: none;
|
|
73
|
-
border-color: var(--accent-ink, var(--accent));
|
|
74
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-ink, var(--accent)) 12%, transparent);
|
|
75
|
-
}
|
|
76
|
-
.rail[data-dragging="true"] .thumb {
|
|
77
|
-
cursor: grabbing;
|
|
78
|
-
}
|
|
79
|
-
.rail[data-dragging="true"] :is(.anchor, .fill) {
|
|
80
|
-
transition: none;
|
|
81
|
-
}
|
|
82
|
-
.field[data-disabled="true"] {
|
|
83
|
-
opacity: 0.45;
|
|
84
|
-
}
|
|
85
|
-
.field[data-disabled="true"] :is(.rail, .thumb) {
|
|
86
|
-
cursor: not-allowed;
|
|
87
|
-
}
|
|
88
|
-
.field[aria-invalid="true"] .thumb {
|
|
89
|
-
border-color: var(--danger);
|
|
90
|
-
}
|
|
91
|
-
.field[aria-invalid="true"] .thumb:focus {
|
|
92
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent);
|
|
93
|
-
}
|
|
94
|
-
.marks {
|
|
95
|
-
position: relative;
|
|
96
|
-
height: 24px;
|
|
97
|
-
margin: 0 9px;
|
|
98
|
-
font-size: 10px;
|
|
99
|
-
color: var(--muted);
|
|
100
|
-
}
|
|
101
|
-
.mark {
|
|
102
|
-
position: absolute;
|
|
103
|
-
top: 0;
|
|
104
|
-
max-width: 33%;
|
|
105
|
-
transform: translateX(-50%);
|
|
106
|
-
white-space: nowrap;
|
|
107
|
-
overflow: hidden;
|
|
108
|
-
text-overflow: ellipsis;
|
|
109
|
-
padding-top: 8px;
|
|
110
|
-
}
|
|
111
|
-
.mark > i {
|
|
112
|
-
position: absolute;
|
|
113
|
-
top: 0;
|
|
114
|
-
left: 50%;
|
|
115
|
-
height: 4px;
|
|
116
|
-
width: 1px;
|
|
117
|
-
background: var(--line);
|
|
118
|
-
}
|
|
119
|
-
.mark[data-edge="start"] {
|
|
120
|
-
transform: none;
|
|
121
|
-
}
|
|
122
|
-
.mark[data-edge="start"] > i {
|
|
123
|
-
left: 0;
|
|
124
|
-
}
|
|
125
|
-
.mark[data-edge="end"] {
|
|
126
|
-
transform: translateX(-100%);
|
|
127
|
-
}
|
|
128
|
-
.mark[data-edge="end"] > i {
|
|
129
|
-
left: auto;
|
|
130
|
-
right: 0;
|
|
131
|
-
}
|
|
132
|
-
@media (prefers-reduced-motion: reduce) {
|
|
133
|
-
.anchor,
|
|
134
|
-
.fill {
|
|
135
|
-
transition: none;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.anchor:focus-within {
|
|
140
|
-
z-index: 3 !important;
|
|
141
|
-
}
|
|
1
|
+
.field {
|
|
2
|
+
min-width: 0;
|
|
3
|
+
outline: none;
|
|
4
|
+
}
|
|
5
|
+
.label {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
gap: 12px;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
margin-bottom: 12px;
|
|
13
|
+
}
|
|
14
|
+
.label > span:last-child {
|
|
15
|
+
color: var(--muted);
|
|
16
|
+
font-variant-numeric: tabular-nums;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
}
|
|
19
|
+
.rail {
|
|
20
|
+
position: relative;
|
|
21
|
+
height: 24px;
|
|
22
|
+
margin: 0 9px;
|
|
23
|
+
touch-action: none;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.track,
|
|
27
|
+
.fill {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 10px;
|
|
30
|
+
height: 4px;
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
.track {
|
|
35
|
+
inset-inline: 0;
|
|
36
|
+
background: var(--line);
|
|
37
|
+
}
|
|
38
|
+
.fill {
|
|
39
|
+
background: var(--accent-ink, var(--accent));
|
|
40
|
+
transition:
|
|
41
|
+
left var(--motion-hover) var(--ease),
|
|
42
|
+
width var(--motion-hover) var(--ease);
|
|
43
|
+
}
|
|
44
|
+
.anchor {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 50%;
|
|
47
|
+
transform: translate(-50%, -50%);
|
|
48
|
+
height: 18px;
|
|
49
|
+
width: 18px;
|
|
50
|
+
transition: left var(--motion-hover) var(--ease);
|
|
51
|
+
}
|
|
52
|
+
.thumb {
|
|
53
|
+
display: block;
|
|
54
|
+
width: 18px;
|
|
55
|
+
height: 18px;
|
|
56
|
+
background: var(--field);
|
|
57
|
+
border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--surface));
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
box-shadow: var(--shadow-sm);
|
|
60
|
+
outline: none;
|
|
61
|
+
cursor: grab;
|
|
62
|
+
transition:
|
|
63
|
+
border-color var(--motion-hover),
|
|
64
|
+
box-shadow var(--motion-hover),
|
|
65
|
+
background-color var(--motion-hover);
|
|
66
|
+
}
|
|
67
|
+
.thumb:hover {
|
|
68
|
+
border-color: var(--accent-ink, var(--accent));
|
|
69
|
+
}
|
|
70
|
+
.thumb:focus,
|
|
71
|
+
.thumb:focus-visible {
|
|
72
|
+
outline: none;
|
|
73
|
+
border-color: var(--accent-ink, var(--accent));
|
|
74
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-ink, var(--accent)) 12%, transparent);
|
|
75
|
+
}
|
|
76
|
+
.rail[data-dragging="true"] .thumb {
|
|
77
|
+
cursor: grabbing;
|
|
78
|
+
}
|
|
79
|
+
.rail[data-dragging="true"] :is(.anchor, .fill) {
|
|
80
|
+
transition: none;
|
|
81
|
+
}
|
|
82
|
+
.field[data-disabled="true"] {
|
|
83
|
+
opacity: 0.45;
|
|
84
|
+
}
|
|
85
|
+
.field[data-disabled="true"] :is(.rail, .thumb) {
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
.field[aria-invalid="true"] .thumb {
|
|
89
|
+
border-color: var(--danger);
|
|
90
|
+
}
|
|
91
|
+
.field[aria-invalid="true"] .thumb:focus {
|
|
92
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent);
|
|
93
|
+
}
|
|
94
|
+
.marks {
|
|
95
|
+
position: relative;
|
|
96
|
+
height: 24px;
|
|
97
|
+
margin: 0 9px;
|
|
98
|
+
font-size: 10px;
|
|
99
|
+
color: var(--muted);
|
|
100
|
+
}
|
|
101
|
+
.mark {
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 0;
|
|
104
|
+
max-width: 33%;
|
|
105
|
+
transform: translateX(-50%);
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
text-overflow: ellipsis;
|
|
109
|
+
padding-top: 8px;
|
|
110
|
+
}
|
|
111
|
+
.mark > i {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 0;
|
|
114
|
+
left: 50%;
|
|
115
|
+
height: 4px;
|
|
116
|
+
width: 1px;
|
|
117
|
+
background: var(--line);
|
|
118
|
+
}
|
|
119
|
+
.mark[data-edge="start"] {
|
|
120
|
+
transform: none;
|
|
121
|
+
}
|
|
122
|
+
.mark[data-edge="start"] > i {
|
|
123
|
+
left: 0;
|
|
124
|
+
}
|
|
125
|
+
.mark[data-edge="end"] {
|
|
126
|
+
transform: translateX(-100%);
|
|
127
|
+
}
|
|
128
|
+
.mark[data-edge="end"] > i {
|
|
129
|
+
left: auto;
|
|
130
|
+
right: 0;
|
|
131
|
+
}
|
|
132
|
+
@media (prefers-reduced-motion: reduce) {
|
|
133
|
+
.anchor,
|
|
134
|
+
.fill {
|
|
135
|
+
transition: none;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.anchor:focus-within {
|
|
140
|
+
z-index: 3 !important;
|
|
141
|
+
}
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
.group {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: grid;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
min-width: 0;
|
|
7
|
-
min-height: 0;
|
|
8
|
-
grid-template-columns: minmax(0, var(--panel-first)) 8px minmax(
|
|
9
|
-
0,
|
|
10
|
-
var(--panel-second)
|
|
11
|
-
);
|
|
12
|
-
grid-template-rows: minmax(0, 1fr);
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
transition:
|
|
15
|
-
grid-template-columns var(--motion-panel) var(--ease),
|
|
16
|
-
grid-template-rows var(--motion-panel) var(--ease);
|
|
17
|
-
}
|
|
18
|
-
.group[data-direction="vertical"] {
|
|
19
|
-
grid-template-columns: minmax(0, 1fr);
|
|
20
|
-
grid-template-rows: minmax(0, var(--panel-first)) 8px minmax(
|
|
21
|
-
0,
|
|
22
|
-
var(--panel-second)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
.group[data-resizing="true"] {
|
|
26
|
-
transition: none;
|
|
27
|
-
}
|
|
28
|
-
.pane {
|
|
29
|
-
min-width: 0;
|
|
30
|
-
min-height: 0;
|
|
31
|
-
overflow: auto;
|
|
32
|
-
overscroll-behavior: contain;
|
|
33
|
-
}
|
|
34
|
-
.pane[data-collapsed="true"] {
|
|
35
|
-
visibility: hidden;
|
|
36
|
-
}
|
|
37
|
-
.handle {
|
|
38
|
-
position: relative;
|
|
39
|
-
cursor: col-resize;
|
|
40
|
-
touch-action: none;
|
|
41
|
-
outline: none;
|
|
42
|
-
}
|
|
43
|
-
.handle:focus-visible {
|
|
44
|
-
outline: none;
|
|
45
|
-
}
|
|
46
|
-
.handle::before {
|
|
47
|
-
content: "";
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 0;
|
|
50
|
-
bottom: 0;
|
|
51
|
-
left: calc(50% - 0.5px);
|
|
52
|
-
width: var(--separator-width);
|
|
53
|
-
background: var(--separator-color);
|
|
54
|
-
transition: background var(--motion-hover);
|
|
55
|
-
}
|
|
56
|
-
.handle::after {
|
|
57
|
-
content: "";
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: 50%;
|
|
60
|
-
left: 50%;
|
|
61
|
-
transform: translate(-50%, -50%);
|
|
62
|
-
width: 3px;
|
|
63
|
-
height: 28px;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
background: var(--muted);
|
|
66
|
-
opacity: 0;
|
|
67
|
-
transition: opacity var(--motion-hover);
|
|
68
|
-
}
|
|
69
|
-
.handle:hover:not([aria-disabled="true"])::after,
|
|
70
|
-
.handle:focus-visible::after,
|
|
71
|
-
.group[data-resizing="true"] > .handle::after {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
}
|
|
74
|
-
.handle:focus-visible::before,
|
|
75
|
-
.group[data-resizing="true"] > .handle::before {
|
|
76
|
-
background: var(--accent-ink, var(--accent));
|
|
77
|
-
}
|
|
78
|
-
.handle[aria-disabled="true"] {
|
|
79
|
-
cursor: default;
|
|
80
|
-
}
|
|
81
|
-
.group[data-direction="vertical"] > .handle {
|
|
82
|
-
cursor: row-resize;
|
|
83
|
-
}
|
|
84
|
-
.group[data-direction="vertical"] > .handle[aria-disabled="true"] {
|
|
85
|
-
cursor: default;
|
|
86
|
-
}
|
|
87
|
-
.group[data-direction="vertical"] > .handle::before {
|
|
88
|
-
left: 0;
|
|
89
|
-
right: 0;
|
|
90
|
-
top: calc(50% - 0.5px);
|
|
91
|
-
bottom: auto;
|
|
92
|
-
height: var(--separator-width);
|
|
93
|
-
width: auto;
|
|
94
|
-
}
|
|
95
|
-
.group[data-direction="vertical"] > .handle::after {
|
|
96
|
-
width: 28px;
|
|
97
|
-
height: 3px;
|
|
98
|
-
}
|
|
99
|
-
.help {
|
|
100
|
-
composes: visuallyHidden from "./Accessibility.module.css";
|
|
101
|
-
}
|
|
1
|
+
.group {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: grid;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
grid-template-columns: minmax(0, var(--panel-first)) 8px minmax(
|
|
9
|
+
0,
|
|
10
|
+
var(--panel-second)
|
|
11
|
+
);
|
|
12
|
+
grid-template-rows: minmax(0, 1fr);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
transition:
|
|
15
|
+
grid-template-columns var(--motion-panel) var(--ease),
|
|
16
|
+
grid-template-rows var(--motion-panel) var(--ease);
|
|
17
|
+
}
|
|
18
|
+
.group[data-direction="vertical"] {
|
|
19
|
+
grid-template-columns: minmax(0, 1fr);
|
|
20
|
+
grid-template-rows: minmax(0, var(--panel-first)) 8px minmax(
|
|
21
|
+
0,
|
|
22
|
+
var(--panel-second)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
.group[data-resizing="true"] {
|
|
26
|
+
transition: none;
|
|
27
|
+
}
|
|
28
|
+
.pane {
|
|
29
|
+
min-width: 0;
|
|
30
|
+
min-height: 0;
|
|
31
|
+
overflow: auto;
|
|
32
|
+
overscroll-behavior: contain;
|
|
33
|
+
}
|
|
34
|
+
.pane[data-collapsed="true"] {
|
|
35
|
+
visibility: hidden;
|
|
36
|
+
}
|
|
37
|
+
.handle {
|
|
38
|
+
position: relative;
|
|
39
|
+
cursor: col-resize;
|
|
40
|
+
touch-action: none;
|
|
41
|
+
outline: none;
|
|
42
|
+
}
|
|
43
|
+
.handle:focus-visible {
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
.handle::before {
|
|
47
|
+
content: "";
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: calc(50% - 0.5px);
|
|
52
|
+
width: var(--separator-width);
|
|
53
|
+
background: var(--separator-color);
|
|
54
|
+
transition: background var(--motion-hover);
|
|
55
|
+
}
|
|
56
|
+
.handle::after {
|
|
57
|
+
content: "";
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 50%;
|
|
60
|
+
left: 50%;
|
|
61
|
+
transform: translate(-50%, -50%);
|
|
62
|
+
width: 3px;
|
|
63
|
+
height: 28px;
|
|
64
|
+
border-radius: 3px;
|
|
65
|
+
background: var(--muted);
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transition: opacity var(--motion-hover);
|
|
68
|
+
}
|
|
69
|
+
.handle:hover:not([aria-disabled="true"])::after,
|
|
70
|
+
.handle:focus-visible::after,
|
|
71
|
+
.group[data-resizing="true"] > .handle::after {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
.handle:focus-visible::before,
|
|
75
|
+
.group[data-resizing="true"] > .handle::before {
|
|
76
|
+
background: var(--accent-ink, var(--accent));
|
|
77
|
+
}
|
|
78
|
+
.handle[aria-disabled="true"] {
|
|
79
|
+
cursor: default;
|
|
80
|
+
}
|
|
81
|
+
.group[data-direction="vertical"] > .handle {
|
|
82
|
+
cursor: row-resize;
|
|
83
|
+
}
|
|
84
|
+
.group[data-direction="vertical"] > .handle[aria-disabled="true"] {
|
|
85
|
+
cursor: default;
|
|
86
|
+
}
|
|
87
|
+
.group[data-direction="vertical"] > .handle::before {
|
|
88
|
+
left: 0;
|
|
89
|
+
right: 0;
|
|
90
|
+
top: calc(50% - 0.5px);
|
|
91
|
+
bottom: auto;
|
|
92
|
+
height: var(--separator-width);
|
|
93
|
+
width: auto;
|
|
94
|
+
}
|
|
95
|
+
.group[data-direction="vertical"] > .handle::after {
|
|
96
|
+
width: 28px;
|
|
97
|
+
height: 3px;
|
|
98
|
+
}
|
|
99
|
+
.help {
|
|
100
|
+
composes: visuallyHidden from "./Accessibility.module.css";
|
|
101
|
+
}
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
.card {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
padding: 24px;
|
|
5
|
-
color: var(--fg);
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
transition:
|
|
8
|
-
border-color var(--motion-hover),
|
|
9
|
-
box-shadow var(--motion-hover);
|
|
10
|
-
}
|
|
11
|
-
.card:hover {
|
|
12
|
-
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
|
|
13
|
-
box-shadow: var(--shadow);
|
|
14
|
-
}
|
|
15
|
-
.header {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
gap: 12px;
|
|
19
|
-
min-width: 0;
|
|
20
|
-
}
|
|
21
|
-
.icon {
|
|
22
|
-
width: 40px;
|
|
23
|
-
height: 40px;
|
|
24
|
-
flex: none;
|
|
25
|
-
border-radius: var(--radius);
|
|
26
|
-
display: grid;
|
|
27
|
-
place-items: center;
|
|
28
|
-
background: var(--selected);
|
|
29
|
-
color: var(--accent-ink, var(--accent));
|
|
30
|
-
}
|
|
31
|
-
.icon svg {
|
|
32
|
-
width: 20px;
|
|
33
|
-
height: 20px;
|
|
34
|
-
}
|
|
35
|
-
.heading {
|
|
36
|
-
flex: 1;
|
|
37
|
-
min-width: 0;
|
|
38
|
-
}
|
|
39
|
-
.heading h3 {
|
|
40
|
-
font-size: 15px;
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
color: var(--fg);
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
text-overflow: ellipsis;
|
|
45
|
-
white-space: nowrap;
|
|
46
|
-
}
|
|
47
|
-
.heading p {
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
color: var(--muted);
|
|
50
|
-
margin-top: 3px;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
text-overflow: ellipsis;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
}
|
|
55
|
-
.description {
|
|
56
|
-
font-size: 13px;
|
|
57
|
-
line-height: 1.7;
|
|
58
|
-
margin: 18px 0 0;
|
|
59
|
-
color: var(--muted);
|
|
60
|
-
display: -webkit-box;
|
|
61
|
-
-webkit-line-clamp: 2;
|
|
62
|
-
-webkit-box-orient: vertical;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
}
|
|
65
|
-
.footer {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: space-between;
|
|
69
|
-
gap: 12px;
|
|
70
|
-
margin-top: auto;
|
|
71
|
-
padding-top: 20px;
|
|
72
|
-
color: var(--muted);
|
|
73
|
-
}
|
|
74
|
-
.facts {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
flex-wrap: wrap;
|
|
78
|
-
gap: 6px 14px;
|
|
79
|
-
font-size: 12px;
|
|
80
|
-
}
|
|
81
|
-
.facts > span + span {
|
|
82
|
-
padding-left: 14px;
|
|
83
|
-
border-left: 1px solid var(--line);
|
|
84
|
-
}
|
|
85
|
-
@media (max-width: 600px) {
|
|
86
|
-
.card {
|
|
87
|
-
padding: 18px;
|
|
88
|
-
}
|
|
89
|
-
.header {
|
|
90
|
-
gap: 10px;
|
|
91
|
-
}
|
|
92
|
-
.facts {
|
|
93
|
-
gap: 6px 10px;
|
|
94
|
-
}
|
|
95
|
-
.facts > span + span {
|
|
96
|
-
padding-left: 10px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
.card {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
padding: 24px;
|
|
5
|
+
color: var(--fg);
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
transition:
|
|
8
|
+
border-color var(--motion-hover),
|
|
9
|
+
box-shadow var(--motion-hover);
|
|
10
|
+
}
|
|
11
|
+
.card:hover {
|
|
12
|
+
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
|
|
13
|
+
box-shadow: var(--shadow);
|
|
14
|
+
}
|
|
15
|
+
.header {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 12px;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
.icon {
|
|
22
|
+
width: 40px;
|
|
23
|
+
height: 40px;
|
|
24
|
+
flex: none;
|
|
25
|
+
border-radius: var(--radius);
|
|
26
|
+
display: grid;
|
|
27
|
+
place-items: center;
|
|
28
|
+
background: var(--selected);
|
|
29
|
+
color: var(--accent-ink, var(--accent));
|
|
30
|
+
}
|
|
31
|
+
.icon svg {
|
|
32
|
+
width: 20px;
|
|
33
|
+
height: 20px;
|
|
34
|
+
}
|
|
35
|
+
.heading {
|
|
36
|
+
flex: 1;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
}
|
|
39
|
+
.heading h3 {
|
|
40
|
+
font-size: 15px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
color: var(--fg);
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
.heading p {
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
color: var(--muted);
|
|
50
|
+
margin-top: 3px;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
text-overflow: ellipsis;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
.description {
|
|
56
|
+
font-size: 13px;
|
|
57
|
+
line-height: 1.7;
|
|
58
|
+
margin: 18px 0 0;
|
|
59
|
+
color: var(--muted);
|
|
60
|
+
display: -webkit-box;
|
|
61
|
+
-webkit-line-clamp: 2;
|
|
62
|
+
-webkit-box-orient: vertical;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
}
|
|
65
|
+
.footer {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
gap: 12px;
|
|
70
|
+
margin-top: auto;
|
|
71
|
+
padding-top: 20px;
|
|
72
|
+
color: var(--muted);
|
|
73
|
+
}
|
|
74
|
+
.facts {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
flex-wrap: wrap;
|
|
78
|
+
gap: 6px 14px;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
81
|
+
.facts > span + span {
|
|
82
|
+
padding-left: 14px;
|
|
83
|
+
border-left: 1px solid var(--line);
|
|
84
|
+
}
|
|
85
|
+
@media (max-width: 600px) {
|
|
86
|
+
.card {
|
|
87
|
+
padding: 18px;
|
|
88
|
+
}
|
|
89
|
+
.header {
|
|
90
|
+
gap: 10px;
|
|
91
|
+
}
|
|
92
|
+
.facts {
|
|
93
|
+
gap: 6px 10px;
|
|
94
|
+
}
|
|
95
|
+
.facts > span + span {
|
|
96
|
+
padding-left: 10px;
|
|
97
|
+
}
|
|
98
|
+
}
|