@xenide-io/the-old-ui-theme 0.6.2 → 0.6.3
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 +1 -1
- package/src/styles/suite-skin.css +28 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenide-io/the-old-ui-theme",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Props-driven React components and theme tokens inspired by classic interface design \u2014 optimized for Next.js apps and internal tools.",
|
|
5
5
|
"author": "Xenide",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,6 +34,10 @@ html {
|
|
|
34
34
|
/* Today needs a calmer opening rhythm than dense workspace screens. */
|
|
35
35
|
--suite-today-pad-y-top: var(--suite-space-4);
|
|
36
36
|
--suite-today-pad-y-top-sm: var(--suite-space-5);
|
|
37
|
+
/* Slack-style scroll edge: the page background the title sits on, and how
|
|
38
|
+
far content dissolves into it before it reaches the title. */
|
|
39
|
+
--suite-scroll-scrim: var(--ph-canvas);
|
|
40
|
+
--suite-scroll-fade: var(--suite-space-6);
|
|
37
41
|
--suite-section-gap: var(--suite-space-5);
|
|
38
42
|
--suite-header-gap: var(--suite-space-4);
|
|
39
43
|
--suite-content-max: 96rem; /* used only by content/narrow caps, not default pages */
|
|
@@ -251,7 +255,10 @@ html.dark .today-page-frame__cloud--2 {
|
|
|
251
255
|
color: var(--ph-canvas);
|
|
252
256
|
}
|
|
253
257
|
|
|
254
|
-
/*
|
|
258
|
+
/* Sticky page title (SuitePageHeader sticky) — Slack behaviour: the title
|
|
259
|
+
holds its position on the page background and never becomes its own bar.
|
|
260
|
+
No surface tint, border or blur; content scrolls underneath and dissolves
|
|
261
|
+
into the same background through the scrim below. */
|
|
255
262
|
.suite-page-header-sticky {
|
|
256
263
|
position: sticky;
|
|
257
264
|
top: 0;
|
|
@@ -260,11 +267,22 @@ html.dark .today-page-frame__cloud--2 {
|
|
|
260
267
|
margin-right: calc(-1 * var(--suite-page-pad-x));
|
|
261
268
|
padding-left: var(--suite-page-pad-x);
|
|
262
269
|
padding-right: var(--suite-page-pad-x);
|
|
263
|
-
background:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
background: var(--suite-scroll-scrim);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* The fade content scrolls into, pinned to the title's bottom edge. */
|
|
274
|
+
.suite-page-header-sticky::after {
|
|
275
|
+
content: "";
|
|
276
|
+
position: absolute;
|
|
277
|
+
inset-inline: 0;
|
|
278
|
+
top: 100%;
|
|
279
|
+
height: var(--suite-scroll-fade);
|
|
280
|
+
background: linear-gradient(
|
|
281
|
+
to bottom,
|
|
282
|
+
var(--suite-scroll-scrim),
|
|
283
|
+
transparent
|
|
284
|
+
);
|
|
285
|
+
pointer-events: none;
|
|
268
286
|
}
|
|
269
287
|
@media (min-width: 640px) {
|
|
270
288
|
.suite-page-header-sticky {
|
|
@@ -283,15 +301,9 @@ html.dark .today-page-frame__cloud--2 {
|
|
|
283
301
|
}
|
|
284
302
|
}
|
|
285
303
|
.suite-page-header-sticky[data-stuck="true"] {
|
|
286
|
-
border-bottom-color: var(--ph-border-subtle);
|
|
287
304
|
/* Only when pinned under the scroll edge — keeps resting titles aligned. */
|
|
288
305
|
padding-top: var(--suite-space-2);
|
|
289
306
|
}
|
|
290
|
-
@supports not (backdrop-filter: blur(1px)) {
|
|
291
|
-
.suite-page-header-sticky {
|
|
292
|
-
background: var(--ph-canvas);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
307
|
|
|
296
308
|
/* Sticky title chrome is for Today only — workspace pages scroll normally. */
|
|
297
309
|
.suite-app-layout__main:not(:has([data-test="today-page"])) .suite-page-header-sticky {
|
|
@@ -303,9 +315,10 @@ html.dark .today-page-frame__cloud--2 {
|
|
|
303
315
|
padding-left: 0;
|
|
304
316
|
padding-right: 0;
|
|
305
317
|
background: none;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
318
|
+
}
|
|
319
|
+
.suite-app-layout__main:not(:has([data-test="today-page"]))
|
|
320
|
+
.suite-page-header-sticky::after {
|
|
321
|
+
content: none;
|
|
309
322
|
}
|
|
310
323
|
.suite-app-layout__main:not(:has([data-test="today-page"]))
|
|
311
324
|
.suite-page-header-sticky[data-stuck="true"] {
|