@plexui/styles 0.1.27 → 0.1.29
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,28 @@
|
|
|
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
|
+
}
|
|
274
|
+
|
|
275
|
+
.Panel:has(> .CloseButton) > .Header > :first-child {
|
|
276
|
+
padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
|
|
277
|
+
}
|
|
278
|
+
|
|
258
279
|
.Footer {
|
|
259
280
|
flex-direction: column;
|
|
260
281
|
}
|
|
261
282
|
|
|
262
283
|
.Footer > * {
|
|
263
284
|
width: 100%;
|
|
264
|
-
--button-size: var(--
|
|
285
|
+
--button-size: var(--dialog-mobile-action-size);
|
|
286
|
+
--button-radius: var(--dialog-mobile-action-radius);
|
|
287
|
+
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
288
|
+
--button-gutter: var(--control-gutter-xl);
|
|
265
289
|
}
|
|
266
290
|
}
|
|
267
291
|
}
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
flex-shrink: 0;
|
|
34
34
|
min-height: var(--sidebar-header-height);
|
|
35
35
|
padding: 0;
|
|
36
|
-
|
|
36
|
+
/* The sidebar's own ground: a fixed surface drew a square patch on a
|
|
37
|
+
sidebar of another color */
|
|
38
|
+
background: inherit;
|
|
37
39
|
}/* Hide header text when collapsed, keep only icon/logo */:global([data-sidebar="collapsed"]) .Header {
|
|
38
40
|
justify-content: center;
|
|
39
41
|
padding: 0;
|
|
@@ -362,6 +362,10 @@
|
|
|
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-radius: var(--radius-4xl);
|
|
366
|
+
--dialog-mobile-action-size: var(--control-size-2xl);
|
|
367
|
+
--dialog-mobile-action-radius: var(--radius-full);
|
|
368
|
+
--dialog-mobile-action-font-size: var(--control-font-size-lg);
|
|
365
369
|
--dialog-close-background: transparent;
|
|
366
370
|
--dialog-close-background-hover: color-mix(in srgb, var(--color-text-tertiary) 12%, transparent);
|
|
367
371
|
|