@yenio-pld/blocks 1.2.0-rc.21 → 1.2.0-rc.23

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": "@yenio-pld/blocks",
3
- "version": "1.2.0-rc.21",
3
+ "version": "1.2.0-rc.23",
4
4
  "description": "Shared UI components for Yenio applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
package/src/theme.css CHANGED
@@ -65,6 +65,10 @@
65
65
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
66
66
  --tracking-normal: 0em;
67
67
  --spacing: 0.25rem;
68
+ /* Theme-sensitive overlay scrollbars (Apple-like thin thumb). */
69
+ --scrollbar-size: 0.625rem;
70
+ --scrollbar-thumb: oklch(0.28 0.02 250 / 0.28);
71
+ --scrollbar-thumb-hover: oklch(0.28 0.02 250 / 0.45);
68
72
  color-scheme: light;
69
73
  }
70
74
 
@@ -126,6 +130,8 @@
126
130
  --shadow-xl:
127
131
  0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
128
132
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
133
+ --scrollbar-thumb: oklch(0.9 0.01 230 / 0.28);
134
+ --scrollbar-thumb-hover: oklch(0.9 0.01 230 / 0.45);
129
135
  color-scheme: dark;
130
136
  }
131
137
 
@@ -189,3 +195,52 @@
189
195
  --tracking-wider: calc(var(--tracking-normal) + 0.05em);
190
196
  --tracking-widest: calc(var(--tracking-normal) + 0.1em);
191
197
  }
198
+
199
+ /* Global elegant scrollbars — thin overlay thumb, transparent track, theme tokens. */
200
+ * {
201
+ scrollbar-width: thin;
202
+ scrollbar-color: var(--scrollbar-thumb) transparent;
203
+ }
204
+
205
+ *::-webkit-scrollbar {
206
+ width: var(--scrollbar-size);
207
+ height: var(--scrollbar-size);
208
+ }
209
+
210
+ *::-webkit-scrollbar-track {
211
+ background: transparent;
212
+ }
213
+
214
+ /* Hide increment/decrement arrow buttons (Chromium/WebKit on desktop). */
215
+ *::-webkit-scrollbar-button {
216
+ display: none;
217
+ width: 0;
218
+ height: 0;
219
+ }
220
+
221
+ *::-webkit-scrollbar-thumb {
222
+ background-color: var(--scrollbar-thumb);
223
+ border-radius: 9999px;
224
+ border: 3px solid transparent;
225
+ background-clip: content-box;
226
+ }
227
+
228
+ *::-webkit-scrollbar-thumb:hover {
229
+ background-color: var(--scrollbar-thumb-hover);
230
+ }
231
+
232
+ *::-webkit-scrollbar-corner {
233
+ background: transparent;
234
+ }
235
+
236
+ /* Opt-out for intentional overlay / chip rails (see SidebarContent). */
237
+ @utility no-scrollbar {
238
+ -ms-overflow-style: none;
239
+ scrollbar-width: none;
240
+
241
+ &::-webkit-scrollbar {
242
+ display: none;
243
+ width: 0;
244
+ height: 0;
245
+ }
246
+ }