@plexui/styles 0.1.9 → 0.1.11
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.
|
@@ -122,15 +122,11 @@ background-color: var(--gray-800);
|
|
|
122
122
|
transform 150ms ease;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
/*
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
@starting-style {
|
|
130
|
-
.Container:is(:hover, :focus-within) .CheckMark {
|
|
131
|
-
opacity: 0
|
|
125
|
+
/* The indicator stays mounted, so a long list of boxes cleared at once costs
|
|
126
|
+
no style pass per box and first render plays no animation. */
|
|
127
|
+
[data-state="unchecked"] > .CheckMark {
|
|
128
|
+
opacity: 0;
|
|
132
129
|
}
|
|
133
|
-
}
|
|
134
130
|
|
|
135
131
|
[data-state="indeterminate"] .CheckMark {
|
|
136
132
|
transform: translate(30%, 80%);
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
top: var(--switch-thumb-offset);
|
|
59
59
|
left: var(--switch-thumb-offset);
|
|
60
60
|
display: block;
|
|
61
|
-
width: var(--switch-thumb-
|
|
61
|
+
width: var(--switch-thumb-width);
|
|
62
62
|
height: var(--switch-thumb-size);
|
|
63
63
|
border-radius: var(--radius-full);
|
|
64
64
|
background: var(--switch-thumb-color);
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
[data-state="checked"] .Thumb {
|
|
70
70
|
transform: translateX(
|
|
71
|
-
calc(var(--switch-track-width) - var(--switch-thumb-
|
|
71
|
+
calc(var(--switch-track-width) - var(--switch-thumb-width) - var(--switch-thumb-offset) * 2)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -355,6 +355,7 @@
|
|
|
355
355
|
--switch-track-height: 19px;
|
|
356
356
|
--switch-thumb-offset: 3px;
|
|
357
357
|
--switch-thumb-size: calc(var(--switch-track-height) - 2 * var(--switch-thumb-offset));
|
|
358
|
+
--switch-thumb-width: var(--switch-thumb-size);
|
|
358
359
|
--switch-thumb-shadow: 0 1px 2px rgb(0 0 0 / 20%);
|
|
359
360
|
--switch-label-gap: calc(var(--spacing) * 2);
|
|
360
361
|
|