osi-cards-lib 1.5.30 → 1.5.32
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 +58 -20
- package/package.json +13 -25
- package/postcss.config.js +81 -0
- package/section-registry.json +3864 -0
- package/section-registry.schema.json +264 -0
- package/fesm2022/osi-cards-lib.mjs +0 -31878
- package/fesm2022/osi-cards-lib.mjs.map +0 -1
- package/index.d.ts +0 -11522
- package/scripts/setup-angular-styles.js +0 -169
- package/styles/_components.scss +0 -38
- package/styles/_index.scss +0 -25
- package/styles/_osi-cards-mixins.scss +0 -459
- package/styles/_osi-cards-tokens.scss +0 -333
- package/styles/_styles-scoped.scss +0 -81
- package/styles/_styles.scss +0 -26
- package/styles/bundles/_ai-card.scss +0 -245
- package/styles/bundles/_all.scss +0 -68
- package/styles/bundles/_base.scss +0 -60
- package/styles/bundles/_card-skeleton.scss +0 -290
- package/styles/bundles/_index.scss +0 -25
- package/styles/bundles/_sections.scss +0 -48
- package/styles/bundles/_tokens-only.scss +0 -139
- package/styles/components/_ai-card-renderer.scss +0 -104
- package/styles/components/_badges.scss +0 -317
- package/styles/components/_card-actions.scss +0 -169
- package/styles/components/_card-footer.scss +0 -47
- package/styles/components/_component-styles.scss +0 -205
- package/styles/components/_empty-state.scss +0 -630
- package/styles/components/_hero-card.scss +0 -422
- package/styles/components/_image-fallback.scss +0 -28
- package/styles/components/_streaming-effects.scss +0 -518
- package/styles/components/cards/_ai-card.scss +0 -718
- package/styles/components/sections/_all-sections.generated.scss +0 -41
- package/styles/components/sections/_all-sections.scss +0 -1086
- package/styles/components/sections/_balanced-compact-system.scss +0 -186
- package/styles/components/sections/_compact-mixins.scss +0 -180
- package/styles/components/sections/_component-mixins.scss +0 -454
- package/styles/components/sections/_design-system.scss +0 -477
- package/styles/components/sections/_design-tokens.scss +0 -308
- package/styles/components/sections/_enhanced-design-variables.scss +0 -147
- package/styles/components/sections/_master-compact-system.scss +0 -302
- package/styles/components/sections/_master-dense-system.scss +0 -239
- package/styles/components/sections/_minimalistic-design.scss +0 -268
- package/styles/components/sections/_modern-effects.scss +0 -392
- package/styles/components/sections/_modern-sections.scss +0 -351
- package/styles/components/sections/_perfect-system.scss +0 -204
- package/styles/components/sections/_section-animations.scss +0 -331
- package/styles/components/sections/_section-shell.scss +0 -337
- package/styles/components/sections/_section-types.generated.scss +0 -30
- package/styles/components/sections/_sections-all.scss +0 -26
- package/styles/components/sections/_sections-base.scss +0 -334
- package/styles/components/sections/_typography-system.scss +0 -327
- package/styles/components/sections/_ultra-compact-tokens.scss +0 -375
- package/styles/components/sections/_unified-section-style.scss +0 -157
- package/styles/components/sections/_utility-classes.scss +0 -567
- package/styles/components/sections/_visual-effects-library.scss +0 -374
- package/styles/core/_animations.scss +0 -1498
- package/styles/core/_bootstrap-reset.scss +0 -445
- package/styles/core/_color-helpers.scss +0 -46
- package/styles/core/_global-unified.scss +0 -118
- package/styles/core/_global.scss +0 -73
- package/styles/core/_mixins.scss +0 -491
- package/styles/core/_surface-layers.scss +0 -76
- package/styles/core/_utilities.scss +0 -326
- package/styles/core/_variables-unified.scss +0 -57
- package/styles/core/_variables.scss +0 -36
- package/styles/core/variables/_colors-source.scss +0 -34
- package/styles/core/variables/_colors-unified.scss +0 -26
- package/styles/core/variables/_colors.scss +0 -21
- package/styles/critical.scss +0 -353
- package/styles/design-system/_compact-theme.scss +0 -159
- package/styles/design-system/_section-base.scss +0 -426
- package/styles/design-system/_tokens.scss +0 -237
- package/styles/design-system/_unified-sections.scss +0 -215
- package/styles/layout/_feature-grid.scss +0 -322
- package/styles/layout/_masonry.scss +0 -734
- package/styles/layout/_tilt.scss +0 -244
- package/styles/micro-interactions.scss +0 -583
- package/styles/mixins/_section-mixins.scss +0 -280
- package/styles/non-critical.scss +0 -643
- package/styles/reset/_framework-reset.scss +0 -457
- package/styles/reset/_index.scss +0 -14
- package/styles/reset/_shadow-reset.scss +0 -383
- package/styles/responsive.scss +0 -326
- package/styles/themes.scss +0 -573
- package/styles/tokens/_index.scss +0 -92
- package/styles/tokens/_master.scss +0 -1404
- package/styles/tokens/_section-tokens.generated.scss +0 -140
package/styles/layout/_tilt.scss
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
/* ===================================================================
|
|
2
|
-
TILT & GLOW ANIMATIONS
|
|
3
|
-
Performance-optimized 3D tilt effects with dynamic lighting
|
|
4
|
-
=================================================================== */
|
|
5
|
-
|
|
6
|
-
/* Base tilt container with 3D perspective - Optimized for smooth mouse following */
|
|
7
|
-
/* Cross-browser compatible with vendor prefixes for Safari */
|
|
8
|
-
.tilt-container {
|
|
9
|
-
/* 3D transform with hardware acceleration - using CSS variables for smooth updates */
|
|
10
|
-
/* Vendor prefixes for Safari compatibility */
|
|
11
|
-
-webkit-transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
|
|
12
|
-
scale(var(--tilt-scale, 1)) translateZ(0);
|
|
13
|
-
transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
|
|
14
|
-
scale(var(--tilt-scale, 1)) translateZ(0);
|
|
15
|
-
/* Force GPU acceleration */
|
|
16
|
-
-webkit-backface-visibility: hidden;
|
|
17
|
-
backface-visibility: hidden; /* Prevent flickering */
|
|
18
|
-
|
|
19
|
-
/* No CSS transitions on transform - JavaScript handles smooth updates */
|
|
20
|
-
/* Only transition box-shadow for glow effect */
|
|
21
|
-
transition: box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
|
|
22
|
-
-webkit-transition: box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
|
|
23
|
-
|
|
24
|
-
/* Enable 3D rendering */
|
|
25
|
-
-webkit-transform-style: preserve-3d;
|
|
26
|
-
transform-style: preserve-3d;
|
|
27
|
-
|
|
28
|
-
position: relative;
|
|
29
|
-
border-radius: var(--card-border-radius);
|
|
30
|
-
|
|
31
|
-
/* Performance optimizations - no paint to prevent glow clipping */
|
|
32
|
-
contain: layout style; /* Don't use paint - it clips shadows/glow */
|
|
33
|
-
isolation: isolate; /* Create new stacking context */
|
|
34
|
-
will-change: transform; /* Hint browser about upcoming transforms */
|
|
35
|
-
|
|
36
|
-
/* Optimize compositing */
|
|
37
|
-
-webkit-transform-origin: center center;
|
|
38
|
-
transform-origin: center center;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Smooth exit transition - longer duration when mouse leaves */
|
|
42
|
-
.tilt-container:not(:hover) {
|
|
43
|
-
/* Smooth exit for glow only - transform handled by JavaScript */
|
|
44
|
-
transition: box-shadow 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
45
|
-
will-change: auto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.tilt-container:hover {
|
|
49
|
-
/* Hint browser about upcoming transform changes */
|
|
50
|
-
will-change: transform;
|
|
51
|
-
/* Orange glow only - no dark shadows, intensified by 50% */
|
|
52
|
-
box-shadow: 0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.375));
|
|
53
|
-
/* Smooth transition for glow only - transform handled by JavaScript */
|
|
54
|
-
transition: box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Glow container for filter-based effects - Cross-browser compatible */
|
|
58
|
-
.glow-container {
|
|
59
|
-
position: relative;
|
|
60
|
-
/* Always show base glow - smooth transitions, intensified by 50% */
|
|
61
|
-
-webkit-filter: drop-shadow(0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.225)));
|
|
62
|
-
filter: drop-shadow(0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.225)));
|
|
63
|
-
-webkit-transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
64
|
-
transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
65
|
-
will-change: filter;
|
|
66
|
-
|
|
67
|
-
/* Performance optimizations */
|
|
68
|
-
contain: layout style; /* Don't use paint - it clips shadows */
|
|
69
|
-
isolation: isolate; /* Create new stacking context */
|
|
70
|
-
|
|
71
|
-
/* Optimize compositing - cross-browser */
|
|
72
|
-
-webkit-transform: translateZ(0); /* Force GPU layer */
|
|
73
|
-
transform: translateZ(0); /* Force GPU layer */
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.glow-container:hover {
|
|
77
|
-
will-change: filter;
|
|
78
|
-
/* Faster enter transition - cross-browser */
|
|
79
|
-
-webkit-transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
80
|
-
transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.glow-container:not(:hover) {
|
|
84
|
-
will-change: auto;
|
|
85
|
-
/* Smooth exit transition - longer duration for smooth completion - cross-browser */
|
|
86
|
-
-webkit-transition: filter 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
87
|
-
transition: filter 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Card reflection overlay */
|
|
91
|
-
.card-reflection {
|
|
92
|
-
position: absolute;
|
|
93
|
-
inset: 0;
|
|
94
|
-
background: transparent;
|
|
95
|
-
opacity: var(--reflection-opacity, 0.08);
|
|
96
|
-
transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
97
|
-
pointer-events: none;
|
|
98
|
-
border-radius: inherit;
|
|
99
|
-
|
|
100
|
-
/* Optimize as overlay */
|
|
101
|
-
will-change: opacity;
|
|
102
|
-
backface-visibility: hidden;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* Smooth exit transition for reflection */
|
|
106
|
-
.tilt-container:not(:hover) .card-reflection {
|
|
107
|
-
transition: opacity 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* Wrapper for nested 3D transforms */
|
|
111
|
-
.tilt-wrapper {
|
|
112
|
-
transform-style: preserve-3d;
|
|
113
|
-
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
114
|
-
backface-visibility: hidden;
|
|
115
|
-
|
|
116
|
-
/* Optimize transforms */
|
|
117
|
-
contain: layout style;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* Content inside tilt effect */
|
|
121
|
-
.tilt-content {
|
|
122
|
-
transform-style: preserve-3d;
|
|
123
|
-
backface-visibility: hidden;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* Glare/highlight effect that follows mouse */
|
|
127
|
-
.tilt-glare {
|
|
128
|
-
position: absolute;
|
|
129
|
-
inset: 0;
|
|
130
|
-
pointer-events: none;
|
|
131
|
-
border-radius: inherit;
|
|
132
|
-
background: transparent;
|
|
133
|
-
opacity: var(--glare-opacity, 0);
|
|
134
|
-
transition: opacity var(--glow-duration) var(--ease-out-smooth);
|
|
135
|
-
|
|
136
|
-
/* Optimize as overlay */
|
|
137
|
-
will-change: opacity;
|
|
138
|
-
backface-visibility: hidden;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* ===================================================================
|
|
142
|
-
MOBILE OPTIMIZATIONS
|
|
143
|
-
Reduce tilt intensity on smaller screens for better performance
|
|
144
|
-
=================================================================== */
|
|
145
|
-
|
|
146
|
-
@media (max-width: 768px) {
|
|
147
|
-
.tilt-container {
|
|
148
|
-
/* Reduce perspective for subtler effect on mobile, but keep doubled tilt */
|
|
149
|
-
-webkit-transform: perspective(800px) rotateX(calc(var(--tilt-x, 0deg) * 0.7))
|
|
150
|
-
rotateY(calc(var(--tilt-y, 0deg) * 0.7)) scale(var(--tilt-scale, 1)) translateZ(0);
|
|
151
|
-
transform: perspective(800px) rotateX(calc(var(--tilt-x, 0deg) * 0.7))
|
|
152
|
-
rotateY(calc(var(--tilt-y, 0deg) * 0.7)) scale(var(--tilt-scale, 1)) translateZ(0);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.tilt-container:hover {
|
|
156
|
-
/* Orange glow only - no dark shadows, intensified by 50% */
|
|
157
|
-
box-shadow: 0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.375));
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* ===================================================================
|
|
162
|
-
FULLSCREEN MODE - DISABLE TILT
|
|
163
|
-
Tilt effects disabled in fullscreen for better usability
|
|
164
|
-
=================================================================== */
|
|
165
|
-
|
|
166
|
-
.ai-card-surface--fullscreen {
|
|
167
|
-
.tilt-container {
|
|
168
|
-
/* Reset all tilt transforms in fullscreen - cross-browser compatible */
|
|
169
|
-
-webkit-transform: perspective(1000px) translateZ(0) !important;
|
|
170
|
-
transform: perspective(1000px) translateZ(0) !important;
|
|
171
|
-
box-shadow: none !important;
|
|
172
|
-
will-change: auto !important;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.glow-container {
|
|
176
|
-
-webkit-filter: none !important;
|
|
177
|
-
filter: none !important;
|
|
178
|
-
will-change: auto !important;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.card-reflection,
|
|
182
|
-
.tilt-glare {
|
|
183
|
-
opacity: 0 !important;
|
|
184
|
-
display: none; /* Completely remove from rendering */
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/* ===================================================================
|
|
189
|
-
TILT DISABLED STATE
|
|
190
|
-
When tilt is explicitly disabled via class
|
|
191
|
-
=================================================================== */
|
|
192
|
-
|
|
193
|
-
.tilt-disabled {
|
|
194
|
-
-webkit-transform: perspective(1000px) translateZ(0) !important;
|
|
195
|
-
transform: perspective(1000px) translateZ(0) !important;
|
|
196
|
-
box-shadow: none !important;
|
|
197
|
-
will-change: auto !important;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.tilt-disabled .glow-container {
|
|
201
|
-
-webkit-filter: none !important;
|
|
202
|
-
filter: none !important;
|
|
203
|
-
will-change: auto !important;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* ===================================================================
|
|
207
|
-
REDUCED MOTION SUPPORT
|
|
208
|
-
Disable tilt effects for accessibility
|
|
209
|
-
=================================================================== */
|
|
210
|
-
|
|
211
|
-
@media (prefers-reduced-motion: reduce) {
|
|
212
|
-
.tilt-container,
|
|
213
|
-
.tilt-wrapper {
|
|
214
|
-
-webkit-transform: none !important;
|
|
215
|
-
transform: none !important;
|
|
216
|
-
-webkit-transition: none !important;
|
|
217
|
-
transition: none !important;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.tilt-container:hover {
|
|
221
|
-
box-shadow: none !important;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.glow-container {
|
|
225
|
-
-webkit-filter: none !important;
|
|
226
|
-
filter: none !important;
|
|
227
|
-
-webkit-transition: none !important;
|
|
228
|
-
transition: none !important;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.card-reflection,
|
|
232
|
-
.tilt-glare {
|
|
233
|
-
opacity: 0 !important;
|
|
234
|
-
transition: none !important;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/* Remove will-change hints */
|
|
238
|
-
.tilt-container,
|
|
239
|
-
.glow-container,
|
|
240
|
-
.card-reflection,
|
|
241
|
-
.tilt-glare {
|
|
242
|
-
will-change: auto !important;
|
|
243
|
-
}
|
|
244
|
-
}
|