@apliteni/apliteni-ui 0.142.6 → 0.142.7
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/react/dist/index.css +1 -1
- package/src/styles/card.css +5 -5
- package/src/styles/layout.css +3 -3
- package/src/tokens/tokens.css +18 -18
package/package.json
CHANGED
package/react/dist/index.css
CHANGED
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
flex-direction: column;
|
|
230
230
|
background: var(--bg-elevated);
|
|
231
231
|
border: 0;
|
|
232
|
-
box-shadow: var(--elev-drop);
|
|
232
|
+
box-shadow: inset 0 0 0 1px var(--modal-edge), var(--elev-drop);
|
|
233
233
|
border-radius: var(--radius-md);
|
|
234
234
|
overflow: hidden;
|
|
235
235
|
transform: translateY(var(--space-2));
|
package/src/styles/card.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* ============================================================================
|
|
2
|
-
* Card — .ui-card (a filled surface one step off the page: edged in
|
|
2
|
+
* Card — .ui-card (a filled surface one step off the page: edged in both themes)
|
|
3
3
|
* Rows: .ui-card__row / headers: .ui-card__title / .ui-card__sub
|
|
4
4
|
* ========================================================================== */
|
|
5
5
|
|
|
6
|
-
/* The surface is the step;
|
|
7
|
-
card
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
/* The surface is the step; the line makes it legible. Both themes edge the card with
|
|
7
|
+
--card-edge: the hairline in dark, --level-line in light. Light also casts --elev-rest,
|
|
8
|
+
a faint short shadow. Dark casts nothing. Decided on #730.
|
|
9
|
+
why: docs/foundations.md#elevation */
|
|
10
10
|
.ui-card {
|
|
11
11
|
--ui-card-ground: var(--surface); /* the ground a scrolling row inside covers its edge with; a tint repeats it below */
|
|
12
12
|
background: var(--surface);
|
package/src/styles/layout.css
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
.ui-app-page .topbar { position: sticky; top: 0; z-index: var(--z-sticky); }
|
|
29
29
|
|
|
30
30
|
/* The rail uses the card surface so its labels stay on a reading ground.
|
|
31
|
-
|
|
32
|
-
is flush to a screen edge.
|
|
31
|
+
Both themes draw its edge (--rail-edge); light also casts a faint --elev-rail, sideways,
|
|
32
|
+
because the rail is flush to a screen edge. Decided on #730.
|
|
33
33
|
why: docs/foundations.md#elevation
|
|
34
34
|
overflow-y, because the box is pinned at the viewport's height for the whole
|
|
35
35
|
scroll of .ui-app — without it a row past that height paints below the fold
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
width: 100%;
|
|
586
586
|
max-width: var(--panel-md);
|
|
587
587
|
/* Floats over a spotlit page, so it takes the floating step and the floating
|
|
588
|
-
treatment: the two-step edge in dark, the drop
|
|
588
|
+
treatment: the two-step edge in dark, one line and the drop in light.
|
|
589
589
|
why: docs/foundations.md#elevation */
|
|
590
590
|
background: var(--bg-elevated);
|
|
591
591
|
border: 1px solid var(--float-edge);
|
package/src/tokens/tokens.css
CHANGED
|
@@ -162,12 +162,13 @@
|
|
|
162
162
|
|
|
163
163
|
/* WHICH EDGE EACH LEVEL DRAWS. One name per level, so a sheet never has to ask
|
|
164
164
|
which theme it is in. Dark answers all four with the hairline, because a drop
|
|
165
|
-
on a near-black page reaches 1.20 at its core and has nowhere else to go
|
|
166
|
-
|
|
165
|
+
on a near-black page reaches 1.20 at its core and has nowhere else to go.
|
|
166
|
+
Light draws one line and adds a faint short drop. why: docs/foundations.md#elevation */
|
|
167
167
|
--card-edge: var(--border); /* a card */
|
|
168
168
|
--rail-edge: var(--border); /* the shell's rail */
|
|
169
169
|
--float-edge: var(--border-strong); /* a floating surface, outer line */
|
|
170
170
|
--float-edge-inner: var(--border); /* a floating surface, inner line */
|
|
171
|
+
--modal-edge: transparent; /* the modal: the deep scrim is its edge */
|
|
171
172
|
|
|
172
173
|
/* Fields use the card surface and an edge in both themes. why: docs/foundations.md#elevation */
|
|
173
174
|
--field-bg: var(--surface);
|
|
@@ -377,16 +378,15 @@
|
|
|
377
378
|
--border: #e4e7ee;
|
|
378
379
|
--border-strong: #cdd2dc;
|
|
379
380
|
|
|
380
|
-
/* Light draws
|
|
381
|
-
|
|
382
|
-
the reference he supplied. A line divides two regions of ONE surface (a card's
|
|
383
|
-
rows, a table's rules, the rail's head band, the topbar); a drop says a surface
|
|
384
|
-
is HIGHER, and only a higher surface may cast one.
|
|
381
|
+
/* Light draws each LEVEL with one line and a faint short shadow. The line is half
|
|
382
|
+
way between --border and --border-strong. Decided on #730.
|
|
385
383
|
why: docs/foundations.md#elevation */
|
|
386
|
-
--
|
|
387
|
-
--
|
|
388
|
-
--
|
|
384
|
+
--level-line: color-mix(in srgb, var(--border) 50%, var(--border-strong));
|
|
385
|
+
--card-edge: var(--level-line);
|
|
386
|
+
--rail-edge: var(--level-line);
|
|
387
|
+
--float-edge: var(--level-line);
|
|
389
388
|
--float-edge-inner: transparent;
|
|
389
|
+
--modal-edge: var(--float-edge);
|
|
390
390
|
|
|
391
391
|
/* Light draws a field with its EDGE, because since #448 it has no well left to draw it
|
|
392
392
|
with: a card and a panel are both white, the sunken step falls two rungs under either,
|
|
@@ -485,18 +485,18 @@
|
|
|
485
485
|
/* THE LIGHT LADDER. Three rungs, each two layers: a wide faint one and a short one.
|
|
486
486
|
Each layer is offset on one axis, blurred at least twice as wide as it is offset,
|
|
487
487
|
and held in by a negative spread. None is a glow — a glow is a zero-offset layer of
|
|
488
|
-
the signal's own colour.
|
|
489
|
-
|
|
488
|
+
the signal's own colour. Each rung is short and faint, because the level's line
|
|
489
|
+
marks the edge and the rung only adds lift. Decided on #730.
|
|
490
490
|
why: docs/foundations.md#elevation */
|
|
491
491
|
--elev-rest:
|
|
492
|
-
0 2px
|
|
493
|
-
0 1px 3px -1px color-mix(in srgb, var(--shadow-ink)
|
|
492
|
+
0 2px 6px -1px color-mix(in srgb, var(--shadow-ink) 6%, transparent),
|
|
493
|
+
0 1px 3px -1px color-mix(in srgb, var(--shadow-ink) 4%, transparent);
|
|
494
494
|
--elev-rail:
|
|
495
|
-
|
|
496
|
-
1px 0 3px -1px color-mix(in srgb, var(--shadow-ink)
|
|
495
|
+
3px 0 8px -3px color-mix(in srgb, var(--shadow-ink) 6%, transparent),
|
|
496
|
+
1px 0 3px -1px color-mix(in srgb, var(--shadow-ink) 4%, transparent);
|
|
497
497
|
--elev-drop:
|
|
498
|
-
0
|
|
499
|
-
0 1px
|
|
498
|
+
0 12px 32px -12px color-mix(in srgb, var(--shadow-ink) 16%, transparent),
|
|
499
|
+
0 1px 8px -3px color-mix(in srgb, var(--shadow-ink) 9%, transparent);
|
|
500
500
|
|
|
501
501
|
--scrim: rgba(20, 22, 40, 0.38);
|
|
502
502
|
|