@plexui/styles 0.1.28 → 0.1.30

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.
@@ -106,7 +106,11 @@
106
106
  transition:
107
107
  opacity var(--dialog-exit-duration) var(--dialog-exit-easing),
108
108
  transform var(--dialog-exit-duration) var(--dialog-exit-easing);
109
- }/* =============================================
109
+ }/* Keep the native scroll indicator consistent even without the global stylesheet. */.Panel,
110
+ .Body {
111
+ scrollbar-width: thin;
112
+ scrollbar-color: var(--scrollbar-color) transparent;
113
+ }/* =============================================
110
114
  Placement: `placement` everywhere, `mobilePlacement` at 640px and below
111
115
  ============================================= */.Content:where([data-placement="top"]) {
112
116
  --dialog-content-align: flex-start;
@@ -152,6 +156,11 @@
152
156
  --dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
153
157
  --dialog-panel-hidden-transform: translateY(8px);
154
158
  }@media (width <= 640px) {
159
+ .Content,
160
+ .Content[data-pill] {
161
+ --dialog-panel-corner: var(--dialog-mobile-radius);
162
+ }
163
+
155
164
  .Content:where([data-mobile-placement="center"]) {
156
165
  --dialog-content-align: center;
157
166
  --dialog-content-justify: center;
@@ -255,13 +264,59 @@
255
264
  line-height: 1.5;
256
265
  color: var(--color-text-secondary);
257
266
  }@media (width <= 640px) {
267
+ .CloseButton {
268
+ top: 0.5rem;
269
+ right: 0.5rem;
270
+ width: var(--dialog-mobile-action-size);
271
+ height: var(--dialog-mobile-action-size);
272
+ border-radius: var(--radius-full);
273
+ background: transparent;
274
+ color: var(--color-text-secondary);
275
+ }
276
+
277
+ /* Keep the visible control compact inside its full touch target. */
278
+ .CloseButton::before {
279
+ position: absolute;
280
+ inset: calc((var(--dialog-mobile-action-size) - var(--dialog-mobile-close-size)) / 2);
281
+ border-radius: inherit;
282
+ background: var(--dialog-mobile-close-background);
283
+ content: "";
284
+ pointer-events: none;
285
+ transition: background-color 0.2s var(--cubic-enter);
286
+ }
287
+
288
+ .CloseButton:hover {
289
+ background: transparent;
290
+ }
291
+
292
+ .CloseButton:hover::before {
293
+ background: var(--color-background-secondary-soft-alpha-hover);
294
+ }
295
+
296
+ .CloseButton:focus-visible {
297
+ outline-offset: -4px;
298
+ }
299
+
300
+ .CloseIcon {
301
+ position: relative;
302
+ width: var(--dialog-mobile-close-icon-size);
303
+ height: var(--dialog-mobile-close-icon-size);
304
+ }
305
+
306
+ .Panel:has(> .CloseButton) > .Header > :first-child {
307
+ padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
308
+ }
309
+
258
310
  .Footer {
259
311
  flex-direction: column;
260
312
  }
261
313
 
262
314
  .Footer > * {
263
315
  width: 100%;
264
- --button-size: var(--control-size-lg);
316
+ --button-size: var(--dialog-mobile-action-size);
317
+ --button-radius: var(--dialog-mobile-action-radius);
318
+ --button-font-size: var(--dialog-mobile-action-font-size);
319
+ --button-gutter: var(--control-gutter-xl);
265
320
  }
266
321
  }
267
322
  }
@@ -362,6 +362,13 @@
362
362
  --dialog-max-width: 450px;
363
363
  --dialog-container-inner-padding: calc(var(--spacing) * 5);
364
364
  --dialog-backdrop-fade-background: color-mix(in oklab, var(--color-surface-elevated) 60%, transparent);
365
+ --dialog-mobile-close-size: var(--control-size-md);
366
+ --dialog-mobile-close-icon-size: var(--control-icon-size-2xl);
367
+ --dialog-mobile-close-background: var(--color-background-secondary-soft-alpha);
368
+ --dialog-mobile-radius: var(--radius-4xl);
369
+ --dialog-mobile-action-size: var(--control-size-2xl);
370
+ --dialog-mobile-action-radius: var(--radius-full);
371
+ --dialog-mobile-action-font-size: var(--control-font-size-lg);
365
372
  --dialog-close-background: transparent;
366
373
  --dialog-close-background-hover: color-mix(in srgb, var(--color-text-tertiary) 12%, transparent);
367
374
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",