@ciridae/ui 1.1.0 → 1.1.1
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.
|
@@ -60,7 +60,8 @@ const item = css({
|
|
|
60
60
|
height: "control.row",
|
|
61
61
|
paddingInline: "control.compactInline",
|
|
62
62
|
border: "0",
|
|
63
|
-
|
|
63
|
+
// The hover's shape from the start: the row is unfilled at rest, so only the wash appears.
|
|
64
|
+
borderRadius: "shell",
|
|
64
65
|
background: "transparent",
|
|
65
66
|
// Muted against the dark canvas; light keeps every item at full contrast, as Round 2 does.
|
|
66
67
|
color: "fg.muted",
|
|
@@ -72,12 +73,11 @@ const item = css({
|
|
|
72
73
|
lineHeight: "tight",
|
|
73
74
|
textAlign: "start",
|
|
74
75
|
cursor: "pointer",
|
|
75
|
-
transitionProperty: "[background, color
|
|
76
|
+
transitionProperty: "[background, color]",
|
|
76
77
|
transitionDuration: "fast",
|
|
77
78
|
"& > svg:first-child": { opacity: "[.7]" },
|
|
78
79
|
"&[data-icon-tone=bronze] > svg:first-child": { color: "accent.bronze" },
|
|
79
80
|
"&:hover, &[aria-pressed=true]": {
|
|
80
|
-
borderRadius: "shell",
|
|
81
81
|
background: "[token(gradients.selected)]",
|
|
82
82
|
_light: { background: "bg.rowHover" },
|
|
83
83
|
color: "fg.primary",
|
|
@@ -86,7 +86,6 @@ const item = css({
|
|
|
86
86
|
// The open page keeps the hover shape and size; the field face and the canvas's edge mark it.
|
|
87
87
|
// The design counts that edge inside the row, so its content sits a hairline further in.
|
|
88
88
|
"&[aria-current=page]": {
|
|
89
|
-
borderRadius: "shell",
|
|
90
89
|
background: "bg.field",
|
|
91
90
|
boxShadow: "[inset 0 0 0 1px token(colors.border.canvas)]",
|
|
92
91
|
color: "fg.primary",
|
|
@@ -95,7 +94,7 @@ const item = css({
|
|
|
95
94
|
paddingInline: "[calc(token(spacing.control.compactInline) + token(sizes.border.hairline))]",
|
|
96
95
|
},
|
|
97
96
|
},
|
|
98
|
-
_focusVisible: {
|
|
97
|
+
_focusVisible: { focusRing: "outer" },
|
|
99
98
|
// A secondary list under the navigation, such as recently opened records: a shorter row in
|
|
100
99
|
// smaller, quieter text, so it reads apart from the pages above it.
|
|
101
100
|
"&[data-size=compact]": {
|
|
@@ -122,17 +121,15 @@ const itemGroup = css({
|
|
|
122
121
|
alignItems: "center",
|
|
123
122
|
width: "full",
|
|
124
123
|
minWidth: "0",
|
|
125
|
-
borderRadius: "
|
|
126
|
-
transitionProperty: "[background
|
|
124
|
+
borderRadius: "shell",
|
|
125
|
+
transitionProperty: "[background]",
|
|
127
126
|
transitionDuration: "fast",
|
|
128
127
|
"&:hover": {
|
|
129
|
-
borderRadius: "shell",
|
|
130
128
|
background: "[token(gradients.selected)]",
|
|
131
129
|
_light: { background: "bg.rowHover" },
|
|
132
130
|
},
|
|
133
131
|
"&:hover > [data-sidebar-row]": { color: "fg.primary" },
|
|
134
132
|
"&:has(> [data-sidebar-row][aria-current=page])": {
|
|
135
|
-
borderRadius: "shell",
|
|
136
133
|
background: "bg.field",
|
|
137
134
|
boxShadow: "[inset 0 0 0 1px token(colors.border.canvas)]",
|
|
138
135
|
},
|
|
@@ -141,7 +138,7 @@ const itemGroup = css({
|
|
|
141
138
|
"& > [data-sidebar-row], & > [data-sidebar-row]:is(:hover, [aria-current=page], [aria-pressed=true])": { background: "transparent", boxShadow: "[none]" },
|
|
142
139
|
// Focus rings the whole row, action included, not just the link inside it.
|
|
143
140
|
"& > [data-sidebar-row]:focus-visible": { outline: "0" },
|
|
144
|
-
"&:has(> [data-sidebar-row]:focus-visible)": {
|
|
141
|
+
"&:has(> [data-sidebar-row]:focus-visible)": { focusRing: "outer" },
|
|
145
142
|
"&:hover > [data-sidebar-action], & > [data-sidebar-action]:focus-within": { opacity: "[1]" },
|
|
146
143
|
});
|
|
147
144
|
// Revealed on hover or focus; always shown where there is no hover to reveal it.
|
|
@@ -1776,10 +1776,6 @@
|
|
|
1776
1776
|
gap: var(--spacing-sidebar\.mark-gap);
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
1779
|
-
.bdr_nav {
|
|
1780
|
-
border-radius: var(--radii-nav);
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
1779
|
.my_\[calc\(\(1lh_-_token\(sizes\.control\.shortcut\)\)_\/_2\)\] {
|
|
1784
1780
|
margin-block: calc((1lh - var(--sizes-control\.shortcut)) / 2);
|
|
1785
1781
|
}
|
|
@@ -2954,14 +2950,9 @@
|
|
|
2954
2950
|
padding-block-start: var(--spacing-panel\.default);
|
|
2955
2951
|
}
|
|
2956
2952
|
|
|
2957
|
-
.trs-prop_\[background
|
|
2958
|
-
--transition-prop: background, color,
|
|
2959
|
-
transition-property: background, color,
|
|
2960
|
-
}
|
|
2961
|
-
|
|
2962
|
-
.trs-prop_\[background\,_border-radius\] {
|
|
2963
|
-
--transition-prop: background, border-radius;
|
|
2964
|
-
transition-property: background, border-radius;
|
|
2953
|
+
.trs-prop_\[background\] {
|
|
2954
|
+
--transition-prop: background, background-color, background-image, background-position;
|
|
2955
|
+
transition-property: background, background-color, background-image, background-position;
|
|
2965
2956
|
}
|
|
2966
2957
|
|
|
2967
2958
|
.pe_control\.trackInset {
|
|
@@ -5730,10 +5721,6 @@
|
|
|
5730
5721
|
flex: 1 1 0%;
|
|
5731
5722
|
}
|
|
5732
5723
|
|
|
5733
|
-
.\[\&\[aria-current\=page\]\]\:bdr_shell[aria-current=page] {
|
|
5734
|
-
border-radius: var(--radii-shell);
|
|
5735
|
-
}
|
|
5736
|
-
|
|
5737
5724
|
.\[\&\[data-icon-only\]\]\:px_none[data-icon-only] {
|
|
5738
5725
|
padding-inline: var(--spacing-none);
|
|
5739
5726
|
}
|
|
@@ -5742,10 +5729,6 @@
|
|
|
5742
5729
|
border-radius: var(--radii-round);
|
|
5743
5730
|
}
|
|
5744
5731
|
|
|
5745
|
-
.\[\&\:has\(\>_\[data-sidebar-row\]\[aria-current\=page\]\)\]\:bdr_shell:has(> [data-sidebar-row][aria-current=page]) {
|
|
5746
|
-
border-radius: var(--radii-shell);
|
|
5747
|
-
}
|
|
5748
|
-
|
|
5749
5732
|
.\[\&\[data-shape\=block\]\]\:bdr_control[data-shape=block] {
|
|
5750
5733
|
border-radius: var(--radii-control);
|
|
5751
5734
|
}
|
|
@@ -8945,18 +8928,10 @@
|
|
|
8945
8928
|
outline: 2px solid var(--colors-border\.focus);
|
|
8946
8929
|
}
|
|
8947
8930
|
|
|
8948
|
-
.focusVisible\:bdr_shell:is(:focus-visible, [data-focus-visible]) {
|
|
8949
|
-
border-radius: var(--radii-shell);
|
|
8950
|
-
}
|
|
8951
|
-
|
|
8952
8931
|
.\[\&_\>_\[data-sidebar-row\]\:focus-visible\]\:ring_0 > [data-sidebar-row]:focus-visible {
|
|
8953
8932
|
outline: 0;
|
|
8954
8933
|
}
|
|
8955
8934
|
|
|
8956
|
-
.\[\&\:has\(\>_\[data-sidebar-row\]\:focus-visible\)\]\:bdr_shell:has(> [data-sidebar-row]:focus-visible) {
|
|
8957
|
-
border-radius: var(--radii-shell);
|
|
8958
|
-
}
|
|
8959
|
-
|
|
8960
8935
|
.\[\&\:has\(input\:focus-visible\)\]\:bd-c_fg\.muted:has(input:focus-visible) {
|
|
8961
8936
|
border-color: var(--colors-fg\.muted);
|
|
8962
8937
|
}
|
|
@@ -9130,10 +9105,6 @@
|
|
|
9130
9105
|
border-color: var(--colors-border\.control);
|
|
9131
9106
|
}
|
|
9132
9107
|
|
|
9133
|
-
.\[\&\:hover\,_\&\[aria-pressed\=true\]\]\:bdr_shell:hover,.\[\&\:hover\,_\&\[aria-pressed\=true\]\]\:bdr_shell[aria-pressed=true],.\[\&\:hover\]\:bdr_shell:hover {
|
|
9134
|
-
border-radius: var(--radii-shell);
|
|
9135
|
-
}
|
|
9136
|
-
|
|
9137
9108
|
.\[\&_\:is\(a\,_button\)\:hover\]\:td_underline :is(a, button):hover {
|
|
9138
9109
|
text-decoration: underline;
|
|
9139
9110
|
}
|