@klodd/ds 3.11.0 → 3.11.1

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.
@@ -71,13 +71,34 @@
71
71
  outline-offset: 2px;
72
72
  }
73
73
 
74
+ /* .swipe-card--back markerar bakomliggande kort som icke-interaktiva.
75
+ Visuell stapling hanteras av :nth-child-reglerna nedan så djup-
76
+ ramp byggs upp progressivt istället för flat scale(0.96) på alla. */
74
77
  .swipe-card--back {
75
- transform: scale(0.96);
76
- opacity: 0.85;
77
- z-index: 0;
78
78
  pointer-events: none;
79
79
  }
80
80
 
81
+ /* Kort 2 (närmast toppen) */
82
+ .swipe-stack .swipe-card:nth-child(2) {
83
+ transform: scale(0.96) translateY(8px);
84
+ opacity: 0.7;
85
+ z-index: 1;
86
+ }
87
+
88
+ /* Kort 3 */
89
+ .swipe-stack .swipe-card:nth-child(3) {
90
+ transform: scale(0.92) translateY(16px);
91
+ opacity: 0.5;
92
+ z-index: 0;
93
+ }
94
+
95
+ /* Kort 4+ (dolda men kvar i DOM för att stacken ska kunna avslöja djup) */
96
+ .swipe-stack .swipe-card:nth-child(n+4) {
97
+ transform: scale(0.88) translateY(20px);
98
+ opacity: 0;
99
+ z-index: 0;
100
+ }
101
+
81
102
  .swipe-card__header {
82
103
  display: flex;
83
104
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klodd/ds",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "Klodd shared design system - tokens, components, JS",
5
5
  "main": "css/index.css",
6
6
  "bin": {