@duskmoon-dev/core 1.19.8 → 1.19.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 CHANGED
@@ -444,4 +444,4 @@ See [specs/004-oklch-color-system/quickstart.md](./specs/004-oklch-color-system/
444
444
 
445
445
  MIT
446
446
 
447
- <!-- release 35521434854 -->
447
+ <!-- release 35713421848 -->
@@ -17088,20 +17088,20 @@
17088
17088
  z-index: 1;
17089
17089
  }
17090
17090
 
17091
- :is(.join, .join-horizontal) > .join-item:not(:first-child) {
17091
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:not(:first-child) {
17092
17092
  margin-inline-start: -1px;
17093
17093
  }
17094
17094
 
17095
- :is(.join, .join-horizontal) > .join-item:not(:first-child):not(:last-child) {
17095
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:not(:first-child):not(:last-child) {
17096
17096
  border-radius: 0;
17097
17097
  }
17098
17098
 
17099
- :is(.join, .join-horizontal) > .join-item:first-child:not(:last-child) {
17099
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:first-child:not(:last-child) {
17100
17100
  border-start-end-radius: 0;
17101
17101
  border-end-end-radius: 0;
17102
17102
  }
17103
17103
 
17104
- :is(.join, .join-horizontal) > .join-item:last-child:not(:first-child) {
17104
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:last-child:not(:first-child) {
17105
17105
  border-start-start-radius: 0;
17106
17106
  border-end-start-radius: 0;
17107
17107
  }
@@ -24,20 +24,20 @@
24
24
  z-index: 1;
25
25
  }
26
26
 
27
- :is(.join, .join-horizontal) > .join-item:not(:first-child) {
27
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:not(:first-child) {
28
28
  margin-inline-start: -1px;
29
29
  }
30
30
 
31
- :is(.join, .join-horizontal) > .join-item:not(:first-child):not(:last-child) {
31
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:not(:first-child):not(:last-child) {
32
32
  border-radius: 0;
33
33
  }
34
34
 
35
- :is(.join, .join-horizontal) > .join-item:first-child:not(:last-child) {
35
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:first-child:not(:last-child) {
36
36
  border-start-end-radius: 0;
37
37
  border-end-end-radius: 0;
38
38
  }
39
39
 
40
- :is(.join, .join-horizontal) > .join-item:last-child:not(:first-child) {
40
+ :is(.join, .join-horizontal):not(.join-vertical) > .join-item:last-child:not(:first-child) {
41
41
  border-start-start-radius: 0;
42
42
  border-end-start-radius: 0;
43
43
  }
@@ -1,22 +1,103 @@
1
+ @property --dm-aura-angle {
2
+ syntax: '<angle>';
3
+ inherits: false;
4
+ initial-value: 0deg;
5
+ }
1
6
  @layer components {
2
7
  .aura {
8
+ --aura-padding: 0.125rem;
9
+ --aura-radius: var(--radius-box);
3
10
  position: relative;
4
11
  isolation: isolate;
5
- border-radius: var(--radius-md);
6
- outline: 1px solid var(--color-primary);
12
+ display: inline-block;
13
+ padding: var(--aura-padding);
14
+ border-radius: calc(var(--aura-radius) + var(--aura-padding));
15
+ color: var(--color-primary);
7
16
  }
8
- .aura::before {
17
+
18
+ .aura:has(> :is(.btn, .input, .select, .textarea)) { --aura-radius: var(--radius-field); }
19
+ .aura:has(> :is(.badge, .checkbox, .toggle, .chip)) { --aura-radius: var(--radius-selector); }
20
+
21
+ .aura::before,
22
+ .aura::after {
9
23
  content: '';
10
24
  position: absolute;
11
25
  inset: 0;
12
26
  z-index: -1;
13
27
  border-radius: inherit;
14
- box-shadow: 0 0 1rem color-mix(in oklch, var(--color-primary) 35%, transparent);
28
+ background-image: conic-gradient(from var(--dm-aura-angle), transparent 0deg 220deg, currentColor 300deg, transparent 360deg);
15
29
  pointer-events: none;
16
30
  }
31
+
32
+ .aura::before {
33
+ opacity: 0.75;
34
+ filter: blur(0.2rem);
35
+ }
36
+
37
+ .aura::after {
38
+ opacity: 0.35;
39
+ filter: blur(0.9rem);
40
+ }
41
+
42
+ .aura > * {
43
+ position: relative;
44
+ z-index: 1;
45
+ }
46
+
47
+ .aura-dual::before,
48
+ .aura-dual::after {
49
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), transparent 0deg 70deg, currentColor 90deg 110deg, transparent 130deg 250deg, currentColor 270deg 290deg, transparent 310deg 360deg);
50
+ }
51
+
52
+ .aura-rainbow::before,
53
+ .aura-rainbow::after {
54
+ background-image: conic-gradient(from var(--dm-aura-angle) in oklch longer hue, transparent, oklch(78% 0.18 20), oklch(82% 0.16 140), oklch(76% 0.17 260), oklch(80% 0.18 350), transparent);
55
+ }
56
+
57
+ .aura-holo::before,
58
+ .aura-holo::after {
59
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(82% 0.17 327), oklch(75% 0.12 274), oklch(82% 0.11 191), oklch(91% 0.11 105), oklch(88% 0.08 68), oklch(82% 0.17 327) 12.5%);
60
+ }
61
+
62
+ .aura-gold::before,
63
+ .aura-gold::after {
64
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(66% 0.19 72), oklch(96% 0.08 103), oklch(72% 0.17 82), oklch(61% 0.12 76) 25%);
65
+ }
66
+
67
+ .aura-silver::before,
68
+ .aura-silver::after {
69
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(35% 0 0), oklch(92% 0 0), oklch(62% 0 0), oklch(82% 0 0), oklch(35% 0 0) 25%);
70
+ }
71
+
72
+ .aura-glow::before,
73
+ .aura-glow::after {
74
+ background-image: radial-gradient(closest-side, currentColor, transparent);
75
+ }
76
+
77
+ .aura-xs { --aura-padding: 0; }
78
+ .aura-sm { --aura-padding: 0.0625rem; }
79
+ .aura-md { --aura-padding: 0.125rem; }
80
+ .aura-lg { --aura-padding: 0.1875rem; }
81
+ .aura-xl { --aura-padding: 0.25rem; }
82
+
17
83
  @media (prefers-reduced-motion: no-preference) {
18
- .aura-animated::before { animation: dm-aura 4s ease-in-out infinite; }
84
+ .aura:not(.aura-glow)::before,
85
+ .aura:not(.aura-glow)::after {
86
+ animation: dm-aura-spin var(--aura-duration, var(--tw-duration, 6s)) linear infinite;
87
+ }
88
+
89
+ .aura-glow::before,
90
+ .aura-glow::after {
91
+ animation: dm-aura-glow var(--aura-duration, var(--tw-duration, 6s)) ease-in-out infinite;
92
+ }
93
+ }
94
+
95
+ @keyframes dm-aura-spin { to { --dm-aura-angle: 360deg; } }
96
+ @keyframes dm-aura-glow { 50% { opacity: 0.8; filter: blur(1.3rem); } }
97
+
98
+ @media print {
99
+ .aura { padding: 0; }
100
+ .aura::before,
101
+ .aura::after { display: none; }
19
102
  }
20
- @keyframes dm-aura { 50% { opacity: 0.4; } }
21
- @media print { .aura::before { display: none; } }
22
103
  }
@@ -1,8 +1,97 @@
1
1
  @layer components {
2
- .hover-3d { border-radius: var(--radius-md); }
3
- @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
4
- .hover-3d { transition: transform 200ms ease; }
5
- .hover-3d:hover:not(:focus-within) { transform: perspective(60rem) rotateX(var(--hover-3d-x, 2deg)) rotateY(var(--hover-3d-y, -2deg)); }
2
+ .hover-3d {
3
+ --hover-3d-axis: 0, 0, 0;
4
+ --hover-3d-angle: 0deg;
5
+ --hover-3d-shadow-x: 0rem;
6
+ --hover-3d-shadow-y: 0rem;
7
+ --hover-3d-shine: 100% 100%;
8
+ --hover-3d-ease: linear(0, 0.931 13.8%, 1.196 21.4%, 1.343 29.8%, 1.378 36%, 1.365 43.2%, 1.059 78%, 1);
9
+ display: inline-grid;
10
+ perspective: 75rem;
11
+ filter: drop-shadow(var(--hover-3d-shadow-x) var(--hover-3d-shadow-y) 0.6rem color-mix(in oklch, var(--color-shadow) 18%, transparent));
12
+ }
13
+
14
+ .hover-3d > :first-child {
15
+ position: relative;
16
+ grid-area: 1 / 1 / 4 / 4;
17
+ overflow: hidden;
18
+ transform: rotate3d(var(--hover-3d-axis), var(--hover-3d-angle));
19
+ transform-style: preserve-3d;
20
+ backface-visibility: hidden;
21
+ scale: 1;
22
+ outline: 0.5px solid transparent;
23
+ outline-offset: -1px;
24
+ }
25
+
26
+ .hover-3d > :first-child::before {
27
+ content: '';
28
+ position: absolute;
29
+ inset: 0;
30
+ z-index: 1;
31
+ inline-size: 33.333%;
32
+ block-size: 33.333%;
33
+ scale: 500%;
34
+ translate: var(--hover-3d-shine);
35
+ opacity: 0;
36
+ filter: blur(0.75rem);
37
+ background: radial-gradient(circle at 50%, rgb(255 255 255 / 0.28) 10%, transparent 50%);
38
+ pointer-events: none;
39
+ }
40
+
41
+ .hover-3d > :nth-child(n + 2) {
42
+ z-index: 2;
43
+ min-inline-size: 0;
44
+ min-block-size: 0;
45
+ scale: 1.2;
46
+ }
47
+
48
+ .hover-3d > :nth-child(2) { grid-area: 1 / 1; }
49
+ .hover-3d > :nth-child(3) { grid-area: 1 / 2; }
50
+ .hover-3d > :nth-child(4) { grid-area: 1 / 3; }
51
+ .hover-3d > :nth-child(5) { grid-area: 2 / 1; }
52
+ .hover-3d > :nth-child(6) { grid-area: 2 / 3; }
53
+ .hover-3d > :nth-child(7) { grid-area: 3 / 1; }
54
+ .hover-3d > :nth-child(8) { grid-area: 3 / 2; }
55
+ .hover-3d > :nth-child(9) { grid-area: 3 / 3; }
56
+
57
+ @media (prefers-reduced-motion: no-preference) {
58
+ .hover-3d { transition: filter 400ms ease-out; }
59
+
60
+ .hover-3d > :first-child {
61
+ transition:
62
+ transform 500ms var(--hover-3d-ease),
63
+ scale 500ms var(--hover-3d-ease),
64
+ outline-color 500ms ease-out;
65
+ }
66
+
67
+ .hover-3d > :first-child::before {
68
+ transition: translate 400ms ease-out, opacity 400ms ease-out;
69
+ }
70
+
71
+ .hover-3d:hover {
72
+ --hover-3d-ease: linear(0, 0.708 15.2%, 0.927 23.6%, 1.067 33%, 1.12 41%, 1.13 50.2%, 1.019 83.2%, 1);
73
+ }
74
+
75
+ .hover-3d:hover > :first-child { scale: 1.05; outline-color: rgb(255 255 255 / 0.07); }
76
+ .hover-3d:hover > :first-child::before { opacity: 1; }
77
+
78
+ .hover-3d:has(> :nth-child(2):hover) { --hover-3d-axis: -1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 0% 0%; }
79
+ .hover-3d:has(> :nth-child(3):hover) { --hover-3d-axis: -1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 100% 0%; }
80
+ .hover-3d:has(> :nth-child(4):hover) { --hover-3d-axis: -1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 200% 0%; }
81
+ .hover-3d:has(> :nth-child(5):hover) { --hover-3d-axis: 0, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shine: 0% 100%; }
82
+ .hover-3d:has(> :nth-child(6):hover) { --hover-3d-axis: 0, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shine: 200% 100%; }
83
+ .hover-3d:has(> :nth-child(7):hover) { --hover-3d-axis: 1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 0% 200%; }
84
+ .hover-3d:has(> :nth-child(8):hover) { --hover-3d-axis: 1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 100% 200%; }
85
+ .hover-3d:has(> :nth-child(9):hover) { --hover-3d-axis: 1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 200% 200%; }
86
+ }
87
+
88
+ @media (prefers-reduced-motion: reduce), print {
89
+ .hover-3d { filter: none; transition: none; }
90
+ .hover-3d > :first-child { transform: none; scale: 1; transition: none; }
91
+ .hover-3d > :first-child::before { display: none; }
92
+ }
93
+
94
+ @media print {
95
+ .hover-3d > :nth-child(n + 2) { display: none; }
6
96
  }
7
- @media print { .hover-3d { transform: none; } }
8
97
  }
@@ -1,14 +1,58 @@
1
1
  @layer components {
2
- .hover-gallery { display: grid; gap: 0.5rem; min-inline-size: 0; color: var(--color-on-surface); }
3
- .hover-gallery-stage { aspect-ratio: var(--hover-gallery-ratio, 4 / 3); overflow: hidden; border-radius: var(--radius-md); }
4
- .hover-gallery-stage img { inline-size: 100%; block-size: 100%; object-fit: cover; }
5
- .hover-gallery-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
6
- .hover-gallery-controls > button { border: 1px solid currentColor; color: inherit; background: var(--color-surface-container); padding: 0.25rem; border-radius: var(--radius-sm); cursor: pointer; }
7
- .hover-gallery-controls img { display: block; inline-size: 3rem; block-size: 3rem; object-fit: cover; }
8
- .hover-gallery-controls > button[aria-pressed="true"] { color: var(--color-primary); outline: 2px solid currentColor; }
9
- .hover-gallery-controls > button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
10
- @media (hover: hover) and (prefers-reduced-motion: no-preference) {
11
- .hover-gallery-controls > button:hover { background: var(--color-primary-container); }
12
- }
13
- @media print { .hover-gallery-controls { display: none; } }
2
+ .hover-gallery {
3
+ --hover-gallery-items: 1;
4
+ display: inline-grid;
5
+ grid-template-columns: repeat(var(--hover-gallery-items), minmax(0, 1fr));
6
+ inline-size: 100%;
7
+ gap: 1px;
8
+ overflow: hidden;
9
+ }
10
+
11
+ .hover-gallery:has(> :nth-child(3)) { --hover-gallery-items: 2; }
12
+ .hover-gallery:has(> :nth-child(4)) { --hover-gallery-items: 3; }
13
+ .hover-gallery:has(> :nth-child(5)) { --hover-gallery-items: 4; }
14
+ .hover-gallery:has(> :nth-child(6)) { --hover-gallery-items: 5; }
15
+ .hover-gallery:has(> :nth-child(7)) { --hover-gallery-items: 6; }
16
+ .hover-gallery:has(> :nth-child(8)) { --hover-gallery-items: 7; }
17
+ .hover-gallery:has(> :nth-child(9)) { --hover-gallery-items: 8; }
18
+ .hover-gallery:has(> :nth-child(10)) { --hover-gallery-items: 9; }
19
+
20
+ .hover-gallery > * {
21
+ grid-row: 1;
22
+ inline-size: 100%;
23
+ block-size: 100%;
24
+ min-inline-size: 0;
25
+ opacity: 0;
26
+ object-fit: cover;
27
+ }
28
+
29
+ .hover-gallery > :first-child {
30
+ grid-column: 1 / -1;
31
+ opacity: 1;
32
+ }
33
+
34
+ .hover-gallery > :nth-child(2) { grid-column: 1; }
35
+ .hover-gallery > :nth-child(3) { grid-column: 2; }
36
+ .hover-gallery > :nth-child(4) { grid-column: 3; }
37
+ .hover-gallery > :nth-child(5) { grid-column: 4; }
38
+ .hover-gallery > :nth-child(6) { grid-column: 5; }
39
+ .hover-gallery > :nth-child(7) { grid-column: 6; }
40
+ .hover-gallery > :nth-child(8) { grid-column: 7; }
41
+ .hover-gallery > :nth-child(9) { grid-column: 8; }
42
+ .hover-gallery > :nth-child(10) { grid-column: 9; }
43
+ .hover-gallery > :nth-child(n + 11) { display: none; }
44
+
45
+ .hover-gallery > :first-child { pointer-events: none; }
46
+
47
+ .hover-gallery > :nth-child(n + 2):is(:hover, :focus-visible) {
48
+ grid-column: 1 / -1;
49
+ opacity: 1;
50
+ }
51
+
52
+ .hover-gallery:has(> :nth-child(n + 2):is(:hover, :focus-visible)) > :first-child { opacity: 0; }
53
+
54
+ @media print {
55
+ .hover-gallery > :first-child { display: block; }
56
+ .hover-gallery > :nth-child(n + 2) { display: none; }
57
+ }
14
58
  }