@webority/theme 0.164.0 → 0.165.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/LICENSE +1 -1
- package/dist/purge-safelist.json +37 -13
- package/dist/webority-theme.css +1 -1
- package/package.json +3 -3
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/_wui-components.scss +2 -2
- package/scss/_wui-core.scss +2 -2
- package/scss/wui/_controls.scss +6 -43
- package/scss/wui/_data.scss +52 -2
- package/scss/wui/_entry-grid.scss +118 -0
- package/scss/wui/_field-sizes.scss +1 -2
- package/scss/wui/_formula-steps.scss +73 -0
- package/scss/wui/_interaction.scss +4 -0
- package/scss/wui/_metric-strip.scss +14 -0
- package/scss/wui/_overlays.scss +8 -0
- package/scss/wui/_sections.scss +28 -0
- package/scss/wui/_shell-parts.scss +4 -0
- package/scss/wui/_typography.scss +1 -0
- package/scss/wui/_utilities.scss +0 -7
- package/scss/wui/_resizable.scss +0 -100
- package/scss/wui/_rolling-number.scss +0 -68
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@use "../config" as *;
|
|
2
|
-
|
|
3
|
-
// ── Rolling number ──
|
|
4
|
-
// AppRollingNumber / <app-rolling-number> (a <wui-rolling-number> element): a figure whose digits
|
|
5
|
-
// roll to a new value. The element draws one reel (digits 0 to 9, stacked) per digit in the
|
|
6
|
-
// aria-hidden roll and moves it with --wui-roll-digit; the plain text beside it is what a screen
|
|
7
|
-
// reader reads, shown on its own until the element is ready or when motion is reduced.
|
|
8
|
-
//
|
|
9
|
-
// Part of the wui-components layer, see _wui-components.scss for load order.
|
|
10
|
-
|
|
11
|
-
$wui-roll-cell: 1.2em;
|
|
12
|
-
|
|
13
|
-
.wui-rolling-number {
|
|
14
|
-
position: relative;
|
|
15
|
-
display: inline-block;
|
|
16
|
-
vertical-align: bottom;
|
|
17
|
-
// Unitless, so a digit column whose font size differs from the figure's keeps its own cell height.
|
|
18
|
-
line-height: 1.2;
|
|
19
|
-
font-variant-numeric: tabular-nums;
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
}
|
|
22
|
-
.wui-rolling-number-roll {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
.wui-rolling-number[data-ready] > .wui-rolling-number-roll {
|
|
26
|
-
display: inline-flex;
|
|
27
|
-
}
|
|
28
|
-
// The text stays for assistive technology while the roll is drawn.
|
|
29
|
-
.wui-rolling-number[data-ready] > .wui-rolling-number-text {
|
|
30
|
-
position: absolute;
|
|
31
|
-
width: 1px;
|
|
32
|
-
height: 1px;
|
|
33
|
-
margin: -1px;
|
|
34
|
-
padding: 0;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
clip-path: inset(50%);
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
}
|
|
39
|
-
.wui-rolling-number-char {
|
|
40
|
-
display: inline-block;
|
|
41
|
-
vertical-align: top;
|
|
42
|
-
height: $wui-roll-cell;
|
|
43
|
-
}
|
|
44
|
-
.wui-rolling-number-digit {
|
|
45
|
-
display: inline-block;
|
|
46
|
-
vertical-align: top;
|
|
47
|
-
height: $wui-roll-cell;
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
}
|
|
50
|
-
.wui-rolling-number-reel {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
transform: translateY(calc(var(--wui-roll-digit, 0) * -#{$wui-roll-cell}));
|
|
54
|
-
> span {
|
|
55
|
-
display: block;
|
|
56
|
-
height: $wui-roll-cell;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
// Only a figure that is moving has a transition, so a still render never catches a reel mid-move.
|
|
60
|
-
.wui-rolling-number[data-rolling] .wui-rolling-number-reel {
|
|
61
|
-
transition: transform var(--wui-roll-duration, 600ms) var(--wui-ease-out);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@media (prefers-reduced-motion: reduce) {
|
|
65
|
-
.wui-rolling-number-reel {
|
|
66
|
-
transition: none;
|
|
67
|
-
}
|
|
68
|
-
}
|