@finstack-com-public/design 0.5.0 → 0.7.0
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/CHANGELOG.md +240 -0
- package/dist/charts/index.d.ts +7 -2
- package/dist/charts/index.js +20 -17
- package/dist/css/appbar.css +2 -2
- package/dist/css/breadcrumbs.css +1 -1
- package/dist/css/card.css +62 -17
- package/dist/css/card.md +18 -2
- package/dist/css/checkbox.css +61 -1
- package/dist/css/checkbox.md +3 -2
- package/dist/css/chip.css +37 -6
- package/dist/css/chip.md +5 -0
- package/dist/css/control-rows.css +111 -0
- package/dist/css/control-rows.md +46 -0
- package/dist/css/count.css +2 -2
- package/dist/css/dialog.css +5 -1
- package/dist/css/dialog.md +1 -0
- package/dist/css/drag.css +6 -6
- package/dist/css/drag.md +1 -0
- package/dist/css/dropzone.css +3 -3
- package/dist/css/error-message.css +2 -2
- package/dist/css/field.css +1 -1
- package/dist/css/gap.css +7 -7
- package/dist/css/glass.css +34 -0
- package/dist/css/glass.md +19 -0
- package/dist/css/input.css +1 -1
- package/dist/css/kicker.css +12 -2
- package/dist/css/kicker.md +5 -0
- package/dist/css/kpi.css +120 -6
- package/dist/css/kpi.md +28 -1
- package/dist/css/link.css +1 -1
- package/dist/css/menu.css +2 -2
- package/dist/css/meter.css +2 -2
- package/dist/css/page.css +36 -0
- package/dist/css/page.md +28 -0
- package/dist/css/panel.css +2 -4
- package/dist/css/panel.md +1 -1
- package/dist/css/param-badge.css +48 -0
- package/dist/css/param-badge.md +22 -0
- package/dist/css/popover.css +5 -4
- package/dist/css/problems.css +2 -2
- package/dist/css/progress.css +1 -1
- package/dist/css/segmented.css +2 -2
- package/dist/css/sheet.css +4 -4
- package/dist/css/sidenav.css +4 -5
- package/dist/css/sidenav.md +1 -1
- package/dist/css/site.css +3 -2
- package/dist/css/stacked-bar.css +2 -2
- package/dist/css/tabbar.css +36 -13
- package/dist/css/tabbar.md +4 -1
- package/dist/css/table.css +2 -1
- package/dist/css/tabs.css +18 -2
- package/dist/css/tabs.md +1 -0
- package/dist/css/title.css +20 -0
- package/dist/css/title.md +13 -0
- package/dist/css/tokens.css +207 -137
- package/dist/css/tooltip.css +25 -2
- package/dist/css/tooltip.md +1 -0
- package/dist/css/tree.css +44 -9
- package/dist/css/tree.md +1 -0
- package/dist/css/wave.css +36 -0
- package/dist/css/wave.md +43 -0
- package/dist/css/widget.css +7 -9
- package/dist/css-text/appbar.js +1 -1
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/card.js +1 -1
- package/dist/css-text/checkbox.js +1 -1
- package/dist/css-text/chip.js +1 -1
- package/dist/css-text/control-rows.d.ts +2 -0
- package/dist/css-text/control-rows.js +1 -0
- package/dist/css-text/count.js +1 -1
- package/dist/css-text/dialog.js +1 -1
- package/dist/css-text/drag.js +1 -1
- package/dist/css-text/dropzone.js +1 -1
- package/dist/css-text/error-message.js +1 -1
- package/dist/css-text/field.js +1 -1
- package/dist/css-text/gap.js +1 -1
- package/dist/css-text/glass.d.ts +2 -0
- package/dist/css-text/glass.js +1 -0
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kicker.js +1 -1
- package/dist/css-text/kit.js +6073 -1
- package/dist/css-text/kpi.js +1 -1
- package/dist/css-text/link.js +1 -1
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/meter.js +1 -1
- package/dist/css-text/page.d.ts +2 -0
- package/dist/css-text/page.js +1 -0
- package/dist/css-text/panel.js +1 -1
- package/dist/css-text/param-badge.d.ts +2 -0
- package/dist/css-text/param-badge.js +1 -0
- package/dist/css-text/popover.js +1 -1
- package/dist/css-text/problems.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/segmented.js +1 -1
- package/dist/css-text/sheet.js +1 -1
- package/dist/css-text/sidenav.js +1 -1
- package/dist/css-text/site.js +1 -1
- package/dist/css-text/stacked-bar.js +1 -1
- package/dist/css-text/tabbar.js +1 -1
- package/dist/css-text/table.js +1 -1
- package/dist/css-text/tabs.js +1 -1
- package/dist/css-text/title.d.ts +2 -0
- package/dist/css-text/title.js +1 -0
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/tooltip.js +1 -1
- package/dist/css-text/tree.js +1 -1
- package/dist/css-text/wave.d.ts +2 -0
- package/dist/css-text/wave.js +37 -0
- package/dist/css-text/widget.js +1 -1
- package/dist/dom/dialog.js +13 -2
- package/dist/grid.json +2 -2
- package/dist/kit.css +982 -262
- package/dist/motifs/wave.webp +0 -0
- package/dist/react/data.d.ts +34 -0
- package/dist/react/data.js +7 -3
- package/dist/react/util.d.ts +5 -1
- package/dist/react/util.js +10 -2
- package/dist/tokens/color.d.ts +7 -0
- package/dist/tokens/color.js +40 -18
- package/dist/tokens/contrast-pairs.js +43 -6
- package/dist/tokens/contrast.js +2 -0
- package/dist/tokens/density.d.ts +2 -0
- package/dist/tokens/density.js +8 -2
- package/dist/tokens/grid.js +19 -18
- package/dist/tokens/index.d.ts +32 -22
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/primitives.js +3 -0
- package/dist/tokens/scale.d.ts +27 -17
- package/dist/tokens/scale.js +26 -14
- package/dist/tokens.json +92 -62
- package/package.json +5 -2
package/dist/css/chip.css
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
line-height: var(--fs-text-body-line);
|
|
14
14
|
color: var(--fs-ink);
|
|
15
15
|
white-space: nowrap;
|
|
16
|
-
background: var(--fs-bg-
|
|
16
|
+
background: var(--fs-bg-sunken);
|
|
17
17
|
border: var(--fs-line-width) solid var(--fs-line-control);
|
|
18
|
-
border-radius: var(--fs-radius-
|
|
18
|
+
border-radius: var(--fs-radius-md);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* A choice chip (a button) is outlined: aria-pressed (or aria-checked) marks it chosen. */
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
color: var(--fs-ink-2);
|
|
65
65
|
background: transparent;
|
|
66
66
|
border: 0;
|
|
67
|
-
border-radius:
|
|
67
|
+
border-radius: var(--fs-radius-sm);
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
}
|
|
70
70
|
.fs-chip__remove > .fs-icon {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
cursor: pointer;
|
|
88
88
|
}
|
|
89
89
|
.fs-chip__part:first-child {
|
|
90
|
-
border-radius: var(--fs-radius-
|
|
90
|
+
border-radius: var(--fs-radius-md) 0 0 var(--fs-radius-md);
|
|
91
91
|
}
|
|
92
92
|
.fs-chip__part + .fs-chip__part {
|
|
93
93
|
border-left: var(--fs-line-width) solid var(--fs-line-control);
|
|
@@ -98,14 +98,21 @@
|
|
|
98
98
|
|
|
99
99
|
/* The ring recipe (D15), on the chip or on each part. */
|
|
100
100
|
.fs-chip--choice:focus-visible,
|
|
101
|
-
.fs-chip__part:focus-visible
|
|
102
|
-
.fs-chip__remove:focus-visible {
|
|
101
|
+
.fs-chip__part:focus-visible {
|
|
103
102
|
z-index: 1;
|
|
104
103
|
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
105
104
|
outline-offset: var(--fs-ring-halo-width);
|
|
106
105
|
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
107
106
|
}
|
|
108
107
|
|
|
108
|
+
/* The remove button is 20 px inside a 22 px chip, next to the label: its ring sits tight on it (no offset, no halo),
|
|
109
|
+
with the 4 px corners, so it never covers the neighbouring text (T81). */
|
|
110
|
+
.fs-chip__remove:focus-visible {
|
|
111
|
+
z-index: 1;
|
|
112
|
+
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
113
|
+
outline-offset: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
109
116
|
.fs-chip:disabled,
|
|
110
117
|
.fs-chip[aria-disabled='true'],
|
|
111
118
|
.fs-chip__part:disabled,
|
|
@@ -118,4 +125,28 @@
|
|
|
118
125
|
.fs-chip__remove:disabled {
|
|
119
126
|
background-color: transparent;
|
|
120
127
|
}
|
|
128
|
+
|
|
129
|
+
/* The lock chip (T74): who holds the page, e.g. a lock icon and "You" in the page header. A status, not a control:
|
|
130
|
+
22 px, 4 px corners, the accent on the accent wash (the same shape as the KPI change chip). */
|
|
131
|
+
.fs-chip--lock {
|
|
132
|
+
gap: var(--fs-space-1);
|
|
133
|
+
height: 22px;
|
|
134
|
+
padding: 0 var(--fs-space-2);
|
|
135
|
+
font-weight: var(--fs-weight-semibold);
|
|
136
|
+
color: var(--fs-accent);
|
|
137
|
+
background: var(--fs-accent-wash);
|
|
138
|
+
border-color: transparent;
|
|
139
|
+
cursor: default;
|
|
140
|
+
}
|
|
141
|
+
.fs-chip--lock > .fs-icon {
|
|
142
|
+
flex: none;
|
|
143
|
+
width: 12px;
|
|
144
|
+
height: 12px;
|
|
145
|
+
}
|
|
146
|
+
/* Forced colours drops the wash, so the chip keeps an edge. */
|
|
147
|
+
@media (forced-colors: active) {
|
|
148
|
+
.fs-chip--lock {
|
|
149
|
+
border-color: ButtonText;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
121
152
|
}
|
package/dist/css/chip.md
CHANGED
|
@@ -17,6 +17,8 @@ Spec 02 B. CSS: `css/chip.css`. Gallery: `inputs.html`. A group of choice chips
|
|
|
17
17
|
</span>
|
|
18
18
|
|
|
19
19
|
<span class="fs-chip fs-chip--filter">…same as removable…</span>
|
|
20
|
+
|
|
21
|
+
<span class="fs-chip fs-chip--lock" title="You hold the lock on this page"><svg class="fs-icon" …></svg>You</span>
|
|
20
22
|
```
|
|
21
23
|
|
|
22
24
|
- A choice chip needs `fs-chip--choice` (the CSS never styles by element name). Chosen:
|
|
@@ -24,3 +26,6 @@ Spec 02 B. CSS: `css/chip.css`. Gallery: `inputs.html`. A group of choice chips
|
|
|
24
26
|
ink at weight 600.
|
|
25
27
|
- Removable, split and filter chips are not buttons themselves; their parts are, and each part
|
|
26
28
|
gets its own ring. Every remove button needs a name that says what it removes.
|
|
29
|
+
- `fs-chip--lock` (T74) is a status, not a control: who holds the lock (a lock icon and "You", as in the Scenarios and Page
|
|
30
|
+
edit headers). 22 px, 4 px corners, `accent` on `accent-wash` (4.5:1 in both schemes), semibold, no hover; in forced colours it
|
|
31
|
+
keeps an edge. It is a `<span>`; put the meaning in its text or a `title`, not in the colour.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* Control-row grid: filters, parameters and the property list (spec 02 B, T73). Usage: control-rows.md. */
|
|
2
|
+
@layer fs.components {
|
|
3
|
+
/* A stack of sections (Szűrők, then Paraméterek), 12 apart. */
|
|
4
|
+
.fs-control-rows-stack {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--fs-space-3);
|
|
8
|
+
max-width: 520px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* One section: a title row, then gapless label | value rows in one edged box. */
|
|
12
|
+
.fs-control-rows {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
max-width: 520px;
|
|
17
|
+
}
|
|
18
|
+
.fs-control-rows__title {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 6px;
|
|
22
|
+
height: var(--fs-control-h);
|
|
23
|
+
margin: 0;
|
|
24
|
+
font-size: var(--fs-text-body-size);
|
|
25
|
+
line-height: var(--fs-text-body-line);
|
|
26
|
+
font-weight: var(--fs-weight-semibold);
|
|
27
|
+
color: var(--fs-ink);
|
|
28
|
+
}
|
|
29
|
+
.fs-control-rows__title > .fs-icon {
|
|
30
|
+
color: var(--fs-ink-2);
|
|
31
|
+
}
|
|
32
|
+
.fs-control-rows__grid {
|
|
33
|
+
display: grid;
|
|
34
|
+
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
|
|
35
|
+
border: var(--fs-line-width) solid var(--fs-line-control);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* The label cell is the sunken grey (2fr); the value cell is the surface (3fr) and holds the control. */
|
|
39
|
+
.fs-control-rows__label {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
min-height: var(--fs-control-h);
|
|
44
|
+
padding: 0 var(--fs-pad-x);
|
|
45
|
+
color: var(--fs-ink-2);
|
|
46
|
+
overflow-wrap: anywhere;
|
|
47
|
+
background: var(--fs-bg-sunken);
|
|
48
|
+
border-right: var(--fs-line-width) solid var(--fs-line-control);
|
|
49
|
+
}
|
|
50
|
+
.fs-control-rows__value {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
min-height: var(--fs-control-h);
|
|
56
|
+
background: var(--fs-bg-surface);
|
|
57
|
+
}
|
|
58
|
+
/* The rows share their edges: every cell but the last row's has a line under it. */
|
|
59
|
+
.fs-control-rows__grid > :nth-last-child(n + 3) {
|
|
60
|
+
border-bottom: var(--fs-line-width) solid var(--fs-line-control);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* The cell draws the edge, so the control inside is bare and its ring sits inside the cell (the field box's rule). */
|
|
64
|
+
.fs-control-rows__value :is(.fs-input, .fs-select__control, .fs-input--picker) {
|
|
65
|
+
height: 100%;
|
|
66
|
+
min-height: var(--fs-control-h);
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
border-color: transparent;
|
|
69
|
+
border-radius: 0;
|
|
70
|
+
}
|
|
71
|
+
.fs-control-rows__value :is(.fs-input, .fs-select__control):focus-visible {
|
|
72
|
+
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
73
|
+
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
74
|
+
}
|
|
75
|
+
.fs-control-rows__value > .fs-select {
|
|
76
|
+
flex: 1 1 auto;
|
|
77
|
+
}
|
|
78
|
+
.fs-control-rows__value > .fs-field__mark {
|
|
79
|
+
right: var(--fs-pad-x);
|
|
80
|
+
}
|
|
81
|
+
.fs-control-rows__value:has(> .fs-field__mark) > :is(.fs-input, .fs-select__control) {
|
|
82
|
+
padding-right: calc(var(--fs-pad-x) * 2 + 16px);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* The property list (Object settings): a <dl> with a 160 px label column; read-only, so the hairline, not the control edge. */
|
|
86
|
+
.fs-property-list {
|
|
87
|
+
display: grid;
|
|
88
|
+
grid-template-columns: 160px minmax(0, 1fr);
|
|
89
|
+
max-width: 560px;
|
|
90
|
+
margin: 0;
|
|
91
|
+
border: var(--fs-line-width) solid var(--fs-line);
|
|
92
|
+
}
|
|
93
|
+
.fs-property-list__label,
|
|
94
|
+
.fs-property-list__value {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
min-height: var(--fs-control-h);
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0 var(--fs-pad-x);
|
|
101
|
+
overflow-wrap: anywhere;
|
|
102
|
+
}
|
|
103
|
+
.fs-property-list__label {
|
|
104
|
+
color: var(--fs-ink-2);
|
|
105
|
+
background: var(--fs-bg-sunken);
|
|
106
|
+
border-right: var(--fs-line-width) solid var(--fs-line);
|
|
107
|
+
}
|
|
108
|
+
.fs-property-list > :nth-last-child(n + 3) {
|
|
109
|
+
border-bottom: var(--fs-line-width) solid var(--fs-line);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Control rows — `.fs-control-rows`, `.fs-property-list`
|
|
2
|
+
|
|
3
|
+
Spec 02 B. CSS: `css/control-rows.css` (with `css/input.css` for the controls). Gallery: `inputs.html`.
|
|
4
|
+
|
|
5
|
+
## Filters and parameters
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<div class="fs-control-rows-stack">
|
|
9
|
+
<section class="fs-control-rows" aria-labelledby="filters">
|
|
10
|
+
<h2 class="fs-control-rows__title" id="filters"><svg class="fs-icon fs-icon-funnel" …></svg>Filters</h2>
|
|
11
|
+
<div class="fs-control-rows__grid">
|
|
12
|
+
<label class="fs-control-rows__label" for="period">Period (YYYYMM)</label>
|
|
13
|
+
<div class="fs-control-rows__value"><input class="fs-input" id="period" value="202512"></div>
|
|
14
|
+
</div>
|
|
15
|
+
</section>
|
|
16
|
+
<section class="fs-control-rows" aria-labelledby="params">
|
|
17
|
+
<h2 class="fs-control-rows__title" id="params"><svg class="fs-icon fs-icon-sliders-horizontal" …></svg>Parameters</h2>
|
|
18
|
+
<div class="fs-control-rows__grid">
|
|
19
|
+
<span class="fs-control-rows__label" id="scenario-label">Scenario</span>
|
|
20
|
+
<div class="fs-control-rows__value"><button class="fs-input fs-input--picker" id="scenario-btn" aria-labelledby="scenario-label scenario-btn" aria-haspopup="listbox">A - Actual</button></div>
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
</div>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- A section is a 28 px title row (icon, 12/16 semibold) over one edged box (`--fs-line-control`, `--fs-bg-sunken` label
|
|
27
|
+
cells) with the rows gapless: the label cell is 2fr on the sunken grey, the value cell 3fr on the surface. Max width 520.
|
|
28
|
+
The stack puts 12 between sections.
|
|
29
|
+
- The grid holds **label and value as direct pairs**: the shared edges are drawn for every cell but the last two.
|
|
30
|
+
- Each label is tied to its control: a `<label for>` for an input, and `aria-labelledby` on a picker or select button (the label id plus the button's own id, so the name contains the visible text, WCAG 2.5.3)
|
|
31
|
+
(the label is then a `<span id>`). The control inside is bare (no edge, transparent fill); its focus ring sits inside the cell.
|
|
32
|
+
- Rows are `--fs-control-h` high (28 in compact), so they grow with density.
|
|
33
|
+
|
|
34
|
+
## Property list
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<dl class="fs-property-list">
|
|
38
|
+
<dt class="fs-property-list__label">Name</dt>
|
|
39
|
+
<dd class="fs-property-list__value">Executive Dashboard</dd>
|
|
40
|
+
<dt class="fs-property-list__label">Code</dt>
|
|
41
|
+
<dd class="fs-property-list__value fs-ink-muted">[generated code]</dd>
|
|
42
|
+
</dl>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
- A definition list, label column 160 px, max width 560. Read-only, so its lines are the `--fs-line` hairline (the canvas's
|
|
46
|
+
Object settings board), not the control edge.
|
package/dist/css/count.css
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
min-width: 16px;
|
|
9
9
|
height: 16px;
|
|
10
10
|
padding: 0 var(--fs-space-1);
|
|
11
|
-
font-size: var(--fs-text-
|
|
12
|
-
line-height:
|
|
11
|
+
font-size: var(--fs-text-body-size);
|
|
12
|
+
line-height: var(--fs-text-body-line);
|
|
13
13
|
font-weight: var(--fs-weight-semibold);
|
|
14
14
|
font-variant-numeric: tabular-nums;
|
|
15
15
|
color: var(--fs-neutral-ink);
|
package/dist/css/dialog.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
color: var(--fs-ink);
|
|
14
14
|
background: var(--fs-bg-surface);
|
|
15
15
|
border: var(--fs-line-width) solid var(--fs-line-strong);
|
|
16
|
-
border-radius: var(--fs-radius-
|
|
16
|
+
border-radius: var(--fs-radius-md);
|
|
17
17
|
box-shadow: var(--fs-shadow-3);
|
|
18
18
|
}
|
|
19
19
|
.fs-dialog::backdrop {
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
.fs-dialog__body {
|
|
42
42
|
padding: var(--fs-space-4) var(--fs-space-6);
|
|
43
43
|
}
|
|
44
|
+
/* Space between the text and the divider above the actions (T59). */
|
|
45
|
+
.fs-dialog__text + .fs-dialog__footer {
|
|
46
|
+
margin-top: var(--fs-space-4);
|
|
47
|
+
}
|
|
44
48
|
/* Right-aligned, Cancel first, the action last (C6). */
|
|
45
49
|
.fs-dialog__footer {
|
|
46
50
|
display: flex;
|
package/dist/css/dialog.md
CHANGED
|
@@ -20,6 +20,7 @@ openButton.addEventListener('click', () => dialog.open());
|
|
|
20
20
|
el.addEventListener('fs-close', (e) => e.detail.returnValue === 'delete' && remove());
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
- A `.fs-dialog__footer` straight after the text gets `--fs-space-4` above its divider.
|
|
23
24
|
- It's the native `<dialog>` opened with `showModal()`, so the browser makes the rest of the page
|
|
24
25
|
inert and keeps focus inside. Escape closes it. Focus goes to `[autofocus]`, else the first
|
|
25
26
|
control, else the dialog; it returns to the opener on close.
|
package/dist/css/drag.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
display: block;
|
|
33
33
|
height: 4px;
|
|
34
34
|
background: var(--fs-accent);
|
|
35
|
-
border-radius:
|
|
35
|
+
border-radius: 0;
|
|
36
36
|
}
|
|
37
37
|
.fs-drop-target.fs-is-dragover {
|
|
38
38
|
background-color: var(--fs-accent-wash);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
.fs-resize-handle::after {
|
|
66
66
|
content: '';
|
|
67
|
-
border-radius:
|
|
67
|
+
border-radius: 0;
|
|
68
68
|
}
|
|
69
69
|
.fs-resize-handle--row::after {
|
|
70
70
|
width: 100%;
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
box-sizing: border-box;
|
|
103
103
|
min-height: var(--fs-row-h);
|
|
104
104
|
margin: 0;
|
|
105
|
-
padding: 0;
|
|
105
|
+
padding: 0 var(--fs-space-3);
|
|
106
106
|
font: inherit;
|
|
107
107
|
color: var(--fs-ink-muted);
|
|
108
108
|
background: transparent;
|
|
109
|
-
border: var(--fs-line-width) dashed var(--fs-line-control);
|
|
109
|
+
border: var(--fs-line-width) dashed var(--fs-line-control-strong);
|
|
110
110
|
border-radius: var(--fs-radius-sm);
|
|
111
111
|
cursor: pointer;
|
|
112
112
|
}
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
font-size: var(--fs-text-xs-size);
|
|
127
127
|
color: var(--fs-ink);
|
|
128
128
|
background: var(--fs-bg-surface);
|
|
129
|
-
border: var(--fs-line-width) solid var(--fs-line-control);
|
|
130
|
-
border-radius: var(--fs-radius-
|
|
129
|
+
border: var(--fs-line-width) solid var(--fs-line-control-strong);
|
|
130
|
+
border-radius: var(--fs-radius-md);
|
|
131
131
|
cursor: grab;
|
|
132
132
|
}
|
|
133
133
|
.fs-palette-pill > .fs-icon {
|
package/dist/css/drag.md
CHANGED
|
@@ -12,6 +12,7 @@ Spec 02 F (BI App's page builder, tree and editors). CSS: `css/drag.css`. Galler
|
|
|
12
12
|
<span class="fs-palette-pill"><svg class="fs-icon" …grip-vertical…></svg>Chart</span>
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
- `.fs-add-cell` has `--fs-space-3` of horizontal padding, so a label such as "+ Add" does not touch the dashed edge.
|
|
15
16
|
- The kit styles the markers; the product's own engine runs the drag (BI §9.6) and adds or removes
|
|
16
17
|
`fs-is-dragover` and `fs-is-refused`.
|
|
17
18
|
- Every move a drag does needs a keyboard path too (BI's move buttons: up, down, shrink, grow).
|
package/dist/css/dropzone.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
color: var(--fs-ink);
|
|
14
14
|
text-align: center;
|
|
15
15
|
background: var(--fs-bg-surface);
|
|
16
|
-
border: 2px dashed var(--fs-line-control);
|
|
16
|
+
border: 2px dashed var(--fs-line-control-strong);
|
|
17
17
|
border-radius: var(--fs-radius-lg);
|
|
18
18
|
}
|
|
19
19
|
.fs-dropzone__icon {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
padding: var(--fs-space-3) var(--fs-space-4);
|
|
75
75
|
color: var(--fs-ink);
|
|
76
76
|
background: var(--fs-bg-surface);
|
|
77
|
-
border: 2px dashed var(--fs-line-control);
|
|
77
|
+
border: 2px dashed var(--fs-line-control-strong);
|
|
78
78
|
border-radius: var(--fs-radius-lg);
|
|
79
79
|
}
|
|
80
80
|
.fs-slot__number {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
.fs-slot--optional .fs-slot__number {
|
|
93
93
|
color: var(--fs-ink-2);
|
|
94
94
|
background: transparent;
|
|
95
|
-
box-shadow: inset 0 0 0 1.5px var(--fs-line-control);
|
|
95
|
+
box-shadow: inset 0 0 0 1.5px var(--fs-line-control-strong);
|
|
96
96
|
}
|
|
97
97
|
.fs-slot__content {
|
|
98
98
|
flex: 1 1 auto;
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
.fs-error-message__code {
|
|
48
48
|
margin: 0;
|
|
49
|
-
font-size: var(--fs-text-
|
|
50
|
-
line-height: var(--fs-text-
|
|
49
|
+
font-size: var(--fs-text-body-size);
|
|
50
|
+
line-height: var(--fs-text-body-line);
|
|
51
51
|
font-variant-numeric: tabular-nums;
|
|
52
52
|
color: var(--fs-ink-muted);
|
|
53
53
|
}
|
package/dist/css/field.css
CHANGED
package/dist/css/gap.css
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
align-items: center;
|
|
22
22
|
gap: var(--fs-space-2);
|
|
23
23
|
margin: 0;
|
|
24
|
-
font-size: var(--fs-text-
|
|
25
|
-
line-height: var(--fs-text-
|
|
24
|
+
font-size: var(--fs-text-body-size);
|
|
25
|
+
line-height: var(--fs-text-body-line);
|
|
26
26
|
font-weight: var(--fs-weight-bold);
|
|
27
27
|
color: var(--fs-gap-ink);
|
|
28
28
|
}
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
}
|
|
34
34
|
.fs-gap-panel__short {
|
|
35
35
|
margin: 0;
|
|
36
|
-
font-size: var(--fs-text-
|
|
37
|
-
line-height: var(--fs-text-
|
|
36
|
+
font-size: var(--fs-text-body-size);
|
|
37
|
+
line-height: var(--fs-text-body-line);
|
|
38
38
|
font-weight: var(--fs-weight-semibold);
|
|
39
39
|
}
|
|
40
40
|
.fs-gap-panel__why {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
background-image: var(--fs-gap-hatch-sm);
|
|
118
118
|
}
|
|
119
119
|
.fs-gap-cell__word {
|
|
120
|
-
font-size: var(--fs-text-
|
|
120
|
+
font-size: var(--fs-text-body-size);
|
|
121
121
|
font-style: italic;
|
|
122
122
|
color: var(--fs-gap-ink);
|
|
123
123
|
}
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
margin: 0;
|
|
131
131
|
padding: 2px var(--fs-space-2) 2px 6px;
|
|
132
132
|
font: inherit;
|
|
133
|
-
font-size: var(--fs-text-
|
|
134
|
-
line-height: var(--fs-text-
|
|
133
|
+
font-size: var(--fs-text-body-size);
|
|
134
|
+
line-height: var(--fs-text-body-line);
|
|
135
135
|
font-weight: var(--fs-weight-semibold);
|
|
136
136
|
color: var(--fs-gap-ink);
|
|
137
137
|
white-space: nowrap;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* Glass (spec 02 I). Usage: glass.md. */
|
|
2
|
+
@layer fs.components {
|
|
3
|
+
/* A modifier on a container block. It is doubled so it beats the block's own surface, whichever
|
|
4
|
+
file comes later in kit.css (the files load alphabetically: card, glass, panel, widget).
|
|
5
|
+
T60, D36: no border (kept transparent, so the box does not change size), a small radius (the
|
|
6
|
+
controls' size), a thin fill and a gradient from blue at the left to cyan at the right. */
|
|
7
|
+
.fs-glass.fs-glass {
|
|
8
|
+
background: linear-gradient(to right, var(--fs-glass-bg), var(--fs-glass-bg-end));
|
|
9
|
+
border-color: transparent;
|
|
10
|
+
border-radius: var(--fs-radius-sm);
|
|
11
|
+
-webkit-backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);
|
|
12
|
+
backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);
|
|
13
|
+
}
|
|
14
|
+
/* The doubled rule above would beat the card's hover edge (same specificity, later file): a glass
|
|
15
|
+
card shows no edge on hover either. */
|
|
16
|
+
@media (hover: hover) {
|
|
17
|
+
.fs-glass.fs-card:hover {
|
|
18
|
+
border-color: transparent;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/* Without backdrop-filter the fill would let the ground show through unblurred. */
|
|
22
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
23
|
+
.fs-glass.fs-glass {
|
|
24
|
+
background: var(--fs-bg-surface);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/* Not decoration: a surface that holds text. Forced colours use the system colours. */
|
|
28
|
+
@media (forced-colors: active) {
|
|
29
|
+
.fs-glass.fs-glass {
|
|
30
|
+
background: Canvas;
|
|
31
|
+
border-color: CanvasText;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Glass — `.fs-glass`
|
|
2
|
+
|
|
3
|
+
Spec 02 I. CSS: `css/glass.css`. Gallery: `motifs.html`.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<article class="fs-panel fs-glass">…</article>
|
|
7
|
+
<a class="fs-card fs-glass" href="…">…</a>
|
|
8
|
+
<div class="fs-widget fs-glass">…</div>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- A modifier for `.fs-panel`, `.fs-card` and `.fs-widget`: a thin translucent fill that runs from blue at the left
|
|
12
|
+
(`--fs-glass-bg`) to cyan at the right (`--fs-glass-bg-end`), a 16 px backdrop blur (`--fs-glass-blur`), no visible
|
|
13
|
+
border and a small radius (`--fs-radius-sm`). A glass card's hover lift still works; its edge stays invisible.
|
|
14
|
+
- Use it over something worth blurring: a gradient wash, the wave or a photo. On a plain `bg-surface` it adds
|
|
15
|
+
nothing, so leave it off.
|
|
16
|
+
- Text on glass is contrast-tested only over the kit's grounds (the page, and both ends of the brand wash). Over a
|
|
17
|
+
photo or any other ground, check the contrast yourself.
|
|
18
|
+
- Not decoration: it is not `aria-hidden` and stays in forced colours (the system colours apply) and in print.
|
|
19
|
+
- Without `backdrop-filter` support the fill falls back to `--fs-bg-surface`.
|
package/dist/css/input.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-size: var(--fs-text-body-size);
|
|
12
12
|
line-height: var(--fs-text-body-line);
|
|
13
13
|
color: var(--fs-ink);
|
|
14
|
-
background-color: var(--fs-bg-
|
|
14
|
+
background-color: var(--fs-bg-sunken);
|
|
15
15
|
border: var(--fs-line-width) solid var(--fs-line-control);
|
|
16
16
|
border-radius: var(--fs-radius-md);
|
|
17
17
|
}
|
package/dist/css/kicker.css
CHANGED
|
@@ -3,13 +3,23 @@
|
|
|
3
3
|
.fs-kicker {
|
|
4
4
|
display: block;
|
|
5
5
|
font-family: var(--fs-font-display);
|
|
6
|
-
font-size: var(--fs-text-
|
|
7
|
-
line-height: var(--fs-text-
|
|
6
|
+
font-size: var(--fs-text-body-size);
|
|
7
|
+
line-height: var(--fs-text-body-line);
|
|
8
8
|
font-weight: var(--fs-weight-semibold);
|
|
9
9
|
letter-spacing: var(--fs-tracking-caps-wide);
|
|
10
10
|
text-transform: uppercase;
|
|
11
11
|
color: var(--fs-ink-2);
|
|
12
12
|
}
|
|
13
|
+
/* Drawer section label (T68, D39): Inter 600 12/16, capitals, 0.06em, ink-2. */
|
|
14
|
+
.fs-section-label {
|
|
15
|
+
display: block;
|
|
16
|
+
font-size: var(--fs-text-body-size);
|
|
17
|
+
line-height: var(--fs-text-body-line);
|
|
18
|
+
font-weight: var(--fs-weight-semibold);
|
|
19
|
+
letter-spacing: var(--fs-tracking-caps);
|
|
20
|
+
text-transform: uppercase;
|
|
21
|
+
color: var(--fs-ink-2);
|
|
22
|
+
}
|
|
13
23
|
.fs-kicker.fs-tone-positive {
|
|
14
24
|
color: var(--fs-positive-ink);
|
|
15
25
|
}
|
package/dist/css/kicker.md
CHANGED
|
@@ -10,3 +10,8 @@ Spec 02 E. CSS: `css/kicker.css`. Gallery: `feedback.html`.
|
|
|
10
10
|
- Uppercase, 11 px, weight 600, letter-spaced: kickers above titles, section labels in the filter
|
|
11
11
|
pane, slicer titles. Tones: `fs-tone-positive`, `-gap`, `-danger`, `-info`.
|
|
12
12
|
- Write the words in sentence case; CSS uppercases them, so screen readers don't spell them out.
|
|
13
|
+
|
|
14
|
+
## Drawer section label — `.fs-section-label`
|
|
15
|
+
|
|
16
|
+
T68, D39. Inter 600 12/16, capitals, 0.06em tracking (`--fs-tracking-caps`), `--fs-ink-2`: the heading of a
|
|
17
|
+
section in the widget drawer. The kicker above is Plus Jakarta Sans with the wider 0.18em tracking.
|