@sharadox/graphical-user-interface-web-library 0.2.0-fields.8 → 0.2.0-fields.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
:where(.switch){display:inline-flex;align-items:center;gap:var(--scale-8);margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}:where(.switch):disabled{cursor:default}:where(.switch):focus-visible{outline:none}:where(.switch):focus-visible>:where(.track){outline:var(--focus-thickness) solid var(--current-color);outline-offset:var(--focus-offset)}:where(.track
|
|
1
|
+
:where(.switch){display:inline-flex;align-items:center;gap:var(--scale-8);margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}:where(.switch):disabled{cursor:default}:where(.switch):focus-visible{outline:none}:where(.switch):focus-visible>:where(.track){outline:var(--focus-thickness) solid var(--current-color);outline-offset:var(--focus-offset)}:where(.switch) .track{justify-content:start;inline-size:calc(var(--current-minimum-size)*2);min-inline-size:calc(var(--current-minimum-size)*2);padding:var(--line-thickness)}:where(.track)>*{flex:none}:where(.knob){display:flex;justify-content:center;align-items:center;inline-size:calc(var(--current-minimum-size) - 4*var(--line-thickness));block-size:calc(var(--current-minimum-size) - 4*var(--line-thickness));border-radius:var(--corner-radius);background:currentcolor;font-size:.6em;transition:transform var(--duration) var(--easing)}:where(.knob)>*{color:var(--current-color)}:where(.switch[data-checked]) :where(.knob){transform:translateX(calc(var(--current-minimum-size)))}:where(.switch[data-checked]:dir(rtl)) :where(.knob){transform:translateX(calc(var(--current-minimum-size) * -1))}:where(.label){font-size:var(--current-font-size)}
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// Twice as wide as high; the knob is a square of the track's inner height, gliding to the far end when on.
|
|
29
|
-
|
|
28
|
+
// Twice as wide as high; the knob is a square of the track's inner height, gliding to the far end when on. Inside the
|
|
29
|
+
// switch, so these beat the box's own (zero-weight) size and padding whichever style sheet loads last.
|
|
30
|
+
:where(.switch) .track {
|
|
30
31
|
justify-content: start;
|
|
31
32
|
inline-size: calc(var(--current-minimum-size) * 2);
|
|
32
33
|
min-inline-size: calc(var(--current-minimum-size) * 2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/graphical-user-interface-web-library",
|
|
3
|
-
"version": "0.2.0-fields.
|
|
3
|
+
"version": "0.2.0-fields.9",
|
|
4
4
|
"description": "One generic, accessible, fully configurable component library: every interface piece in every variant, color, corner, line, size and state, styled from a single source of truth that each brand configures.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|