winduum 0.2.3-next.6 → 0.2.3-next.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "winduum",
3
- "version": "0.2.3-next.6",
3
+ "version": "0.2.3-next.7",
4
4
  "type": "module",
5
5
  "main": "utils/tailwind.cjs",
6
6
  "module": "utils/tailwind.js",
@@ -68,3 +68,13 @@
68
68
  opacity: 0;
69
69
  }
70
70
  }
71
+
72
+ @keyframes skeleton-wave {
73
+ 0% {
74
+ background-position: 200% 0;
75
+ }
76
+
77
+ 100% {
78
+ background-position: -200% 0;
79
+ }
80
+ }
@@ -15,4 +15,19 @@
15
15
  --container-width: var(--container-width-sm);
16
16
  }
17
17
  }
18
+
19
+ .skeleton {
20
+ background:
21
+ linear-gradient(
22
+ 270deg,
23
+ color-mix(in sRGB, var(--color-body) 50%, var(--color-main)),
24
+ color-mix(in sRGB, var(--color-body) 80%, var(--color-main)),
25
+ color-mix(in sRGB, var(--color-body) 80%, var(--color-main)),
26
+ color-mix(in sRGB, var(--color-body) 50%, var(--color-main))
27
+ );
28
+ background-size: 400% 100%;
29
+ animation: skeleton-wave 1.5s linear infinite;
30
+ opacity: 0.3;
31
+ transition: opacity 0.3s ease-out;
32
+ }
18
33
  }
@@ -54,7 +54,7 @@
54
54
  outline: var(--ui-btn-outline-width) solid transparent;
55
55
  outline-offset: 0;
56
56
 
57
- &:where([class*="accent-base"]) {
57
+ &:where([class*="accent-main"]) {
58
58
  --ui-btn-hover-bg-mix: var(--color-main-fg);
59
59
  }
60
60
 
package/src/ui/image.css CHANGED
@@ -1,10 +1,27 @@
1
1
  .ui-image {
2
- --ui-image-bg: var(--color-body-secondary);
3
-
4
2
  position: relative;
5
3
  display: block;
6
- background-color: var(--ui-image-bg);
7
4
  border-radius: inherit;
5
+ z-index: 0;
6
+
7
+ &:not([class*="bg-"])::before {
8
+ content: "";
9
+ position: absolute;
10
+ inset: 0;
11
+ background:
12
+ linear-gradient(
13
+ 270deg,
14
+ color-mix(in sRGB, var(--color-body) 50%, var(--color-main)),
15
+ color-mix(in sRGB, var(--color-body) 80%, var(--color-main)),
16
+ color-mix(in sRGB, var(--color-body) 80%, var(--color-main)),
17
+ color-mix(in sRGB, var(--color-body) 50%, var(--color-main))
18
+ );
19
+ background-size: 400% 100%;
20
+ animation: skeleton-wave 1.5s linear infinite;
21
+ border-radius: inherit;
22
+ z-index: -1;
23
+ opacity: 0.3;
24
+ }
8
25
 
9
26
  & > *:not(source) {
10
27
  display: block;
package/src/ui/switch.css CHANGED
@@ -1,6 +1,8 @@
1
1
  .ui-switch {
2
2
  --ui-switch-width: 3rem;
3
3
  --ui-switch-height: 1.5rem;
4
+ --ui-switch-font-size: 0.875rem;
5
+ --ui-switch-gap: 0.625rem;
4
6
  --ui-switch-padding: 0.375rem;
5
7
  --ui-switch-bg: var(--color-dark);
6
8
  --ui-switch-radius: var(--rounded-full);
@@ -14,8 +16,19 @@
14
16
 
15
17
  display: flex;
16
18
  align-items: center;
17
- flex-wrap: wrap;
18
- width: max-content;
19
+ gap: 0 var(--ui-switch-gap);
20
+ width: fit-content;
21
+ font-size: var(--ui-switch-font-size);
22
+ text-wrap: balance;
23
+
24
+ & :where(label[for], input) {
25
+ cursor: pointer;
26
+ }
27
+
28
+ & :where(a) {
29
+ color: var(--color-accent);
30
+ text-decoration: underline;
31
+ }
19
32
 
20
33
  &:where(.sm) {
21
34
  --ui-switch-width: 2.5rem;
@@ -38,7 +51,6 @@
38
51
  var(--transition-background),
39
52
  outline-color var(--transition-duration),
40
53
  outline-offset var(--transition-duration);
41
- cursor: pointer;
42
54
  appearance: none;
43
55
  outline: var(--ui-switch-outline-width) solid transparent;
44
56
  outline-offset: 0;
@@ -59,6 +71,13 @@
59
71
  transform: translateY(-50%);
60
72
  }
61
73
 
74
+ &:where(:required) {
75
+ & + *::after {
76
+ color: var(--color-error);
77
+ content: " *";
78
+ }
79
+ }
80
+
62
81
  &:disabled {
63
82
  opacity: 0.8;
64
83
  pointer-events: none;
@@ -79,4 +98,8 @@
79
98
  }
80
99
  }
81
100
  }
101
+
102
+ &.invalid, .validated & :where(input):invalid {
103
+ --ui-switch-bg: var(--color-error);
104
+ }
82
105
  }
package/src/ui/text.css CHANGED
@@ -129,11 +129,6 @@
129
129
 
130
130
  & :where(iframe) {
131
131
  max-width: 100%;
132
-
133
- &:where([src*="youtube.com"]) {
134
- aspect-ratio: 16/9;
135
- height: auto;
136
- }
137
132
  }
138
133
 
139
134
  & :where(blockquote) {