@surrealdb/ui 2.2.0 → 3.0.0-beta.10
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/README.md +1 -1
- package/dist/fonts.d.ts +2 -2
- package/dist/icons.d.ts +6 -2
- package/dist/icons.js +117 -115
- package/dist/icons.js.map +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.d.ts +136 -36
- package/dist/ui.js +7893 -7539
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
- package/res/_mixins.scss +5 -3
package/package.json
CHANGED
package/res/_mixins.scss
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Derives a colour from the ground the element is standing on, by moving its
|
|
12
|
-
*
|
|
12
|
+
* OKLab lightness and leaving the a and b axes untouched, so the tint of the
|
|
13
|
+
* surface carries through. OKLab rather than OKLCH: Chromium resolves the hue of
|
|
14
|
+
* a near-grey as `none`, which reads as 0deg and turns a lifted grey red.
|
|
13
15
|
*
|
|
14
16
|
* Use it for hover, press and any edge that has to stay in a fixed relationship
|
|
15
17
|
* with the surface beneath it. A positive delta always moves away from the
|
|
@@ -22,8 +24,8 @@
|
|
|
22
24
|
*/
|
|
23
25
|
@function surface-shift($delta) {
|
|
24
26
|
@return light-dark(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
oklab(from var(--surreal-ground) calc(l - #{$delta}) a b),
|
|
28
|
+
oklab(from var(--surreal-ground) calc(l + #{$delta}) a b)
|
|
27
29
|
);
|
|
28
30
|
}
|
|
29
31
|
|