@bloxwap/hig 0.7.0 → 0.8.1
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/README.md +2 -2
- package/chart/README.md +13 -2
- package/chart/dist/altimeter-burst.d.ts +4 -0
- package/chart/dist/altimeter-burst.js +43 -0
- package/chart/dist/altimeter-chart.d.ts +52 -0
- package/chart/dist/altimeter-chart.js +275 -0
- package/chart/dist/altimeter-model.d.ts +43 -0
- package/chart/dist/altimeter-model.js +148 -0
- package/chart/dist/altimeter-targets.d.ts +33 -0
- package/chart/dist/altimeter-targets.js +88 -0
- package/chart/dist/bitcoin-price.d.ts +8 -0
- package/chart/dist/bitcoin-price.js +41 -0
- package/chart/dist/champions-league.d.ts +19 -0
- package/chart/dist/champions-league.js +104 -0
- package/chart/dist/index.d.ts +6 -0
- package/chart/dist/index.js +5 -0
- package/chart/dist/outcome-chart.d.ts +37 -0
- package/chart/dist/outcome-chart.js +212 -0
- package/chart/dist/outcome-model.d.ts +43 -0
- package/chart/dist/outcome-model.js +71 -0
- package/chart/dist/plus-grid.d.ts +6 -0
- package/chart/dist/plus-grid.js +29 -0
- package/contracts/README.md +1 -1
- package/contracts/dist/avatar.d.ts +68 -0
- package/contracts/dist/avatar.js +93 -0
- package/contracts/dist/confetti.d.ts +174 -0
- package/contracts/dist/confetti.js +138 -0
- package/contracts/dist/decimal.d.ts +7 -0
- package/contracts/dist/decimal.js +35 -0
- package/contracts/dist/index.d.ts +29 -2
- package/contracts/dist/index.js +123 -4
- package/contracts/dist/invariants.d.ts +17 -0
- package/contracts/dist/invariants.js +24 -0
- package/contracts/dist/messages.d.ts +56 -2
- package/contracts/dist/messages.js +20 -2
- package/contracts/dist/number-flow.d.ts +90 -0
- package/contracts/dist/number-flow.js +150 -0
- package/contracts/dist/qr.d.ts +151 -0
- package/contracts/dist/qr.js +581 -0
- package/contracts/dist/toast.d.ts +168 -0
- package/contracts/dist/toast.js +171 -0
- package/feedback/README.md +1 -1
- package/feedback/dist/contract.js +1 -1
- package/feedback/dist/react.js +2 -4
- package/native/README.md +6 -1
- package/native/dist/account-block.d.ts +10 -1
- package/native/dist/account-block.js +17 -7
- package/native/dist/animated-number-model.d.ts +41 -1
- package/native/dist/animated-number-model.js +201 -23
- package/native/dist/animated-number.d.ts +39 -1
- package/native/dist/animated-number.js +161 -16
- package/native/dist/announce.d.ts +2 -0
- package/native/dist/announce.js +10 -0
- package/native/dist/asset-balance-row.d.ts +3 -1
- package/native/dist/asset-balance-row.js +15 -4
- package/native/dist/assets-block.d.ts +115 -0
- package/native/dist/assets-block.js +87 -0
- package/native/dist/async-result.d.ts +2 -0
- package/native/dist/async-result.js +11 -0
- package/native/dist/avatar-frame.d.ts +29 -0
- package/native/dist/avatar-frame.js +56 -0
- package/native/dist/avatar.d.ts +21 -0
- package/native/dist/avatar.js +31 -0
- package/native/dist/bar-mark.d.ts +2 -0
- package/native/dist/bar-mark.js +4 -2
- package/native/dist/bar-pnl.js +2 -1
- package/native/dist/blocks.d.ts +6 -1
- package/native/dist/blocks.js +5 -0
- package/native/dist/brand.js +2 -1
- package/native/dist/button.d.ts +7 -2
- package/native/dist/button.js +13 -3
- package/native/dist/checkbox.js +2 -1
- package/native/dist/confetti.d.ts +33 -0
- package/native/dist/confetti.js +143 -0
- package/native/dist/confirm-block.d.ts +98 -0
- package/native/dist/confirm-block.js +48 -0
- package/native/dist/data.js +2 -0
- package/native/dist/explainer-block.d.ts +91 -0
- package/native/dist/explainer-block.js +34 -0
- package/native/dist/field.d.ts +5 -1
- package/native/dist/field.js +27 -6
- package/native/dist/gesture-sheet-model.d.ts +50 -0
- package/native/dist/gesture-sheet-model.js +105 -0
- package/native/dist/gesture-sheet-next.d.ts +82 -0
- package/native/dist/gesture-sheet-next.js +315 -0
- package/native/dist/gesture-sheet.d.ts +5 -1
- package/native/dist/gesture-sheet.js +13 -6
- package/native/dist/icons.d.ts +9 -6
- package/native/dist/icons.js +25 -24
- package/native/dist/language-block.d.ts +10 -1
- package/native/dist/language-block.js +11 -4
- package/native/dist/list-group.d.ts +3 -1
- package/native/dist/list-group.js +26 -13
- package/native/dist/manage-position-block.d.ts +8 -1
- package/native/dist/manage-position-block.js +7 -2
- package/native/dist/market-row.js +19 -8
- package/native/dist/navigation.js +5 -3
- package/native/dist/number-format.d.ts +6 -0
- package/native/dist/number-format.js +9 -0
- package/native/dist/pickers.d.ts +8 -0
- package/native/dist/pickers.js +3 -3
- package/native/dist/position-block.d.ts +5 -5
- package/native/dist/preset-group.d.ts +31 -0
- package/native/dist/preset-group.js +39 -0
- package/native/dist/preset-picker-block.d.ts +107 -0
- package/native/dist/preset-picker-block.js +43 -0
- package/native/dist/profile-block.d.ts +10 -1
- package/native/dist/profile-block.js +8 -3
- package/native/dist/provider.d.ts +5 -2
- package/native/dist/provider.js +27 -5
- package/native/dist/qr-code.d.ts +33 -0
- package/native/dist/qr-code.js +29 -0
- package/native/dist/radio-group.d.ts +19 -7
- package/native/dist/radio-group.js +39 -10
- package/native/dist/reward-block.d.ts +10 -7
- package/native/dist/reward-block.js +9 -4
- package/native/dist/screen-header.d.ts +13 -3
- package/native/dist/screen-header.js +12 -4
- package/native/dist/select.js +4 -2
- package/native/dist/selection.d.ts +2 -1
- package/native/dist/selection.js +1 -0
- package/native/dist/setting-switch.d.ts +1 -1
- package/native/dist/setting-switch.js +7 -3
- package/native/dist/slider.js +5 -1
- package/native/dist/sound-haptics-block.js +1 -1
- package/native/dist/status.d.ts +41 -9
- package/native/dist/status.js +34 -17
- package/native/dist/sticky-header.js +9 -1
- package/native/dist/swap-amount-card.d.ts +57 -0
- package/native/dist/swap-amount-card.js +31 -0
- package/native/dist/swap-panel-block.d.ts +9 -3
- package/native/dist/swap-panel-block.js +59 -33
- package/native/dist/swap-parts.d.ts +3 -10
- package/native/dist/swap-parts.js +22 -24
- package/native/dist/swap-shared.d.ts +2 -2
- package/native/dist/swap-shared.js +10 -6
- package/native/dist/swap-views.js +1 -1
- package/native/dist/target-block.d.ts +7 -1
- package/native/dist/target-block.js +13 -6
- package/native/dist/toast.d.ts +47 -0
- package/native/dist/toast.js +386 -0
- package/native/dist/token-action-block.d.ts +10 -1
- package/native/dist/token-action-block.js +9 -4
- package/native/dist/trade-history-list-block.js +7 -4
- package/native/dist/wallet-address-core.js +6 -3
- package/native-fonts/README.md +1 -1
- package/og-fonts/README.md +1 -1
- package/package.json +111 -2
- package/react/README.md +3 -1
- package/react/dist/animated-number-flow.d.ts +72 -0
- package/react/dist/animated-number-flow.js +316 -0
- package/react/dist/animated-number-model.d.ts +18 -0
- package/react/dist/animated-number-model.js +75 -5
- package/react/dist/animated-number.d.ts +45 -1
- package/react/dist/animated-number.js +137 -6
- package/react/dist/asset-balance-row.d.ts +3 -1
- package/react/dist/asset-balance-row.js +10 -4
- package/react/dist/async-result.d.ts +2 -0
- package/react/dist/async-result.js +11 -0
- package/react/dist/avatar.d.ts +25 -0
- package/react/dist/avatar.js +50 -0
- package/react/dist/blocks/account-block.d.ts +5 -1
- package/react/dist/blocks/account-block.js +11 -6
- package/react/dist/blocks/assets-block.d.ts +106 -0
- package/react/dist/blocks/assets-block.js +135 -0
- package/react/dist/blocks/confirm-block.d.ts +91 -0
- package/react/dist/blocks/confirm-block.js +31 -0
- package/react/dist/blocks/explainer-block.d.ts +80 -0
- package/react/dist/blocks/explainer-block.js +20 -0
- package/react/dist/blocks/install-command.js +3 -1
- package/react/dist/blocks/language-block.d.ts +5 -1
- package/react/dist/blocks/language-block.js +4 -3
- package/react/dist/blocks/manage-position-block.d.ts +3 -1
- package/react/dist/blocks/manage-position-block.js +2 -2
- package/react/dist/blocks/market-row.js +8 -3
- package/react/dist/blocks/notifications-block.d.ts +3 -1
- package/react/dist/blocks/notifications-block.js +2 -2
- package/react/dist/blocks/pickers.d.ts +9 -0
- package/react/dist/blocks/pickers.js +4 -2
- package/react/dist/blocks/position-block.d.ts +3 -3
- package/react/dist/blocks/preset-picker-block.d.ts +85 -0
- package/react/dist/blocks/preset-picker-block.js +19 -0
- package/react/dist/blocks/profile-block.d.ts +5 -1
- package/react/dist/blocks/profile-block.js +12 -13
- package/react/dist/blocks/reward-block.d.ts +13 -8
- package/react/dist/blocks/reward-block.js +7 -4
- package/react/dist/blocks/screen-header.d.ts +10 -2
- package/react/dist/blocks/screen-header.js +7 -4
- package/react/dist/blocks/setting-switch.js +6 -3
- package/react/dist/blocks/signals-block.d.ts +3 -1
- package/react/dist/blocks/signals-block.js +4 -3
- package/react/dist/blocks/sound-haptics-block.d.ts +3 -1
- package/react/dist/blocks/sound-haptics-block.js +2 -2
- package/react/dist/blocks/sticky-header.d.ts +14 -4
- package/react/dist/blocks/sticky-header.js +68 -8
- package/react/dist/blocks/swap/settings.js +2 -1
- package/react/dist/blocks/swap/shared.d.ts +22 -22
- package/react/dist/blocks/swap/shared.js +30 -28
- package/react/dist/blocks/swap-panel-block.d.ts +10 -3
- package/react/dist/blocks/swap-panel-block.js +71 -36
- package/react/dist/blocks/target-block.d.ts +7 -1
- package/react/dist/blocks/target-block.js +10 -4
- package/react/dist/blocks/token-action-block.d.ts +5 -1
- package/react/dist/blocks/token-action-block.js +2 -2
- package/react/dist/blocks/trade-history-detail-block.d.ts +3 -1
- package/react/dist/blocks/trade-history-detail-block.js +2 -2
- package/react/dist/blocks/trade-history-list-block.d.ts +3 -1
- package/react/dist/blocks/trade-history-list-block.js +7 -4
- package/react/dist/blocks.d.ts +5 -1
- package/react/dist/blocks.js +4 -0
- package/react/dist/brand.js +2 -1
- package/react/dist/button.d.ts +9 -3
- package/react/dist/button.js +8 -3
- package/react/dist/confetti.d.ts +27 -0
- package/react/dist/confetti.js +240 -0
- package/react/dist/data.js +8 -1
- package/react/dist/field.d.ts +6 -1
- package/react/dist/field.js +18 -9
- package/react/dist/gesture-sheet.d.ts +15 -1
- package/react/dist/gesture-sheet.js +53 -8
- package/react/dist/list-group.js +11 -7
- package/react/dist/navigation.js +11 -3
- package/react/dist/overlay.d.ts +28 -3
- package/react/dist/overlay.js +29 -3
- package/react/dist/preset-group.d.ts +30 -0
- package/react/dist/preset-group.js +13 -0
- package/react/dist/provider.d.ts +2 -2
- package/react/dist/provider.js +23 -6
- package/react/dist/qr-code.d.ts +32 -0
- package/react/dist/qr-code.js +28 -0
- package/react/dist/select.js +10 -3
- package/react/dist/selection.d.ts +13 -5
- package/react/dist/selection.js +13 -8
- package/react/dist/slider.js +5 -1
- package/react/dist/status.d.ts +14 -10
- package/react/dist/status.js +17 -9
- package/react/dist/styles.css +238 -163
- package/react/dist/toast.d.ts +19 -12
- package/react/dist/toast.js +29 -7
- package/react/dist/wallet-address-core.d.ts +8 -4
- package/react/dist/wallet-address-core.js +10 -5
- package/tokens/README.md +2 -2
- package/tokens/dist/index.d.ts +16 -0
- package/tokens/dist/index.js +16 -0
- package/tokens/dist/manifest.json +8 -0
- package/tokens/dist/tokens.css +6 -0
package/react/dist/styles.css
CHANGED
|
@@ -19,23 +19,28 @@
|
|
|
19
19
|
/* Every rule is scoped to HIG classes so a host that loads this file on some routes only gets no side effects elsewhere (#95).
|
|
20
20
|
Element defaults for the whole page (box-sizing, focus ring, table, range) are opt-in: @bloxwap/hig/react/css/base. */
|
|
21
21
|
:where([class^='hig-'],[class*=' hig-'],.hig-choice input,.hig-filter-chip :is(input,span,img),.hig-segment :is(input,span),.hig-progress progress,.hig-table > * > tr > :is(th,td)) { box-sizing:border-box; }
|
|
22
|
-
.hig-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle;min-height:var(--hig-button);min-width:var(--hig-button);max-width:100%;padding:8px 20px;border:1px solid transparent;border-radius:9999px;font:600 1rem/1.5 var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);background:var(--hig-action);color:var(--hig-onAction);cursor:pointer;overflow-wrap:
|
|
22
|
+
.hig-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle;min-height:var(--hig-button);min-width:var(--hig-button);max-width:100%;padding:8px 20px;border:1px solid transparent;border-radius:9999px;font:600 1rem/1.5 var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);background:var(--hig-action);color:var(--hig-onAction);text-decoration:none;cursor:pointer;overflow-wrap:break-word; }
|
|
23
23
|
.hig-button[data-density='compact'] { padding-block:4px; }
|
|
24
24
|
.hig-button[data-intent='secondary'] { background:var(--hig-nested);color:var(--hig-text); }
|
|
25
25
|
.hig-button[data-intent='ghost'] { background:transparent;color:var(--hig-muted); }
|
|
26
26
|
.hig-button > svg,.hig-icon-button > span { display:inline-flex;align-items:center;justify-content:center;flex:none; }
|
|
27
27
|
.hig-icon-button { min-width:var(--hig-button);padding-inline:8px; }
|
|
28
|
-
.hig-button[data-intent='destructive'] { background:var(--hig-negative);color:var(--hig-background); }
|
|
28
|
+
.hig-button[data-intent='destructive'] { --hig-glow:var(--hig-negative);background:var(--hig-negative);color:var(--hig-background); }
|
|
29
|
+
/* Market-direction fills follow HIGProvider marketColors (default buy and sell), with the dark label destructive uses. */
|
|
30
|
+
.hig-button[data-intent='up'] { --hig-glow:var(--hig-up,var(--hig-buy));background:var(--hig-up,var(--hig-buy));color:var(--hig-background); }
|
|
31
|
+
.hig-button[data-intent='down'] { --hig-glow:var(--hig-down,var(--hig-sell));background:var(--hig-down,var(--hig-sell));color:var(--hig-background); }
|
|
32
|
+
.hig-button[data-intent='warning'] { --hig-glow:var(--hig-warning);background:var(--hig-warning);color:var(--hig-background); }
|
|
29
33
|
.hig-button[data-full] { width:100%; }
|
|
34
|
+
.hig-button[data-glow]:not([data-intent='secondary'],[data-intent='ghost']) { box-shadow:0 0 60px 8px color-mix(in srgb,var(--hig-glow,var(--hig-action)) 45%,transparent),0 0 120px 20px color-mix(in srgb,var(--hig-glow,var(--hig-action)) 20%,transparent); }
|
|
30
35
|
.hig-button-spinner { flex:none;width:1em;height:1em;border:2px solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;border-radius:50%;animation:hig-spin .8s linear infinite; }
|
|
31
36
|
.hig-icon-button[aria-busy='true'] > .hig-button-spinner ~ span[aria-hidden='true'] { display:none; }
|
|
32
|
-
.hig-button:disabled { cursor:default; }
|
|
37
|
+
.hig-button:is(:disabled,[aria-disabled='true']) { cursor:default; }
|
|
33
38
|
/* Unavailable is neutral: a disabled button drops its intent colour for a well fill and muted text, so a dimmed accent never reads
|
|
34
39
|
as a second call to action. Busy keeps the intent colour under its spinner. */
|
|
35
|
-
.hig-button:disabled:not([aria-busy='true']) { background:var(--hig-fill);color:var(--hig-muted); }
|
|
36
|
-
.hig-button[data-intent='ghost']:disabled:not([aria-busy='true']) { background:transparent;color:var(--hig-faint); }
|
|
40
|
+
.hig-button:is(:disabled,[aria-disabled='true']):not([aria-busy='true']) { background:var(--hig-fill);color:var(--hig-muted);box-shadow:none; }
|
|
41
|
+
.hig-button[data-intent='ghost']:is(:disabled,[aria-disabled='true']):not([aria-busy='true']) { background:transparent;color:var(--hig-faint); }
|
|
37
42
|
.hig-button[aria-busy='true'] { opacity:.7; }
|
|
38
|
-
.hig-button:active:not(:disabled) { transform:scale(.98); }
|
|
43
|
+
.hig-button:active:not(:disabled,[aria-disabled='true']) { transform:scale(.98); }
|
|
39
44
|
.hig-button { transition:transform var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,cubic-bezier(.22,1,.36,1)),filter var(--hig-motion-duration-fast) ease; }
|
|
40
45
|
:where([class^='hig-'],[class*=' hig-'],.hig-choice input,.hig-segment input):focus-visible { outline:2px solid var(--hig-focus);outline-offset:3px; }
|
|
41
46
|
.hig-stack,.hig-field,.hig-toast { display:flex;flex-direction:column;gap:var(--hig-gap);min-width:0; }
|
|
@@ -54,9 +59,16 @@
|
|
|
54
59
|
.hig-input[aria-invalid='true'] { border-color:var(--hig-negative); }
|
|
55
60
|
.hig-input[aria-invalid='true']:focus-visible { box-shadow:0 0 0 1px var(--hig-negative); }
|
|
56
61
|
textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
62
|
+
/* A prefixed input: the capsule carries the fill, stroke and ring, and the prefix sits in flow before the text. */
|
|
63
|
+
.hig-input-affix { display:flex;align-items:center;width:100%;min-width:0;border-radius:9999px;border:1px solid transparent;padding-inline-start:20px;background:var(--hig-fill); }
|
|
64
|
+
.hig-input-prefix { flex:none;color:var(--hig-muted);line-height:1.5; }
|
|
65
|
+
.hig-input-affix > input.hig-input.hig-input { min-height:calc(var(--hig-button) - 2px);border:0;padding-inline-start:4px;background:transparent;box-shadow:none;opacity:1; }
|
|
66
|
+
.hig-input-affix:has(> .hig-input:focus-visible) { border-color:var(--hig-input-ring,var(--hig-faint));box-shadow:0 0 0 1px var(--hig-input-ring,var(--hig-faint)); }
|
|
67
|
+
.hig-input-affix:has(> [aria-invalid='true']) { --hig-input-ring:var(--hig-negative);border-color:var(--hig-negative); }
|
|
68
|
+
.hig-input-affix:has(> :disabled) { opacity:.5;cursor:not-allowed; }
|
|
57
69
|
/* Text fields are as tall as a button (44 touch, 36 compact). */
|
|
58
70
|
.hig-search-input { position:relative;display:block;width:100%;min-width:0; }
|
|
59
|
-
.hig-search-icon { position:absolute;inset-inline-start:16px;inset-block-start:50%;translate:0 -50%;width:20px;height:20px;color:var(--hig-muted);pointer-events:none;fill:none;stroke:currentColor;stroke-width:
|
|
71
|
+
.hig-search-icon { position:absolute;inset-inline-start:16px;inset-block-start:50%;translate:0 -50%;width:20px;height:20px;color:var(--hig-muted);pointer-events:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
|
|
60
72
|
.hig-search-input > .hig-input { padding-inline-start:42px; }
|
|
61
73
|
.hig-field label,.hig-group legend,.hig-select-option[aria-selected='true'] { font-weight:600; }
|
|
62
74
|
.hig-field p { margin:0;color:var(--hig-muted); }
|
|
@@ -81,9 +93,14 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
81
93
|
.hig-gesture-sheet[data-hig-content-mode='default'] { overflow:auto;overscroll-behavior:contain;gap:12px;padding:24px; }
|
|
82
94
|
.hig-gesture-sheet[data-hig-content-mode='custom'] { padding:0; }
|
|
83
95
|
.hig-gesture-sheet[data-hig-dynamic='true'] { overflow:hidden;gap:0;padding:0; }
|
|
96
|
+
.hig-gesture-views { position:relative;min-width:0; }
|
|
97
|
+
.hig-gesture-view[data-leaving] { position:absolute;inset-block-start:0;inset-inline:0;pointer-events:none; }
|
|
84
98
|
.hig-gesture-dynamic { display:flex;flex-direction:column;flex:none;min-height:0;max-height:inherit; }
|
|
85
99
|
.hig-gesture-dynamic[data-hig-content-mode='default'] { overflow:auto;overscroll-behavior:contain;gap:12px;padding:24px; }
|
|
86
100
|
.hig-gesture-dynamic[data-hig-content-mode='custom'] { padding:0; }
|
|
101
|
+
/* A leaving view is out of flow and can be taller than the view replacing it. It must not make the sheet scrollable for the length of the swap: the content-sized sheet lets it show through to its own animating edge, and no scrollbar is drawn. */
|
|
102
|
+
.hig-gesture-dynamic:has(.hig-gesture-view[data-leaving]) { overflow:visible; }
|
|
103
|
+
:is(.hig-gesture-sheet,.hig-gesture-dynamic):has(.hig-gesture-view[data-leaving]) { scrollbar-width:none; }
|
|
87
104
|
/* Edge sheets pad default content past the notch and home indicator; dynamic sheets pad the inner wrapper instead.
|
|
88
105
|
Vaul directions are physical, so side insets are too. env() is 0px unless the host sets viewport-fit=cover. */
|
|
89
106
|
.hig-gesture-sheet[data-vaul-drawer-direction='bottom'][data-hig-content-mode='default']:not([data-hig-dynamic]),.hig-gesture-sheet[data-vaul-drawer-direction='bottom'] > .hig-gesture-dynamic[data-hig-content-mode='default'] { padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
|
|
@@ -91,7 +108,7 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
91
108
|
.hig-gesture-sheet:is([data-vaul-drawer-direction='left'],[data-vaul-drawer-direction='right'])[data-hig-content-mode='default']:not([data-hig-dynamic]) { padding-top:calc(24px + env(safe-area-inset-top,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
|
|
92
109
|
.hig-gesture-sheet[data-vaul-drawer-direction='left'][data-hig-content-mode='default']:not([data-hig-dynamic]) { padding-left:calc(24px + env(safe-area-inset-left,0px)); }
|
|
93
110
|
.hig-gesture-sheet[data-vaul-drawer-direction='right'][data-hig-content-mode='default']:not([data-hig-dynamic]) { padding-right:calc(24px + env(safe-area-inset-right,0px)); }
|
|
94
|
-
.hig-gesture-handle[data-vaul-handle] { flex:none;align-self:center;width:100px;height:6px;border-radius:9999px;opacity:1;background:var(--hig-action);box-shadow:0 0 12px color-mix(in srgb,var(--hig-action) 60%,transparent);margin-block:4px 12px; }
|
|
111
|
+
.hig-gesture-handle[data-vaul-handle] { flex:none;align-self:center;width:100px;height:6px;border-radius:9999px;opacity:1;background:var(--hig-action);box-shadow:0 0 12px color-mix(in srgb,var(--hig-action) 60%,transparent),0 12px 48px 12px color-mix(in srgb,var(--hig-action) 12%,transparent);margin-block:4px 12px; }
|
|
95
112
|
.hig-gesture-sheet[data-hig-motion='reduced'],.hig-gesture-backdrop[data-hig-motion='reduced'] { animation:none!important;transition:none!important; }
|
|
96
113
|
.hig-popover { max-width:min(360px,calc(100vw - 32px));max-height:var(--radix-popover-content-available-height,calc(100dvh - 32px));overflow-y:auto;overscroll-behavior:contain;background:var(--hig-nested);color:var(--hig-text);padding:12px;border:1px solid transparent;border-radius:var(--hig-radius-xl,14px);box-shadow:0 8px 24px #0006;line-height:1.5;overflow-wrap:anywhere;z-index:50; }
|
|
97
114
|
.hig-menu { min-width:min(12rem,calc(100vw - 32px));max-height:var(--radix-dropdown-menu-content-available-height,calc(100dvh - 32px));padding:4px; }
|
|
@@ -105,6 +122,22 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
105
122
|
.hig-animated-number-place { position:relative;display:inline-block; }
|
|
106
123
|
.hig-animated-number-new { display:inline-block; }
|
|
107
124
|
.hig-animated-number-old { position:absolute;inset-inline-start:0;inset-block-start:0;display:inline-block;opacity:0;pointer-events:none; }
|
|
125
|
+
/* NumberFlow. Every part is its own box so it can slide, and nothing changes how the line is laid out: at rest the figure is the
|
|
126
|
+
same boxes plain text would be. A turning place gets a window one em tall, centred on its digit, with a band above and below
|
|
127
|
+
where the digits rolling through it fade; the strip inside the window is what moves. Set --hig-number-flow-mask-height to
|
|
128
|
+
resize the band; 0 cuts hard. Nothing here transitions: the motion is additive Web Animations started by the component,
|
|
129
|
+
which draws reduced motion at once. */
|
|
130
|
+
.hig-number-flow .hig-animated-number-visual { display:inline-block;position:relative;white-space:nowrap; }
|
|
131
|
+
.hig-number-flow-core { display:inline-block;unicode-bidi:isolate; }
|
|
132
|
+
.hig-number-flow-digits { display:inline-block;position:relative; }
|
|
133
|
+
.hig-number-flow-part,.hig-number-flow-place { display:inline-block;position:relative;white-space:pre; }
|
|
134
|
+
.hig-number-flow-digit { display:inline-block; }
|
|
135
|
+
.hig-number-flow-place[data-spinning]>.hig-number-flow-digit { visibility:hidden; }
|
|
136
|
+
.hig-number-flow-window { --hig-number-flow-edge:var(--hig-number-flow-mask-height,0.15em);position:absolute;inset-inline:0;inset-block-start:50%;height:calc(1em + 2*var(--hig-number-flow-edge));margin-block-start:calc(-0.5em - var(--hig-number-flow-edge));pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,transparent,black var(--hig-number-flow-edge),black calc(100% - var(--hig-number-flow-edge)),transparent);mask-image:linear-gradient(to bottom,transparent,black var(--hig-number-flow-edge),black calc(100% - var(--hig-number-flow-edge)),transparent); }
|
|
137
|
+
.hig-number-flow-strip,.hig-number-flow-ghosts { position:absolute;inset:0;pointer-events:none; }
|
|
138
|
+
.hig-number-flow-glyph { position:absolute;inset-inline:0;inset-block-start:0;height:100%;line-height:calc(1em + 2*var(--hig-number-flow-edge));text-align:center; }
|
|
139
|
+
.hig-number-flow-ghost { position:absolute;margin:0;pointer-events:none; }
|
|
140
|
+
.hig-number-flow [data-will-change] :is(.hig-number-flow-part,.hig-number-flow-place,.hig-number-flow-strip) { will-change:transform; }
|
|
108
141
|
.hig-row { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0;padding-block:12px; }
|
|
109
142
|
.hig-data-list,.hig-list-error { display:flex;flex-direction:column;align-items:stretch;gap:var(--hig-gap);min-width:0; }
|
|
110
143
|
.hig-data-list > .hig-button,.hig-list-error > .hig-button { align-self:flex-start; }
|
|
@@ -124,8 +157,7 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
124
157
|
.hig-select-option[data-active='true'] { background:var(--hig-border); }
|
|
125
158
|
.hig-table-sort { appearance:none;display:inline-flex;align-items:center;justify-content:inherit;gap:6px;max-width:100%;min-height:var(--hig-button);margin:-6px;padding:6px;border:0;border-radius:var(--hig-radius-md,6px);background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer; }
|
|
126
159
|
.hig-table-sort-icon { flex:none; }
|
|
127
|
-
.hig-table [aria-sort='ascending'] .hig-table-sort-
|
|
128
|
-
.hig-table [aria-sort='ascending'] .hig-table-sort-down,.hig-table [aria-sort='descending'] .hig-table-sort-up { opacity:.3; }
|
|
160
|
+
.hig-table [aria-sort='ascending'] .hig-table-sort-icon,.hig-table [aria-sort='descending'] .hig-table-sort-icon,.hig-segment input:checked + span { color:var(--hig-text); }
|
|
129
161
|
.hig-table[data-sticky-header='true'] > thead > tr > th { position:sticky;inset-block-start:0;z-index:1;background:var(--hig-surface); }
|
|
130
162
|
.hig-table-state > td { padding-block:24px;color:var(--hig-muted);text-align:center; }
|
|
131
163
|
/* A host-owned command option supplies its own target, keyboard model and compact row height. */
|
|
@@ -133,34 +165,66 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
133
165
|
insets the name, which lines the row up with the content of the cards around it. */
|
|
134
166
|
.hig-market-row[data-mode='action'] { padding-inline-end:20px; }
|
|
135
167
|
.hig-market-row[data-mode='action'] .hig-button[data-intent='ghost'] { color:var(--hig-text); }
|
|
168
|
+
/* Action mode is one line: the identity (favourite, icon, then the name over its detail) holds the leading edge, the figures,
|
|
169
|
+
trailing content and check sit on the trailing edge, and the name truncates instead of wrapping. The name button is a 44px target
|
|
170
|
+
with no block padding, so a row is 56px (58px with a detail line) like the other capsule rows.
|
|
171
|
+
When the row is too narrow for everything, space is given up in this order: the name truncates down to a floor (the button keeps
|
|
172
|
+
5em, so the icon never leaves the identity and the start of the name stays readable); then whole figures drop from the end of
|
|
173
|
+
.hig-market-figures (volume, change, price): the group is one 44px line that wraps and clips, so a figure that does not fit moves to
|
|
174
|
+
the hidden second line instead of being cut (the empty ::before item lets even the first figure wrap away); then the trailing content
|
|
175
|
+
is clipped (the figures' shrink factor of 1000 makes them give up their space first; the trailing content's 6px padding keeps the
|
|
176
|
+
fraction of a pixel it gives up meanwhile, and a focus ring, inside its clip). The check always keeps its place. The identity's basis is 0 and the button has inline-size containment, so the floor is
|
|
177
|
+
the favourite + icon + 5em, not the full name. */
|
|
178
|
+
.hig-market-row[data-mode='action'] { flex-wrap:nowrap;padding-block:6px; }
|
|
179
|
+
.hig-market-row[data-mode='action'] .hig-market-identity { display:flex;align-items:center;flex:1 1 0;min-width:min-content; }
|
|
180
|
+
.hig-market-row[data-mode='action'] .hig-market-identity > .hig-button { flex:1 1 0;min-width:5em;contain:inline-size;justify-content:flex-start;padding-block:0;padding-inline-end:8px;text-align:start;overflow:hidden; }
|
|
181
|
+
.hig-market-row[data-mode='action'] :is(.hig-market-favorite,.hig-market-icon) { flex:none;display:inline-flex;align-items:center; }
|
|
182
|
+
.hig-market-row[data-mode='action'] .hig-market-icon + .hig-button { padding-inline-start:12px; }
|
|
183
|
+
.hig-market-row[data-mode='action'] .hig-market-figures { display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end;flex:0 1000 auto;min-width:0;height:var(--hig-button);margin-inline-start:-12px;overflow:hidden; }
|
|
184
|
+
.hig-market-row[data-mode='action'] .hig-market-figures::before { content:'';flex:none;width:0;height:var(--hig-button); }
|
|
185
|
+
.hig-market-row[data-mode='action'] .hig-market-figures > * { display:inline-flex;align-items:center;flex:none;height:var(--hig-button);margin-inline-start:12px;white-space:nowrap; }
|
|
186
|
+
.hig-market-row[data-mode='action'] .hig-market-trailing { flex:0 1 auto;justify-content:safe flex-end;min-width:0;padding:6px;margin:-6px;overflow:hidden;white-space:nowrap; }
|
|
187
|
+
.hig-market-row[data-mode='action'] :is(.hig-market-text,.hig-market-label,.hig-market-detail) { max-width:100%;min-width:0; }
|
|
188
|
+
.hig-market-row[data-mode='action'] :is(.hig-market-label,.hig-market-detail) { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
|
|
189
|
+
.hig-market-row[data-mode='action'] .hig-market-label { display:block; }
|
|
136
190
|
.hig-market-row[data-mode='presentation'] { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--hig-gap);padding-block:0; }
|
|
137
191
|
.hig-market-row[data-mode='presentation'][data-has-volume] { grid-template-columns:minmax(0,1fr) auto auto auto; }
|
|
138
192
|
.hig-market-row[data-mode='presentation'] .hig-market-identity { display:flex;align-items:center;gap:8px;min-width:0; }
|
|
139
193
|
.hig-market-row[data-mode='presentation'] :is(.hig-market-price,.hig-market-change,.hig-market-volume) { text-align:end; }
|
|
140
|
-
|
|
194
|
+
/* A number read like the text around it uses the interface face, still with tabular digits, not the mono face: presentation
|
|
195
|
+
market rows, the swap figures, asset and account balances, action, position, trade, profile and BarMark values, the TargetBlock
|
|
196
|
+
headline and a row value. */
|
|
197
|
+
.hig-market-row[data-mode='presentation'] .hig-number,.hig-swap-amount .hig-number,.hig-swap-pill .hig-number,.hig-swap-meta .hig-number,.hig-swap-row .hig-number,.hig-swap-fees .hig-number,.hig-swap-details .hig-number,.hig-swap-setting-value .hig-number,.hig-swap-identity .hig-number,.hig-asset-row .hig-number,.hig-account-balance .hig-number,.hig-account-section-total .hig-number,.hig-manage-action-value .hig-number,.hig-position-details dd .hig-number,.hig-target-amount .hig-number,.hig-confirm-amount .hig-number,.hig-trade-result .hig-number,.hig-trade-pnl .hig-number,.hig-trade-details .hig-number,.hig-profile-value .hig-number,.hig-bar-mark-description .hig-number,.hig-bar-mark-detail .hig-number,.hig-list-row-value .hig-number { font-family:inherit; }
|
|
141
198
|
/* Host options: a row without price or change, or with trailing content or a check, flows into as many columns as it has cells. */
|
|
142
199
|
.hig-market-row[data-mode='presentation'][data-flow] { grid-template-columns:minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto; }
|
|
143
200
|
.hig-market-row[data-mode='presentation'] .hig-market-trailing { text-align:end; }
|
|
144
|
-
.hig-market-row[data-flow] .hig-market-identity { flex:1 1 auto;min-width:0; }
|
|
201
|
+
.hig-market-row[data-mode='presentation'][data-flow] .hig-market-identity { flex:1 1 auto;min-width:0; }
|
|
145
202
|
.hig-market-text { display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:start; }
|
|
146
203
|
.hig-market-detail { font-size:.875rem;line-height:1.43;font-weight:400;color:var(--hig-muted); }
|
|
147
204
|
.hig-market-trailing { display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0; }
|
|
148
|
-
.hig-market-check { flex:none;color:var(--hig-text); }
|
|
205
|
+
.hig-market-check,.hig-asset-row-check,.hig-list-row-check,.hig-language-check { flex:none;color:var(--hig-text); }
|
|
149
206
|
.hig-market-row[data-active] { border-radius:var(--hig-radius-xl,14px);background:var(--hig-fill); }
|
|
150
207
|
.hig-market-row[data-disabled] :is(.hig-market-name,.hig-market-price,.hig-market-change,.hig-market-volume,.hig-market-trailing,.hig-market-icon) { opacity:.5; }
|
|
151
208
|
.hig-badge { display:inline-flex;align-items:center;gap:4px;width:fit-content;max-width:100%;min-width:0;padding:4px 10px;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);line-height:1.5;vertical-align:middle;overflow-wrap:anywhere; }
|
|
209
|
+
.hig-badge-dot { flex:none;width:6px;height:6px;border-radius:50%;background:currentColor; }
|
|
152
210
|
.hig-badge[data-tone='positive'] { color:var(--hig-positive);background:color-mix(in srgb,var(--hig-positive) 15%,transparent); }
|
|
153
211
|
.hig-badge[data-tone='negative'] { color:var(--hig-negative);background:color-mix(in srgb,var(--hig-negative) 15%,transparent); }
|
|
154
212
|
.hig-badge[data-tone='warning'] { color:var(--hig-warning);background:color-mix(in srgb,var(--hig-warning) 15%,transparent); }
|
|
155
213
|
.hig-badge[data-tone='info'] { color:var(--hig-info);background:color-mix(in srgb,var(--hig-info) 15%,transparent); }
|
|
156
214
|
.hig-avatar { display:inline-grid;place-items:center;width:40px;height:40px;border-radius:9999px;background:var(--hig-fill); }
|
|
215
|
+
.hig-avatar[data-square] { border-radius:0; }
|
|
216
|
+
/* A photo that is not square is cropped to the box, as on native, never stretched. */
|
|
217
|
+
img.hig-avatar { object-fit:cover; }
|
|
218
|
+
/* The generated face fills the box and is clipped to its shape here, so the drawing needs no mask of its own. */
|
|
219
|
+
.hig-avatar[data-variant='beam'] { overflow:hidden;background:none; }
|
|
220
|
+
.hig-avatar > svg { display:block;width:100%;height:100%; }
|
|
157
221
|
.hig-skeleton { width:100%;min-height:48px;background:var(--hig-fill-raised);border-radius:10px;animation:hig-pulse 1.5s ease-in-out infinite; }
|
|
158
222
|
.hig-alert,.hig-empty-state { display:flex;flex-direction:column;align-items:flex-start;gap:var(--hig-gap);overflow-wrap:anywhere;line-height:1.5; }
|
|
159
223
|
.hig-alert > :is(strong,p),.hig-empty-state > :is(h3,p) { margin:0;max-width:100%; }
|
|
160
224
|
.hig-empty-state > p,.hig-select-chevron,.hig-empty-state-icon { color:var(--hig-muted); }
|
|
161
225
|
.hig-empty-state { align-items:center;text-align:center;padding-block:var(--hig-space-xxxl,32px); }
|
|
162
226
|
.hig-empty-state-icon { display:inline-flex; }
|
|
163
|
-
.hig-empty-state-icon > svg { width:
|
|
227
|
+
.hig-empty-state-icon > svg { width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
|
|
164
228
|
.hig-alert-actions { display:flex;flex-wrap:wrap;align-items:center;gap:var(--hig-action-gap);max-width:100%; }
|
|
165
229
|
/* Severity tints the fill and colours the title from a token role: no stroke and no glow, like every other layer. The tint is
|
|
166
230
|
10% so the negative title keeps 4.5:1 on it (12% measured 4.47). The neutral
|
|
@@ -173,12 +237,15 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
173
237
|
:where(.hig-surface)[data-severity='default'] { --hig-alert-tone:var(--hig-text);background:color-mix(in srgb,var(--hig-text) 6%,var(--hig-surface)); }
|
|
174
238
|
/* A notice is one capsule row: severity symbol, message, optional action, close. */
|
|
175
239
|
.hig-toast-item { display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;min-height:var(--hig-button,44px);padding-block:5px;padding-inline:16px 5px;border:1px solid transparent;border-radius:9999px;background:var(--hig-nested);color:var(--hig-text);box-shadow:0 8px 24px #0006;font:500 1rem/1.5 var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);overflow-wrap:anywhere; }
|
|
176
|
-
.hig-toast-icon,.hig-toast-close > svg { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:
|
|
240
|
+
.hig-toast-icon,.hig-toast-close > svg { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
|
|
177
241
|
.hig-toast-icon { color:var(--hig-info); }
|
|
178
242
|
.hig-toast-item[data-severity='success'] .hig-toast-icon { color:var(--hig-positive); }
|
|
179
243
|
.hig-toast-item[data-severity='warning'] .hig-toast-icon { color:var(--hig-warning); }
|
|
180
244
|
.hig-toast-item[data-severity='error'] .hig-toast-icon { color:var(--hig-negative); }
|
|
181
245
|
.hig-toast-message { flex:1;min-width:0; }
|
|
246
|
+
/* A notice with a description is two lines tall, so its corners keep the one-line radius. */
|
|
247
|
+
.hig-toast-item[data-described] { border-radius:22px;padding-block:8px; }
|
|
248
|
+
.hig-toast-description { display:block;font-weight:400; }
|
|
182
249
|
/* Inside Sonner's fixed-width slot the capsule hugs its content and centres. */
|
|
183
250
|
[data-sonner-toast] .hig-toast-item { margin-inline:auto; }
|
|
184
251
|
.hig-toast-item .hig-button { min-height:32px;padding-block:2px; }
|
|
@@ -188,8 +255,8 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
188
255
|
.hig-toast-close::before { content:'';position:absolute;z-index:-1;inset:calc((var(--hig-button,44px) - 32px)/2);border-radius:50%; }
|
|
189
256
|
.hig-toast-close:active { color:var(--hig-text); }
|
|
190
257
|
.hig-toast-close:active::before { background:var(--hig-border); }
|
|
191
|
-
@media(prefers-reduced-motion:reduce) { .hig-button:active:not(:disabled) {transform:none;} }
|
|
192
|
-
[data-hig-motion='reduced'] .hig-button:active:not(:disabled) {transform:none;}
|
|
258
|
+
@media(prefers-reduced-motion:reduce) { .hig-button:active:not(:disabled,[aria-disabled='true']) {transform:none;} }
|
|
259
|
+
[data-hig-motion='reduced'] .hig-button:active:not(:disabled,[aria-disabled='true']) {transform:none;}
|
|
193
260
|
.hig-tabs { display:grid;gap:var(--hig-gap);min-width:0; }
|
|
194
261
|
.hig-tab-list,.hig-pagination { gap:var(--hig-action-gap); }
|
|
195
262
|
.hig-tab-list { flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:4px;margin:-4px; }
|
|
@@ -227,7 +294,7 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
227
294
|
.hig-select-trigger {text-align:start;line-height:1.5; }
|
|
228
295
|
.hig-select-trigger[aria-expanded='true'] { border-color:var(--hig-faint); }
|
|
229
296
|
.hig-select-value { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
|
|
230
|
-
.hig-select-chevron,.hig-select-check,.hig-accordion-chevron { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:
|
|
297
|
+
.hig-select-chevron,.hig-select-check,.hig-accordion-chevron { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
|
|
231
298
|
.hig-select-trigger[aria-expanded='true'] .hig-select-chevron { transform:rotate(180deg); }
|
|
232
299
|
.hig-select-list { position:fixed;inset:auto;margin:0;padding:6px;font:inherit;line-height:1.5;background:var(--hig-nested);box-shadow:0 12px 32px #0006;overflow:auto;overscroll-behavior:contain;z-index:50; }
|
|
233
300
|
/* Floating lists present with a short fade and settle from their anchor edge. */
|
|
@@ -269,9 +336,13 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
269
336
|
.hig-segment span { display:flex; justify-content:center; align-items:center; min-height:calc(var(--hig-button) - 8px); padding:2px .75rem; border-radius:9999px; color:var(--hig-muted); font-weight:500; line-height:1.5; text-align:center; overflow-wrap:anywhere; }
|
|
270
337
|
.hig-segment input:focus-visible { outline:0; }
|
|
271
338
|
|
|
339
|
+
/* PresetGroup: equal-width chips, `--hig-preset-columns` to a row, each at least a 44px target at any density. */
|
|
340
|
+
.hig-preset-group { display:grid;grid-template-columns:repeat(var(--hig-preset-columns,1),minmax(0,1fr));gap:8px;width:100%;min-width:0; }
|
|
341
|
+
.hig-preset-group > .hig-button { min-height:44px;padding-inline:8px; }
|
|
342
|
+
|
|
272
343
|
/* Filter: capsules in one row that scrolls sideways. The radio covers its capsule; the circle holds the option's image or an
|
|
273
344
|
empty ring, and fills while a check draws in when chosen. */
|
|
274
|
-
.hig-filter { display:flex;gap:var(--hig-action-gap);min-width:0;margin:-4px;padding:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none; }
|
|
345
|
+
.hig-filter { display:flex;gap:var(--hig-action-gap);min-width:0;margin:-4px calc(-4px - var(--hig-filter-bleed,0px));padding:4px calc(4px + var(--hig-filter-bleed,0px));scroll-padding-inline:var(--hig-filter-bleed,0px);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none; }
|
|
275
346
|
.hig-filter::-webkit-scrollbar { display:none; }
|
|
276
347
|
.hig-filter-chip { position:relative;flex:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding-block:6px;padding-inline:8px 16px;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);font-size:.875rem;font-weight:600;line-height:1.5;white-space:nowrap;cursor:pointer;transition:var(--hig-motion-duration-fast,180ms) ease;transition-property:background-color,color; }
|
|
277
348
|
/* 40px capsule with a 44px hit area. */
|
|
@@ -320,25 +391,6 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
320
391
|
@keyframes hig-pulse { 50% { opacity:.45; } }
|
|
321
392
|
@keyframes hig-spin { to { transform:rotate(360deg); } }
|
|
322
393
|
@keyframes hig-progress { to { background-position:-200% 0; } }
|
|
323
|
-
@media(prefers-reduced-motion:reduce) {
|
|
324
|
-
.hig-spinner-indicator,.hig-progress progress:not([value]),.hig-skeleton,.hig-status-indicator::before { animation:none; }
|
|
325
|
-
.hig-button-spinner { animation:none; }
|
|
326
|
-
.hig-progress progress::-webkit-progress-bar,.hig-progress progress:not([value])::-webkit-progress-bar { animation:none; }
|
|
327
|
-
.hig-button,.hig-switch input,.hig-switch input::before { transition:none; }
|
|
328
|
-
.hig-filter-chip,.hig-filter-mark,.hig-filter-mark > img,.hig-filter-mark path { transition:none; }
|
|
329
|
-
.hig-segment-indicator,.hig-accordion-chevron,.hig-accordion-summary,.hig-accordion::details-content { transition:none; }
|
|
330
|
-
.hig-select-list,.hig-popover { animation:none; }
|
|
331
|
-
}
|
|
332
|
-
[data-hig-motion='reduced'] :is(.hig-spinner-indicator,.hig-progress progress,.hig-skeleton) { animation:none; }
|
|
333
|
-
[data-hig-motion='reduced'] .hig-status-indicator::before { animation:none; }
|
|
334
|
-
[data-hig-motion='reduced'] .hig-button-spinner { animation:none; }
|
|
335
|
-
[data-hig-motion='reduced'] :is(.hig-accordion-chevron,.hig-accordion-summary) { transition:none; }
|
|
336
|
-
[data-hig-motion='reduced'] .hig-accordion::details-content { transition:none; }
|
|
337
|
-
[data-hig-motion='reduced'] .hig-progress progress::-webkit-progress-bar,[data-hig-motion='reduced'] .hig-progress progress:not([value])::-webkit-progress-bar { animation:none; }
|
|
338
|
-
[data-hig-motion='reduced'] .hig-button,[data-hig-motion='reduced'] .hig-switch input,[data-hig-motion='reduced'] .hig-switch input::before { transition:none; }
|
|
339
|
-
[data-hig-motion='reduced'] .hig-segment-indicator { transition:none; }
|
|
340
|
-
[data-hig-motion='reduced'] :is(.hig-filter-chip,.hig-filter-mark,.hig-filter-mark > img,.hig-filter-mark path) { transition:none; }
|
|
341
|
-
[data-hig-motion='reduced'] .hig-select-list,[data-hig-motion='reduced'].hig-popover { animation:none; }
|
|
342
394
|
@media(forced-colors:active) {
|
|
343
395
|
.hig-choice input,.hig-select select,.hig-range { appearance:auto; -webkit-appearance:auto; }
|
|
344
396
|
.hig-choice input::before,.hig-select::after { display:none; }
|
|
@@ -358,8 +410,8 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
358
410
|
@media (pointer:coarse) { :is(input,textarea,select).hig-input { font-size:max(16px,1em); } }
|
|
359
411
|
/* Touch has no hover: browsers latch :hover on the first tap. Hover styles apply only to a precise hovering pointer. */
|
|
360
412
|
@media (hover:hover) and (pointer:fine) {
|
|
361
|
-
.hig-button:hover:not(:disabled) { filter:brightness(.9); }
|
|
362
|
-
.hig-button[data-intent='ghost']:hover:not(:disabled) { background:var(--hig-nested);color:var(--hig-text);filter:none; }
|
|
413
|
+
.hig-button:hover:not(:disabled,[aria-disabled='true']) { filter:brightness(.9); }
|
|
414
|
+
.hig-button[data-intent='ghost']:hover:not(:disabled,[aria-disabled='true']) { background:var(--hig-nested);color:var(--hig-text);filter:none; }
|
|
363
415
|
.hig-tab[aria-selected='false']:hover:not(:disabled) { color:var(--hig-text);filter:none; }
|
|
364
416
|
.hig-navigation > .hig-link:hover { background:var(--hig-nested);color:var(--hig-text); }
|
|
365
417
|
.hig-table-sort:hover { color:var(--hig-text);background:var(--hig-nested); }
|
|
@@ -374,15 +426,20 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
|
|
|
374
426
|
.hig-vertical-address { display:inline-flex;flex-direction:column;flex:none;font-family:var(--hig-font-mono,'Bloxwap Mono',ui-monospace,monospace);font-size:calc(var(--hig-address-row,1.5em)*.9);line-height:var(--hig-address-row,1.5em);font-weight:500;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--hig-muted);text-align:start;white-space:pre; }
|
|
375
427
|
.hig-vertical-address > [aria-hidden] { display:flex;flex-direction:column; }
|
|
376
428
|
.hig-vertical-address [data-anchor] { font-weight:700;color:var(--hig-text); }
|
|
429
|
+
/* QRCode: a square holding one inline SVG, with the arena as an HTML box over it. `size` sets the width; host CSS may resize the square and the drawing and the arena's box scale. */
|
|
430
|
+
.hig-qr-code { position:relative;display:block;flex:none;box-sizing:border-box;width:var(--hig-qr-code-size,196px);max-width:100%;aspect-ratio:1; }
|
|
431
|
+
.hig-qr-code > svg { position:absolute;inset:0;display:block;width:100%;height:100%; }
|
|
432
|
+
.hig-qr-code-arena { position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden; }
|
|
433
|
+
.hig-qr-code-image { display:block;width:100%;height:100%;object-fit:cover; }
|
|
377
434
|
/* WalletAddress: the QR code and the address column share one height; the hint sits under both. */
|
|
378
435
|
.hig-wallet-address { appearance:none;display:inline-flex;flex-direction:column;align-items:center;gap:12px;max-width:100%;margin:0;padding:12px;border:0;border-radius:var(--hig-radius-xl,14px);background:transparent;color:var(--hig-text);font:inherit;text-align:start; }
|
|
379
|
-
button.hig-wallet-address { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
436
|
+
button.hig-wallet-address,button.hig-trade-row,button.hig-list-row,a.hig-list-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
380
437
|
button.hig-wallet-address:active { opacity:.8; }
|
|
381
438
|
.hig-wallet-address-body { display:flex;align-items:center;gap:16px;max-width:100%; }
|
|
382
439
|
.hig-wallet-address-qr { flex:none;display:block;width:var(--hig-qr);height:var(--hig-qr); }
|
|
383
|
-
.hig-wallet-address-qr > svg { display:block;width:100%;height:100%; }
|
|
440
|
+
.hig-wallet-address-qr > svg,.hig-wallet-address-qr > .hig-qr-code { display:block;width:100%;height:100%; }
|
|
384
441
|
.hig-wallet-address-hint { display:inline-flex;align-items:center;gap:8px;font-size:.875rem;line-height:1.5;color:var(--hig-muted); }
|
|
385
|
-
.hig-wallet-address-hint > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:
|
|
442
|
+
.hig-wallet-address-hint > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
|
|
386
443
|
/* SwapPanelBlock: two cards joined by a flip control. Each card is one target for its token picker; capsules and the
|
|
387
444
|
amount sit on a pass-through layer above that target and take their own presses. */
|
|
388
445
|
.hig-swap-panel { display:flex;flex-direction:column;width:100%;max-width:28rem;min-width:0;color:var(--hig-text);font-family:var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);line-height:1.5;outline:none; }
|
|
@@ -411,7 +468,6 @@ button.hig-wallet-address:active { opacity:.8; }
|
|
|
411
468
|
.hig-swap-icon { flex:none; }
|
|
412
469
|
.hig-swap-amount-content { position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 16px 20px;pointer-events:none; }
|
|
413
470
|
.hig-swap-amount { max-width:100%;border-radius:var(--hig-radius-lg,10px);font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;overflow:hidden;pointer-events:auto;cursor:text; }
|
|
414
|
-
.hig-swap-amount .hig-number,.hig-swap-pill .hig-number,.hig-swap-meta .hig-number,.hig-swap-row .hig-number,.hig-swap-fees .hig-number,.hig-swap-details .hig-number,.hig-swap-setting-value .hig-number,.hig-swap-identity .hig-number { font-family:inherit; }
|
|
415
471
|
.hig-swap-amount[data-muted] { color:var(--hig-muted);pointer-events:none; }
|
|
416
472
|
/* An account reads name over caption beside one 40px disc; a pending destination is a placeholder. */
|
|
417
473
|
.hig-swap-selected[data-account] { align-items:center; }
|
|
@@ -432,6 +488,8 @@ button.hig-wallet-address:active { opacity:.8; }
|
|
|
432
488
|
.hig-swap-note[data-tone='warning'] { --hig-swap-tone:var(--hig-warning); }
|
|
433
489
|
.hig-swap-note[data-tone='negative'] { --hig-swap-tone:var(--hig-negative); }
|
|
434
490
|
.hig-swap-panel > .hig-swap-view > .hig-swap-view-header { margin-block-end:12px; }
|
|
491
|
+
/* A titled panel draws the shared ScreenHeader, 12px above the cards as the pushed views' headers are. */
|
|
492
|
+
.hig-swap-panel > .hig-swap-view > .hig-screen-header { margin-block-end:12px; }
|
|
435
493
|
.hig-swap-view-header[data-plain] { margin-inline-start:4px;min-height:44px; }
|
|
436
494
|
/* A compact card is the slot row alone: a fixed destination with no amount. */
|
|
437
495
|
.hig-swap-card[data-compact] > .hig-swap-slot { border-radius:24px; }
|
|
@@ -463,7 +521,8 @@ button.hig-swap-receive:active { opacity:.8; }
|
|
|
463
521
|
.hig-swap-view { --hig-swap-from:24px;display:flex;flex-direction:column;min-width:0;animation:hig-swap-push var(--hig-motion-duration-base,260ms) var(--hig-motion-easing-standard,cubic-bezier(.22,1,.36,1)); }
|
|
464
522
|
.hig-swap-view[data-direction='pop'],[dir='rtl'] .hig-swap-view[data-direction='push'] { --hig-swap-from:-24px; }
|
|
465
523
|
@keyframes hig-swap-push { from { opacity:0;transform:translateX(var(--hig-swap-from)); } }
|
|
466
|
-
|
|
524
|
+
/* Every block's column: the swap views, the blocks and the AssetsBlock list. */
|
|
525
|
+
.hig-swap-picker,.hig-swap-settings-view,.hig-account-block,.hig-token-card,.hig-manage-position-block,.hig-settings-block,.hig-position-block,.hig-reward-block,.hig-trade-history-list,.hig-trade-detail,.hig-language-block,.hig-assets-block,.hig-assets-list,.hig-confirm,.hig-preset-picker,.hig-explainer { display:flex;flex-direction:column;gap:16px;min-width:0; }
|
|
467
526
|
.hig-swap-view-header { display:flex;align-items:center;gap:4px;min-width:0;margin-inline-start:-8px; }
|
|
468
527
|
.hig-swap-view-title { margin:0;min-width:0;font-size:1.5rem;line-height:1.25;font-weight:700;overflow-wrap:anywhere;outline:none; }
|
|
469
528
|
.hig-swap-back { appearance:none;flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--hig-muted);cursor:pointer; }
|
|
@@ -500,8 +559,8 @@ button.hig-swap-receive:active { opacity:.8; }
|
|
|
500
559
|
.hig-swap-chain-badge { position:absolute;inset-block-end:0;inset-inline-end:0;width:16px;height:16px;border-radius:50%;object-fit:cover;background:var(--hig-surface);box-shadow:0 0 0 2px var(--hig-background); }
|
|
501
560
|
.hig-swap-sheet .hig-swap-chain-badge { box-shadow:0 0 0 2px var(--hig-overlay,#111); }
|
|
502
561
|
.hig-swap-settings { display:flex;flex-direction:column;gap:12px;min-width:0; }
|
|
503
|
-
/* The view title already names the presets
|
|
504
|
-
.hig-swap-presets .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
|
|
562
|
+
/* The view title already names the presets, the RewardBlock tabs and the TargetBlock unit; each group keeps its legend for assistive technology only. */
|
|
563
|
+
.hig-swap-presets .hig-segmented-control > legend,.hig-reward-block .hig-segmented-control > legend,.hig-target-block .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
|
|
505
564
|
.hig-swap-setting { appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:var(--hig-control);padding:8px 16px;border:0;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);font:inherit;font-size:1rem;font-weight:600;text-align:start;cursor:pointer; }
|
|
506
565
|
.hig-swap-setting-value { display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--hig-muted); }
|
|
507
566
|
.hig-swap-fees { display:flex;flex-direction:column;gap:12px;margin:0; }
|
|
@@ -524,29 +583,27 @@ button.hig-swap-receive:active { opacity:.8; }
|
|
|
524
583
|
.hig-swap-key:hover,.hig-swap-back:hover { background:var(--hig-surface); }
|
|
525
584
|
.hig-swap-back:hover { color:var(--hig-text); }
|
|
526
585
|
}
|
|
527
|
-
@media(prefers-reduced-motion:reduce) { .hig-swap-
|
|
528
|
-
[data-hig-motion='reduced'] .hig-swap-view { animation:none; }
|
|
529
|
-
[data-hig-motion='reduced'] :is(.hig-swap-flip > *,.hig-swap-card) { transition:none; }
|
|
586
|
+
@media(prefers-reduced-motion:reduce) { .hig-swap-flip > :active { transform:none; } }
|
|
530
587
|
[data-hig-motion='reduced'] .hig-swap-flip > :active { transform:none; }
|
|
531
588
|
/* Inline prose links retain line layout (WCAG inline-text exception). */
|
|
532
589
|
p .hig-link { display:inline;min-height:0;min-width:0; }
|
|
533
590
|
.hig-input,.hig-range,.hig-menu-item,.hig-select-option,.hig-table-sort,.hig-choice,.hig-segment { min-width:var(--hig-button); }
|
|
534
591
|
|
|
535
592
|
/* AssetBalanceRow: a capsule row concentric with its 40px avatar (8px padding, 56px row, 28px end radius). */
|
|
536
|
-
.hig-asset-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
|
|
537
|
-
button.hig-asset-row { cursor:pointer; }
|
|
538
|
-
button.hig-asset-row:active { background:var(--hig-fill-raised); }
|
|
593
|
+
.hig-asset-row,.hig-trade-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
|
|
594
|
+
button.hig-asset-row,.hig-asset-row-main { cursor:pointer; }
|
|
595
|
+
button.hig-asset-row:active,.hig-asset-row:has(> .hig-asset-row-main:active:enabled) { background:var(--hig-fill-raised); }
|
|
596
|
+
.hig-asset-row-main { appearance:none;position:relative;flex:1;display:flex;align-items:center;gap:12px;min-width:0;align-self:stretch;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start; }
|
|
597
|
+
.hig-asset-row-main:disabled { cursor:default; }
|
|
539
598
|
.hig-asset-row-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.625rem;font-weight:600; }
|
|
540
|
-
.hig-asset-row-icon > img { width:100%;height:100%;object-fit:cover; }
|
|
541
|
-
.hig-asset-row-identity,.hig-asset-row-amounts { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
|
|
599
|
+
.hig-asset-row-icon > img,.hig-reward-avatar > img,.hig-trade-avatar > img,.hig-profile-artwork > img { width:100%;height:100%;object-fit:cover; }
|
|
600
|
+
.hig-asset-row-identity,.hig-asset-row-amounts,.hig-trade-row-identity,.hig-trade-row-result { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
|
|
542
601
|
.hig-asset-row-identity { flex:1;overflow-wrap:anywhere; }
|
|
543
602
|
.hig-asset-row-amounts { flex:none;align-items:flex-end;text-align:end; }
|
|
544
|
-
.hig-asset-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
|
|
545
|
-
.hig-asset-row .hig-number { font-family:inherit; }
|
|
603
|
+
.hig-asset-row strong,.hig-trade-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
|
|
546
604
|
/* A tag is a caption under the figures; the trailing slot and the selected check follow them, 12px apart like the rest of the row. */
|
|
547
605
|
.hig-asset-row-tag { font-size:.75rem;line-height:1.5;color:var(--hig-muted); }
|
|
548
606
|
.hig-asset-row-trailing { flex:none;display:flex;align-items:center;gap:8px;color:var(--hig-muted); }
|
|
549
|
-
.hig-asset-row-check { flex:none;color:var(--hig-text); }
|
|
550
607
|
/* Unavailable: the well fill stays, the text and artwork go muted, and a press does nothing. */
|
|
551
608
|
.hig-asset-row:is(:disabled,[aria-disabled='true']) { cursor:default; }
|
|
552
609
|
button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
@@ -554,7 +611,6 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
554
611
|
.hig-asset-row:is(:disabled,[aria-disabled='true']) .hig-asset-row-icon { opacity:.5; }
|
|
555
612
|
/* ScreenHeader: Back, a centred title and a trailing control, shared by the cards that are their own screen.
|
|
556
613
|
AccountBlock: that header, the total with the deposit action, then the holdings 8px apart. */
|
|
557
|
-
.hig-account-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
|
|
558
614
|
.hig-screen-header { display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:44px; }
|
|
559
615
|
.hig-screen-header-side { display:grid;place-items:center;min-width:0; }
|
|
560
616
|
.hig-screen-title { margin:0;font-size:1.0625rem;line-height:1.4;font-weight:600;text-align:center;overflow-wrap:anywhere; }
|
|
@@ -564,8 +620,8 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
564
620
|
/* stickyHeader: pinned in the nearest scroller, transparent at rest so whatever the host draws behind it shows through, and filled
|
|
565
621
|
once content scrolls under it. The script marks that moment with data-scrolled; where scroll-driven animations exist the fill
|
|
566
622
|
also follows the scroll position itself (the header's parent leaving the top of the scroller), which needs no script. */
|
|
567
|
-
.hig-screen-header[data-sticky] { position:sticky;inset-block-start:0;z-index:1;background-color:transparent;transition:background-color var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,ease); }
|
|
568
|
-
.hig-screen-header[data-sticky][data-scrolled] { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); }
|
|
623
|
+
.hig-screen-header[data-sticky],.hig-profile-bar[data-sticky] { position:sticky;inset-block-start:0;z-index:1;background-color:transparent;transition:background-color var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,ease); }
|
|
624
|
+
.hig-screen-header[data-sticky][data-scrolled],.hig-profile-bar[data-sticky][data-scrolled] { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); }
|
|
569
625
|
@keyframes hig-sticky-fill { from { background-color:transparent; } to { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); } }
|
|
570
626
|
@supports (animation-timeline:view()) {
|
|
571
627
|
:has(> .hig-screen-header[data-sticky]) { view-timeline:--hig-sticky-header block; }
|
|
@@ -573,31 +629,30 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
573
629
|
/* Not when the parent is itself the scroller (data-sticky-own): its view timeline would follow an outer scroller, so the script's data-scrolled rule fills it. */
|
|
574
630
|
.hig-screen-header[data-sticky][data-sticky-own] { animation:none; }
|
|
575
631
|
}
|
|
576
|
-
|
|
577
|
-
|
|
632
|
+
/* ProfileBlock's top bar pins the same way (with the screen header's rule above). */
|
|
633
|
+
/* No jump when it pins: a header that leads its pane sticks where it rests (--hig-sticky-inset, the padding between it and the
|
|
634
|
+
scroller's content edge, measured by the script), and its fill reaches up to the scroller's edge (--hig-sticky-cover) so content
|
|
635
|
+
does not show through above it. An inset header fills on the script's data-scrolled, which marks the moment it pins. */
|
|
636
|
+
:is(.hig-screen-header,.hig-profile-bar)[data-sticky][data-sticky-inset] { inset-block-start:var(--hig-sticky-inset,0px);animation:none; }
|
|
637
|
+
:is(.hig-screen-header,.hig-profile-bar)[data-sticky]::before { content:'';position:absolute;inset-inline:0;inset-block-end:100%;block-size:var(--hig-sticky-cover,0px);background-color:inherit;pointer-events:none; }
|
|
578
638
|
.hig-account-summary { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px; }
|
|
579
639
|
.hig-account-balance { min-width:0;font-size:2rem;line-height:1.25;font-weight:600; }
|
|
580
|
-
.hig-account-balance .hig-number { font-family:inherit; }
|
|
581
640
|
.hig-account-assets { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
|
|
582
641
|
.hig-account-sections { display:flex;flex-direction:column;gap:24px;min-width:0; }
|
|
583
|
-
.hig-account-section { display:flex;flex-direction:column;gap:8px;min-width:0; }
|
|
642
|
+
.hig-account-section,.hig-trade-notice,.hig-trade-footer,.hig-list-group { display:flex;flex-direction:column;gap:8px;min-width:0; }
|
|
584
643
|
.hig-account-section-header { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500; }
|
|
585
644
|
.hig-account-section-header > h3 { margin:0;min-width:0;font:inherit;overflow-wrap:anywhere; }
|
|
586
645
|
.hig-account-section-total { flex:none; }
|
|
587
|
-
.hig-account-section-total .hig-number { font-family:inherit; }
|
|
588
646
|
/* TokenActionBlock: header, the assets and chains bars 8px apart, then equal full-width actions 16px below. */
|
|
589
|
-
.hig-token-
|
|
590
|
-
.hig-token-bars,.hig-token-actions { display:flex;flex-direction:column;gap:8px; }
|
|
647
|
+
.hig-token-bars,.hig-token-actions,.hig-confirm-warning,.hig-setting-cards,.hig-setting-body,.hig-setting-volume,.hig-notifications-item,.hig-signals-group,.hig-reward-list { display:flex;flex-direction:column;gap:8px; }
|
|
591
648
|
.hig-token-card > .hig-token-note { margin:0; }
|
|
592
649
|
.hig-token-card > .hig-token-actions + .hig-token-note { margin-block-start:-8px; }
|
|
593
650
|
/* ManagePositionBlock: header, two bars 8px apart, action rows and the position row 16px below each other. */
|
|
594
|
-
.hig-manage-position-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
|
|
595
651
|
/* The two bars are read-only, so they sit on the page without a card, further apart than cards would be. */
|
|
596
652
|
.hig-token-card > .hig-token-bars,.hig-manage-position-block > .hig-token-bars { gap:20px;padding-inline:4px; }
|
|
597
653
|
.hig-position-side[data-side='long'],.hig-position-row [data-tone='up'] { color:var(--hig-positive); }
|
|
598
654
|
.hig-position-side[data-side='short'],.hig-position-row [data-tone='down'] { color:var(--hig-negative); }
|
|
599
655
|
/* An action row's trailing value (a resting trigger's price) is muted unless the host gives it a tone. */
|
|
600
|
-
.hig-manage-action-value .hig-number { font-family:inherit; }
|
|
601
656
|
.hig-manage-action-value[data-tone='positive'] { color:var(--hig-positive); }
|
|
602
657
|
.hig-manage-action-value[data-tone='negative'] { color:var(--hig-negative); }
|
|
603
658
|
.hig-manage-action-value[data-tone='muted'] { color:var(--hig-muted); }
|
|
@@ -607,8 +662,6 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
607
662
|
/* The caption under the position row, such as a stale or estimated result: 8 under the row, on its end inset. */
|
|
608
663
|
.hig-position-caption { margin:-8px 0 0;padding-inline:16px;color:var(--hig-muted);font-size:.8125rem;line-height:1.5; }
|
|
609
664
|
/* SoundHapticsBlock, SignalsBlock and NotificationsBlock: a header, then settings as cards 8px apart. Cards inside a list share one rounded container, 2px apart. */
|
|
610
|
-
.hig-settings-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
|
|
611
|
-
.hig-setting-cards,.hig-setting-body,.hig-setting-volume,.hig-notifications-item,.hig-signals-group { display:flex;flex-direction:column;gap:8px; }
|
|
612
665
|
.hig-setting-list { display:flex;flex-direction:column;gap:2px;border-radius:20px;overflow:hidden; }
|
|
613
666
|
.hig-setting-card { display:flex;flex-direction:column;gap:12px;padding:4px 20px;border-radius:20px;background:var(--hig-fill); }
|
|
614
667
|
.hig-setting-card:has(> .hig-setting-body) { padding-block-end:16px; }
|
|
@@ -619,7 +672,7 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
619
672
|
.hig-setting-switch[data-locked] { cursor:default; }
|
|
620
673
|
.hig-setting-switch-accessory { display:inline-flex;align-items:center;margin-inline-start:8px;vertical-align:middle; }
|
|
621
674
|
.hig-setting-hint { margin:0;padding-inline:20px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
622
|
-
.hig-settings-description { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
675
|
+
.hig-settings-description,.hig-reward-status { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
623
676
|
.hig-notifications-group { display:flex;flex-direction:column;gap:8px;margin-block-start:8px; }
|
|
624
677
|
.hig-notifications-action { margin-block-start:8px; }
|
|
625
678
|
.hig-setting-notes {display:flex;flex-direction:column;gap:4px;padding-block-end:12px; }
|
|
@@ -629,23 +682,19 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
629
682
|
.hig-setting-switch-text { flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;padding-block:calc((var(--hig-control) - 1.5em)/2);overflow-wrap:anywhere; }
|
|
630
683
|
.hig-setting-switch-description,.hig-setting-caption { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
631
684
|
.hig-setting-switch > .hig-switch { flex:none;display:inline-flex;align-items:center;justify-content:flex-end;height:var(--hig-control); }
|
|
632
|
-
.hig-setting-meter { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
|
|
685
|
+
.hig-setting-meter,.hig-reward-track { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
|
|
633
686
|
.hig-setting-meter > span { display:block;height:100%;border-radius:2px;background:var(--hig-action);transition:width var(--hig-motion-duration-fast) linear; }
|
|
634
687
|
.hig-setting-steps { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
|
|
635
688
|
.hig-setting-steps > .hig-button { padding-inline:8px; }
|
|
636
689
|
.hig-setting-error { margin:0;padding-inline:20px;color:var(--hig-negative);font-size:.875rem;line-height:1.5; }
|
|
637
690
|
.hig-signals-group-header { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--hig-button);padding-inline-start:4px; }
|
|
638
691
|
.hig-signals-group-header > h3 { display:inline-flex;align-items:center;gap:6px;min-width:0;margin:0;color:var(--hig-muted);font-size:1rem;line-height:1.5;font-weight:500; }
|
|
639
|
-
@media(prefers-reduced-motion:reduce) { .hig-setting-meter > span { transition:none; } }
|
|
640
|
-
[data-hig-motion='reduced'] .hig-setting-meter > span { transition:none; }
|
|
641
692
|
@media(forced-colors:active) { .hig-setting-meter > span { forced-color-adjust:none; } }
|
|
642
693
|
/* PositionBlock: header, the summary lines 12px apart, an optional note, then the paper trading switch and the setting groups 8px apart. */
|
|
643
|
-
.hig-position-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
|
|
644
694
|
/* The summary sits directly on the screen, with no card, on the list rows' text inset; its values use the interface face. */
|
|
645
695
|
.hig-position-details { display:flex;flex-direction:column;gap:12px;margin:0;padding-inline:20px; }
|
|
646
696
|
.hig-position-details > div { display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--hig-muted); }
|
|
647
697
|
.hig-position-details dd { margin:0;color:var(--hig-text);font-family:inherit;font-weight:500;text-align:end;overflow-wrap:anywhere; }
|
|
648
|
-
.hig-position-details dd .hig-number { font-family:inherit; }
|
|
649
698
|
.hig-position-details [data-tone='positive'] dd { color:var(--hig-positive); }
|
|
650
699
|
.hig-position-details [data-tone='negative'] dd { color:var(--hig-negative); }
|
|
651
700
|
.hig-position-details [data-tone='muted'] dd { color:var(--hig-muted); }
|
|
@@ -664,12 +713,13 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
664
713
|
.hig-position-flag-card { display:flex;flex-direction:column;background:var(--hig-fill); }
|
|
665
714
|
.hig-position-flag-action { display:flex;padding:4px 20px 16px; }
|
|
666
715
|
/* RewardBlock: header, the promotion card, the standings choice, the viewer's row on a tint, then the ranked rows 2px apart in one rounded container. */
|
|
667
|
-
.hig-reward-
|
|
668
|
-
.hig-reward-promo { display:flex;flex-direction:column;gap:12px; }
|
|
716
|
+
.hig-reward-promo,.hig-target-prices,.hig-bar-mark { display:flex;flex-direction:column;gap:12px; }
|
|
669
717
|
.hig-reward-promo > p,.hig-reward-footnote { margin:0; }
|
|
670
718
|
.hig-reward-promo-top,.hig-reward-columns { display:flex;align-items:center;justify-content:space-between;gap:12px; }
|
|
671
|
-
.hig-reward-eyebrow,.hig-reward-columns { color:var(--hig-muted);font-size:.75rem;line-height:1.33;letter-spacing:.12em;text-transform:uppercase; }
|
|
672
|
-
.hig-reward-eyebrow { min-width:0; }
|
|
719
|
+
.hig-reward-eyebrow,.hig-reward-columns,.hig-screen-eyebrow,.hig-explainer-eyebrow { color:var(--hig-muted);font-size:.75rem;line-height:1.33;letter-spacing:.12em;text-transform:uppercase; }
|
|
720
|
+
.hig-reward-eyebrow,.hig-screen-heading { min-width:0; }
|
|
721
|
+
.hig-screen-eyebrow,.hig-explainer-eyebrow { margin:0; }
|
|
722
|
+
.hig-screen-eyebrow { text-align:center; }
|
|
673
723
|
.hig-reward-rules { appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:var(--hig-button);min-width:var(--hig-button);margin-block:-12px;padding:0;border:0;background:none;color:var(--hig-muted);font:inherit;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent; }
|
|
674
724
|
.hig-reward-rules:active { color:var(--hig-text); }
|
|
675
725
|
[dir='rtl'] .hig-reward-rules > svg,[dir='rtl'] .hig-reward-action > svg { transform:scaleX(-1); }
|
|
@@ -679,7 +729,6 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
679
729
|
.hig-reward-action > svg { flex:none; }
|
|
680
730
|
.hig-reward-amount { color:var(--hig-action);font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere; }
|
|
681
731
|
.hig-reward-promo > .hig-reward-caption { margin-block-start:-8px;color:var(--hig-muted);font-size:.9375rem;line-height:1.5; }
|
|
682
|
-
.hig-reward-track { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
|
|
683
732
|
.hig-reward-track > span { display:block;height:100%;min-width:8px;border-radius:2px;background:var(--hig-action);transition:width var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
|
|
684
733
|
.hig-reward-columns > :last-child { text-align:end; }
|
|
685
734
|
.hig-reward-columns { padding-inline:4px; }
|
|
@@ -688,14 +737,11 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
688
737
|
.hig-reward-footnote { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
689
738
|
@media(hover:hover) and (pointer:fine) { .hig-reward-rules:hover,.hig-reward-action:hover { color:var(--hig-text); } }
|
|
690
739
|
.hig-reward-footnote { padding-inline:4px; }
|
|
691
|
-
.hig-reward-
|
|
692
|
-
.hig-reward-list { display:flex;flex-direction:column;gap:8px; }
|
|
693
|
-
.hig-reward-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
|
|
740
|
+
.hig-reward-rows,.hig-list-group-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
|
|
694
741
|
.hig-reward-row { display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 20px;background:var(--hig-fill); }
|
|
695
742
|
.hig-reward-you > .hig-reward-row { border-radius:20px;background:color-mix(in srgb,var(--hig-action) 12%,var(--hig-background)); }
|
|
696
743
|
.hig-reward-rank { flex:none;min-width:24px;color:var(--hig-muted);font-weight:600; }
|
|
697
744
|
.hig-reward-avatar { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600;overflow:hidden; }
|
|
698
|
-
.hig-reward-avatar > img { width:100%;height:100%;object-fit:cover; }
|
|
699
745
|
.hig-reward-identity { flex:1;display:flex;flex-direction:column;min-width:0; }
|
|
700
746
|
.hig-reward-identity > strong { display:flex;align-items:center;gap:6px;font-weight:600;overflow-wrap:anywhere; }
|
|
701
747
|
.hig-reward-identity > span { color:var(--hig-muted);font-size:.875rem; }
|
|
@@ -703,58 +749,49 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
|
|
|
703
749
|
.hig-reward-score { flex:none;font-weight:600; }
|
|
704
750
|
.hig-reward-row[data-you] :is(.hig-reward-identity > strong,.hig-reward-score) { color:var(--hig-action); }
|
|
705
751
|
a.hig-reward-rules,a.hig-reward-action { text-decoration:none; }
|
|
706
|
-
.hig-reward-status { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
707
752
|
.hig-reward-skeleton { min-height:64px;border-radius:20px; }
|
|
708
753
|
.hig-reward-pagination { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px; }
|
|
709
754
|
.hig-reward-pagination > :first-child { justify-self:start; }
|
|
710
755
|
.hig-reward-pagination > :last-child { justify-self:end; }
|
|
711
756
|
.hig-reward-page { color:var(--hig-muted);font-size:.875rem;text-align:center; }
|
|
712
|
-
@media(prefers-reduced-motion:reduce) { .hig-reward-track > span { transition:none; } }
|
|
713
|
-
[data-hig-motion='reduced'] .hig-reward-track > span { transition:none; }
|
|
714
757
|
@media(forced-colors:active) { .hig-reward-track > span { forced-color-adjust:none; } }
|
|
715
758
|
/* TargetBlock: header, the target as the headline figure, the price card, then the unit, the custom row, the quick choices and the
|
|
716
759
|
actions 16px below each other. The bar is a price axis: the tinted stretch is what the price still has to travel to the trigger. */
|
|
717
760
|
.hig-target-block { display:flex;flex-direction:column;gap:16px;min-width:0;--hig-target-tone:var(--hig-positive); }
|
|
718
|
-
.hig-target-block[data-kind='stop-loss'] { --hig-target-tone:var(--hig-negative); }
|
|
761
|
+
.hig-target-block[data-kind='stop-loss'],.hig-preset-picker[data-intent='destructive'] { --hig-target-tone:var(--hig-negative);--hig-target-fill:var(--hig-negative);--hig-target-on-fill:var(--hig-background); }
|
|
719
762
|
/* The headline figure matches the SwapPanel amount: the same size and the interface face, not the mono face. */
|
|
720
763
|
.hig-target-amount { margin:0;font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-align:center;overflow-wrap:anywhere; }
|
|
721
|
-
.hig-target-
|
|
722
|
-
.hig-target-
|
|
723
|
-
.hig-target-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
|
|
724
|
-
.hig-target-rest,.hig-target-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
|
|
764
|
+
.hig-target-bar,.hig-bar-pnl-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
|
|
765
|
+
.hig-target-rest,.hig-target-move,.hig-bar-mark-segment,.hig-bar-mark-rest,.hig-bar-pnl-rest,.hig-bar-pnl-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
|
|
725
766
|
.hig-target-rest { background:var(--hig-fill-raised); }
|
|
726
|
-
.hig-target-move { box-sizing:border-box;min-width:6px;background:var(--hig-target-tone);border-inline:3px solid var(--hig-text); }
|
|
767
|
+
.hig-target-move { box-sizing:border-box;min-width:6px;background:color-mix(in srgb,var(--hig-target-tone) calc(var(--hig-bar-fill-opacity,.5)*100%),transparent);border-inline:3px solid var(--hig-text); }
|
|
727
768
|
.hig-target-move[data-lead='trigger'] { border-inline-start-color:var(--hig-target-tone); }
|
|
728
769
|
.hig-target-move[data-lead='start'] { border-inline-end-color:var(--hig-target-tone); }
|
|
729
770
|
.hig-target-prices [data-price='trigger'] dd { color:var(--hig-target-tone); }
|
|
730
771
|
.hig-target-info { position:relative;display:inline-flex; }
|
|
731
772
|
.hig-target-popover { position:absolute;inset-block-start:calc(100% + 4px);inset-inline-end:0;width:max-content;max-width:min(280px,calc(100vw - 48px));font-size:.875rem;font-weight:400;text-align:start; }
|
|
732
773
|
.hig-target-note { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5;text-align:center; }
|
|
733
|
-
.hig-target-
|
|
734
|
-
|
|
735
|
-
.hig-
|
|
736
|
-
|
|
737
|
-
.hig-target-block .hig-swap-setting[aria-pressed='true']
|
|
738
|
-
.hig-target-block .hig-swap-setting[aria-pressed='true']
|
|
774
|
+
.hig-target-actions,.hig-confirm-actions { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
|
|
775
|
+
/* The Custom row holding the host's value reads as the selected choice: filled like a selected quick choice, the value on its trailing
|
|
776
|
+
edge. Its (0,3,0) selector outranks the base `.hig-swap-setting:hover` and `:active` fills (0,2,0), so press and hover only darken it. */
|
|
777
|
+
:is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true'] { background:var(--hig-target-fill,var(--hig-action));color:var(--hig-target-on-fill,var(--hig-onAction)); }
|
|
778
|
+
:is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true'] > .hig-swap-setting-value { color:inherit; }
|
|
779
|
+
:is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true']:active { filter:brightness(.9); }
|
|
780
|
+
@media(hover:hover) and (pointer:fine) { :is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true']:hover { filter:brightness(.9); } }
|
|
739
781
|
/* The info button beside a host header control: both sides of the header widen together so the title stays centred. */
|
|
740
782
|
.hig-target-header-actions { display:inline-flex;align-items:center;gap:4px; }
|
|
741
783
|
.hig-target-block > .hig-screen-header:has(.hig-target-header-actions) { grid-template-columns:92px minmax(0,1fr) 92px; }
|
|
742
784
|
.hig-target-block > .hig-screen-header:has(.hig-target-header-actions) > .hig-screen-header-side:first-child { justify-items:start; }
|
|
743
785
|
.hig-target-block > .hig-screen-header:has(.hig-target-header-actions) > .hig-screen-header-side:last-child { justify-items:end; }
|
|
744
|
-
@media(prefers-reduced-motion:reduce) { .hig-target-rest,.hig-target-move { transition:none; } }
|
|
745
|
-
[data-hig-motion='reduced'] .hig-target-rest,[data-hig-motion='reduced'] .hig-target-move { transition:none; }
|
|
746
786
|
@media(forced-colors:active) { .hig-target-move { forced-color-adjust:none; } }
|
|
747
787
|
/* TradeHistoryListBlock: a header, then one capsule row per closed trade, 8px apart.
|
|
748
788
|
TradeHistoryDetailBlock: header, the asset row, the result and the figures 8px apart, then the actions in one row 16px below. */
|
|
749
|
-
.hig-trade-history-list {
|
|
789
|
+
.hig-trade-history-list,.hig-language-block,.hig-assets-block { color:var(--hig-text); }
|
|
790
|
+
.hig-assets-block { --hig-filter-bleed:16px; }
|
|
750
791
|
.hig-trade-rows { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
|
|
751
|
-
.hig-trade-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
|
|
752
|
-
button.hig-trade-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
753
792
|
button.hig-trade-row:active { background:var(--hig-fill-raised); }
|
|
754
|
-
.hig-trade-row-identity,.hig-trade-row-result { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
|
|
755
793
|
.hig-trade-row-identity { flex:1;overflow-wrap:anywhere; }
|
|
756
794
|
.hig-trade-row-result { flex:none;align-items:flex-end;text-align:end; }
|
|
757
|
-
.hig-trade-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
|
|
758
795
|
.hig-trade-row-side { display:inline-flex;align-items:center;gap:4px;font-weight:600; }
|
|
759
796
|
.hig-trade-row-side[data-side='long'] { color:var(--hig-up,var(--hig-buy)); }
|
|
760
797
|
.hig-trade-row-side[data-side='short'] { color:var(--hig-down,var(--hig-sell)); }
|
|
@@ -766,9 +803,9 @@ button.hig-trade-row:active { background:var(--hig-fill-raised); }
|
|
|
766
803
|
.hig-trade-row-tag { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
|
|
767
804
|
.hig-trade-skeleton { min-height:56px;border-radius:28px; }
|
|
768
805
|
.hig-trade-error { color:var(--hig-negative); }
|
|
806
|
+
.hig-trade-history-list>.hig-swap-empty { padding-bottom:0; }
|
|
769
807
|
.hig-trade-empty-title,.hig-trade-empty-description { display:block; }
|
|
770
808
|
.hig-trade-empty-title { color:var(--hig-text);font-weight:600; }
|
|
771
|
-
.hig-trade-notice,.hig-trade-footer { display:flex;flex-direction:column;gap:8px;min-width:0; }
|
|
772
809
|
.hig-trade-note { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
773
810
|
.hig-screen-badge { font-size:.75rem;line-height:1.33;font-weight:600;vertical-align:middle; }
|
|
774
811
|
.hig-trade-row-chevron { flex:none;color:var(--hig-muted); }
|
|
@@ -778,22 +815,18 @@ button.hig-trade-row:active { background:var(--hig-fill-raised); }
|
|
|
778
815
|
.hig-trade-pnl[data-tone='down'],.hig-trade-result[data-tone='down'] :is(.hig-trade-figure,.hig-trade-return) { color:var(--hig-down,var(--hig-sell)); }
|
|
779
816
|
.hig-trade-side[data-side='long'] { color:var(--hig-up,var(--hig-buy)); }
|
|
780
817
|
.hig-trade-side[data-side='short'] { color:var(--hig-down,var(--hig-sell)); }
|
|
781
|
-
.hig-trade-detail { display:flex;flex-direction:column;gap:16px;min-width:0; }
|
|
782
818
|
.hig-trade-summary { display:flex;flex-direction:column;gap:20px;padding-inline:4px; }
|
|
783
819
|
.hig-trade-side { font-weight:600;text-transform:uppercase; }
|
|
784
820
|
.hig-trade-result { display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center; }
|
|
785
821
|
.hig-trade-identity { display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;color:var(--hig-muted); }
|
|
786
822
|
.hig-trade-identity > strong { color:var(--hig-text);font-weight:600; }
|
|
787
823
|
.hig-trade-avatar { flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--hig-fill);color:var(--hig-muted);font-size:.5625rem;font-weight:600;overflow:hidden; }
|
|
788
|
-
.hig-trade-avatar > img { width:100%;height:100%;object-fit:cover; }
|
|
789
824
|
.hig-trade-figure { font-size:clamp(2rem,10vw,2.5rem);line-height:1.2;font-weight:700;overflow-wrap:anywhere; }
|
|
790
825
|
.hig-trade-return { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
|
|
791
|
-
.hig-trade-result .hig-number,.hig-trade-pnl .hig-number { font-family:inherit; }
|
|
792
826
|
.hig-trade-details { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:0; }
|
|
793
827
|
.hig-trade-details > div { display:flex;flex-direction:column;gap:2px;min-width:0; }
|
|
794
828
|
.hig-trade-details dt { color:var(--hig-muted);font-size:.75rem;line-height:1.33; }
|
|
795
829
|
.hig-trade-details dd { margin:0;font-weight:600;overflow-wrap:anywhere; }
|
|
796
|
-
.hig-trade-details .hig-number { font-family:inherit; }
|
|
797
830
|
.hig-trade-actions { display:flex;gap:var(--hig-action-gap); }
|
|
798
831
|
.hig-trade-actions > * { flex:1 1 0;min-width:0; }
|
|
799
832
|
/* ProfileBlock: a top bar, the avatar with its status dot, the name, then list groups 24px apart. */
|
|
@@ -802,7 +835,6 @@ button.hig-trade-row:active { background:var(--hig-fill-raised); }
|
|
|
802
835
|
.hig-profile-identity { display:flex;flex-direction:column;align-items:center;gap:16px;margin-block-start:-16px; }
|
|
803
836
|
.hig-profile-avatar { position:relative;display:block;width:144px;height:144px;border-radius:50%;background:var(--hig-fill); }
|
|
804
837
|
.hig-profile-artwork { display:grid;place-items:center;width:100%;height:100%;border-radius:50%;overflow:hidden;color:var(--hig-muted);font-size:2.5rem;font-weight:600; }
|
|
805
|
-
.hig-profile-artwork > img { width:100%;height:100%;object-fit:cover; }
|
|
806
838
|
.hig-profile-status { position:absolute;inset-block-start:10px;inset-inline-end:10px;width:20px;height:20px;border-radius:50%;background:var(--hig-warning);box-shadow:0 0 0 3px var(--hig-background); }
|
|
807
839
|
.hig-profile-status[data-tone='positive'] { background:var(--hig-positive); }
|
|
808
840
|
.hig-profile-status[data-tone='negative'] { background:var(--hig-negative); }
|
|
@@ -818,59 +850,30 @@ button.hig-profile-artwork:active { opacity:.85; }
|
|
|
818
850
|
.hig-profile-value[data-tone='warning'] { color:var(--hig-warning); }
|
|
819
851
|
.hig-profile-value[data-tone='negative'] { color:var(--hig-negative); }
|
|
820
852
|
.hig-profile-value[data-tone='muted'] { color:var(--hig-muted); }
|
|
821
|
-
.hig-profile-value .hig-number { font-family:inherit; }
|
|
822
853
|
.hig-profile-block .hig-list-row:has(> .hig-list-row-trailing .hig-switch):not([aria-disabled='true']) { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
823
854
|
.hig-profile-footer { min-width:0; }
|
|
824
855
|
/* BarMark: one bar divided among its elements. Segments are flex shares of the bar with a 2px gap that shows the card, and the
|
|
825
856
|
remainder of a larger total is an empty track segment. Colours come from tone roles (or a host colour) through one custom property. */
|
|
826
|
-
.hig-bar-mark { display:flex;flex-direction:column;gap:12px; }
|
|
827
857
|
.hig-bar-mark-header { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px; }
|
|
828
858
|
.hig-bar-mark-title { font-weight:600;min-width:0; }
|
|
829
859
|
.hig-bar-mark-description { color:var(--hig-muted);font-size:.875rem;text-align:end;min-width:0; }
|
|
830
|
-
.hig-bar-mark-description .hig-number { font-family:inherit; }
|
|
831
860
|
.hig-bar-mark-bar { display:flex;gap:2px;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
|
|
832
861
|
.hig-bar-mark[data-size='small'] > .hig-bar-mark-bar { height:12px;border-radius:6px; }
|
|
833
|
-
.hig-bar-mark-segment
|
|
834
|
-
.hig-bar-mark-segment { min-width:3px;background:var(--hig-bar-mark-color,var(--hig-muted)); }
|
|
862
|
+
.hig-bar-mark-segment { min-width:3px;background:color-mix(in srgb,var(--hig-bar-mark-color,var(--hig-muted)) calc(var(--hig-bar-fill-opacity,.5)*100%),transparent); }
|
|
835
863
|
.hig-bar-mark-rest { background:var(--hig-fill-raised); }
|
|
836
864
|
.hig-bar-mark-legend { display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;padding:0;list-style:none;color:var(--hig-muted);font-size:.875rem; }
|
|
837
865
|
.hig-bar-mark-legend > li { display:inline-flex;align-items:center;gap:6px;min-width:0; }
|
|
838
866
|
.hig-bar-mark-dot { flex:none;width:8px;height:8px;border-radius:9999px;background:var(--hig-bar-mark-color,var(--hig-muted)); }
|
|
839
867
|
.hig-bar-mark-detail { color:var(--hig-faint); }
|
|
840
|
-
.hig-bar-mark-detail .hig-number { font-family:inherit; }
|
|
841
868
|
.hig-bar-mark [data-tone='positive'] { --hig-bar-mark-color:var(--hig-positive); }
|
|
842
869
|
.hig-bar-mark [data-tone='info'] { --hig-bar-mark-color:var(--hig-info); }
|
|
843
870
|
.hig-bar-mark [data-tone='warning'] { --hig-bar-mark-color:var(--hig-warning); }
|
|
844
871
|
.hig-bar-mark [data-tone='negative'] { --hig-bar-mark-color:var(--hig-negative); }
|
|
845
872
|
.hig-bar-mark [data-tone='muted'] { --hig-bar-mark-color:var(--hig-muted); }
|
|
846
873
|
.hig-bar-mark [data-tone='faint'] { --hig-bar-mark-color:var(--hig-faint); }
|
|
847
|
-
@media(prefers-reduced-motion:reduce) { .hig-bar-mark-segment,.hig-bar-mark-rest { transition:none; } }
|
|
848
|
-
[data-hig-motion='reduced'] .hig-bar-mark-segment,[data-hig-motion='reduced'] .hig-bar-mark-rest { transition:none; }
|
|
849
874
|
@media(forced-colors:active) { .hig-bar-mark-segment,.hig-bar-mark-dot { forced-color-adjust:none; } }
|
|
850
|
-
/* Reduced-motion stops for the selectors above, one per animated or transitioned selector in each preference path
|
|
851
|
-
(tests/motion-css.test.ts). Elements portalled out of the provider carry data-hig-motion themselves and are stopped where they are styled. */
|
|
852
|
-
@media(prefers-reduced-motion:reduce) {
|
|
853
|
-
.hig-accordion > .hig-accordion-summary { transition:none; }
|
|
854
|
-
.hig-status-indicator:is([data-state='online'],[data-state='stale'])::before { animation:none; }
|
|
855
|
-
}
|
|
856
|
-
[data-hig-motion='reduced'] .hig-accordion > .hig-accordion-summary { transition:none; }
|
|
857
|
-
[data-hig-motion='reduced'] .hig-accordion-chevron { transition:none; }
|
|
858
|
-
[data-hig-motion='reduced'] .hig-filter-chip { transition:none; }
|
|
859
|
-
[data-hig-motion='reduced'] .hig-filter-mark { transition:none; }
|
|
860
|
-
[data-hig-motion='reduced'] .hig-filter-mark > img { transition:none; }
|
|
861
|
-
[data-hig-motion='reduced'] .hig-filter-mark path { transition:none; }
|
|
862
|
-
[data-hig-motion='reduced'] .hig-swap-card { transition:none; }
|
|
863
|
-
[data-hig-motion='reduced'] .hig-swap-flip > * { transition:none; }
|
|
864
|
-
[data-hig-motion='reduced'] .hig-skeleton { animation:none; }
|
|
865
|
-
[data-hig-motion='reduced'] .hig-popover { animation:none; }
|
|
866
|
-
[data-hig-motion='reduced'] .hig-progress progress:not([value]) { animation:none; }
|
|
867
|
-
[data-hig-motion='reduced'] .hig-spinner-indicator { animation:none; }
|
|
868
|
-
[data-hig-motion='reduced'] .hig-status-indicator:is([data-state='online'],[data-state='stale'])::before { animation:none; }
|
|
869
|
-
.hig-list-group { display:flex;flex-direction:column;gap:8px;min-width:0; }
|
|
870
875
|
.hig-list-group-title { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500; }
|
|
871
|
-
.hig-list-group-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
|
|
872
876
|
.hig-list-row { appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:4px 20px;border:0;border-radius:0;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start;text-decoration:none; }
|
|
873
|
-
button.hig-list-row,a.hig-list-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
874
877
|
button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-raised); }
|
|
875
878
|
.hig-list-row:focus-visible { outline:2px solid var(--hig-focus,var(--hig-text));outline-offset:-2px; }
|
|
876
879
|
.hig-list-row:disabled,.hig-list-row[aria-disabled='true'] { cursor:default;opacity:.5; }
|
|
@@ -899,7 +902,6 @@ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-rai
|
|
|
899
902
|
.hig-list-row:has(> .hig-list-row-trailing .hig-switch) > .hig-list-row-text { padding-block:calc((48px - 1.5em)/2); }
|
|
900
903
|
.hig-list-row-label[data-tone='destructive'] { color:var(--hig-negative); }
|
|
901
904
|
.hig-list-row-label[data-tone='muted'] { color:var(--hig-muted); }
|
|
902
|
-
.hig-list-row-check { flex:none;color:var(--hig-text); }
|
|
903
905
|
.hig-list-row-spinner { margin:2px;color:var(--hig-muted); }
|
|
904
906
|
.hig-list-row[aria-busy='true'] { cursor:progress; }
|
|
905
907
|
.hig-list-row[data-switch]:not([aria-disabled='true']) { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
@@ -918,17 +920,15 @@ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-rai
|
|
|
918
920
|
.hig-search-input[data-trailing] > .hig-input::-webkit-search-cancel-button { display:none;-webkit-appearance:none; }
|
|
919
921
|
.hig-search-trailing { position:absolute;inset-block:0;inset-inline-end:0;display:flex;align-items:center;gap:4px; }
|
|
920
922
|
.hig-search-clear { appearance:none;position:relative;display:grid;place-items:center;min-width:var(--hig-button,44px);height:100%;margin:0;padding:0;border:0;border-radius:9999px;background:transparent;color:var(--hig-muted);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
921
|
-
.hig-search-clear > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:
|
|
923
|
+
.hig-search-clear > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round; }
|
|
922
924
|
.hig-search-clear:active:not(:disabled) { color:var(--hig-text); }
|
|
923
925
|
.hig-search-clear:disabled { opacity:.5;cursor:not-allowed; }
|
|
924
926
|
.hig-bar-pnl { display:flex;flex-direction:column;gap:12px;--hig-bar-pnl-tone:var(--hig-muted); }
|
|
925
927
|
/* The result follows the market direction roles (HIGProvider marketColors), which default to buy and sell. */
|
|
926
928
|
.hig-bar-pnl[data-result='profit'] { --hig-bar-pnl-tone:var(--hig-up,var(--hig-buy)); }
|
|
927
929
|
.hig-bar-pnl[data-result='loss'] { --hig-bar-pnl-tone:var(--hig-down,var(--hig-sell)); }
|
|
928
|
-
.hig-bar-pnl-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
|
|
929
|
-
.hig-bar-pnl-rest,.hig-bar-pnl-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
|
|
930
930
|
.hig-bar-pnl-rest { background:var(--hig-fill-raised); }
|
|
931
|
-
.hig-bar-pnl-move { box-sizing:border-box;min-width:6px;background:var(--hig-bar-pnl-tone);border-inline:3px solid var(--hig-text); }
|
|
931
|
+
.hig-bar-pnl-move { box-sizing:border-box;min-width:6px;background:color-mix(in srgb,var(--hig-bar-pnl-tone) calc(var(--hig-bar-fill-opacity,.5)*100%),transparent);border-inline:3px solid var(--hig-text); }
|
|
932
932
|
.hig-bar-pnl-move[data-lead='mark'] { border-inline-start-color:var(--hig-bar-pnl-tone); }
|
|
933
933
|
.hig-bar-pnl-move[data-lead='entry'] { border-inline-end-color:var(--hig-bar-pnl-tone); }
|
|
934
934
|
.hig-bar-pnl-liquidation { position:absolute;inset-block:0;width:3px;margin-inline-start:-1.5px;background:var(--hig-negative);transition:inset-inline-start var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
|
|
@@ -943,22 +943,97 @@ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-rai
|
|
|
943
943
|
.hig-bar-pnl-readouts [data-kind='liquidation'] dd { color:var(--hig-negative); }
|
|
944
944
|
.hig-bar-pnl-readouts [data-kind='mark'] dd { color:var(--hig-bar-pnl-tone); }
|
|
945
945
|
.hig-bar-pnl[data-result='flat'] [data-kind='mark'] dd { color:var(--hig-text); }
|
|
946
|
-
@media(prefers-reduced-motion:reduce) { .hig-bar-pnl-rest,.hig-bar-pnl-move,.hig-bar-pnl-liquidation { transition:none; } }
|
|
947
|
-
[data-hig-motion='reduced'] .hig-bar-pnl-rest,[data-hig-motion='reduced'] .hig-bar-pnl-move,[data-hig-motion='reduced'] .hig-bar-pnl-liquidation { transition:none; }
|
|
948
946
|
@media(forced-colors:active) { .hig-bar-pnl-move,.hig-bar-pnl-liquidation { forced-color-adjust:none; } }
|
|
949
|
-
|
|
950
|
-
.hig-language-list { display:flex;flex-direction:column;gap:4px;min-width:0; }
|
|
951
|
-
.hig-language-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px 16px 8px 8px;border:0;border-radius:9999px;background:transparent;color:var(--hig-text);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
952
|
-
.hig-
|
|
953
|
-
.hig-language-
|
|
954
|
-
.hig-language-flag
|
|
955
|
-
.hig-language-
|
|
956
|
-
.hig-language-text
|
|
957
|
-
.hig-language-
|
|
958
|
-
|
|
959
|
-
|
|
947
|
+
/* LanguageBlock and AssetsBlock (header, search, category capsules and views over markets in sections by category) share their rows: an avatar, the name over a muted line, a trailing mark. */
|
|
948
|
+
.hig-language-list,.hig-assets-section { display:flex;flex-direction:column;gap:4px;min-width:0; }
|
|
949
|
+
.hig-language-row,.hig-assets-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px 16px 8px 8px;border:0;border-radius:9999px;background:transparent;color:var(--hig-text);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
|
|
950
|
+
.hig-assets-row { position:relative;min-height:64px;padding:8px; }
|
|
951
|
+
.hig-language-row:active,.hig-language-row[data-active='true'],.hig-assets-row:active,.hig-assets-row[aria-current='true'],.hig-assets-row[data-active] { background:var(--hig-fill); }
|
|
952
|
+
.hig-language-flag,.hig-assets-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600; }
|
|
953
|
+
.hig-language-flag > :is(img,svg),.hig-assets-icon > :is(img,svg) { width:100%;height:100%;object-fit:cover; }
|
|
954
|
+
.hig-language-text,.hig-assets-text { flex:1;display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted);overflow-wrap:anywhere; }
|
|
955
|
+
.hig-language-text > strong,.hig-assets-text > strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
|
|
956
|
+
/* A market row is one line each: the name and the symbol line truncate. */
|
|
957
|
+
.hig-assets-text > * { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
|
|
958
|
+
.hig-language-row:disabled,.hig-assets-row:disabled { opacity:.5;cursor:not-allowed; }
|
|
959
|
+
@media(hover:hover) and (pointer:fine) { .hig-language-row:not(:disabled):hover,.hig-assets-row:not(:disabled):hover { background:var(--hig-fill); } .hig-assets-row:not(:disabled):hover .hig-assets-signal:not([data-signal]) { background:var(--hig-fill-raised); } }
|
|
960
|
+
.hig-assets-section > ul { display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none; }
|
|
961
|
+
.hig-assets-section-header { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;padding-inline:8px; }
|
|
962
|
+
.hig-assets-section-header > h3 { margin:0;min-width:0;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500;overflow-wrap:anywhere; }
|
|
963
|
+
.hig-confirm-amount { margin:0;font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-align:center;overflow-wrap:anywhere; }
|
|
964
|
+
.hig-confirm-symbol { font-size:.5em;font-weight:600;letter-spacing:0;color:var(--hig-muted); }
|
|
965
|
+
.hig-confirm-details { display:flex;flex-direction:column;gap:12px;margin:0;padding-inline:4px; }
|
|
966
|
+
.hig-confirm-details > div { display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--hig-muted); }
|
|
967
|
+
.hig-confirm-details dd { margin:0;color:var(--hig-text);font-weight:500;text-align:end;overflow-wrap:anywhere; }
|
|
968
|
+
/* oneLineDetails: the lines after the address keep the label whole and truncate the value. */
|
|
969
|
+
.hig-confirm-details[data-one-line] > div + div > dt { flex:none; }
|
|
970
|
+
.hig-confirm-details[data-one-line] > div + div > dd { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
|
|
971
|
+
.hig-confirm-address { display:inline-flex;font-family:var(--hig-font-mono,'Bloxwap Mono',ui-monospace,monospace);color:var(--hig-muted);text-align:start;white-space:pre; }
|
|
972
|
+
.hig-confirm-address > [aria-hidden] { display:flex;flex-direction:column; }
|
|
973
|
+
.hig-confirm-address [data-anchor] { font-weight:700;color:var(--hig-text); }
|
|
974
|
+
.hig-confirm-warning { padding:20px;border-radius:20px;background:color-mix(in srgb,var(--hig-warning) 16%,transparent); }
|
|
975
|
+
.hig-confirm-warning > strong { font-size:1.5rem;line-height:1.25;font-weight:700;color:var(--hig-warning); }
|
|
976
|
+
.hig-confirm-warning > p { margin:0;line-height:1.5; }
|
|
977
|
+
.hig-confirm-body { display:flex;flex-direction:column;gap:12px;min-width:0; }
|
|
978
|
+
.hig-confirm-body > * { margin:0; }
|
|
979
|
+
.hig-confirm-points { display:flex;flex-direction:column;gap:8px;padding-inline-start:20px;list-style:disc;color:var(--hig-muted);line-height:1.5; }
|
|
980
|
+
.hig-confirm-tertiary { margin-top:-8px; }
|
|
981
|
+
.hig-confirm-tertiary[data-tone='destructive']:not(:disabled) { color:var(--hig-negative); }
|
|
982
|
+
/* ExplainerBlock: sections on the neutral fill, or tinted 10% in their tone with a 15% disc and the heading in the tone. */
|
|
983
|
+
.hig-explainer-sections,.hig-explainer-section > div { display:flex;flex-direction:column;gap:12px;min-width:0; }
|
|
984
|
+
.hig-explainer-section > div { flex:1;gap:4px; }
|
|
985
|
+
.hig-explainer-section { --hig-explainer-tone:var(--hig-text);display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:var(--hig-fill); }
|
|
986
|
+
/* Icon rows: 20px disc radius + 12px inset. */
|
|
987
|
+
.hig-explainer-section:has(> .hig-explainer-icon) { border-radius:32px;align-items:flex-start; }
|
|
988
|
+
.hig-explainer-section[data-tone] { background:color-mix(in srgb,var(--hig-explainer-tone) 10%,transparent); }
|
|
989
|
+
.hig-explainer-section[data-tone='up'] { --hig-explainer-tone:var(--hig-up,var(--hig-buy)); }
|
|
990
|
+
.hig-explainer-section[data-tone='down'] { --hig-explainer-tone:var(--hig-down,var(--hig-sell)); }
|
|
991
|
+
.hig-explainer-section[data-tone='positive'] { --hig-explainer-tone:var(--hig-positive); }
|
|
992
|
+
.hig-explainer-section[data-tone='negative'] { --hig-explainer-tone:var(--hig-negative); }
|
|
993
|
+
.hig-explainer-section[data-tone='warning'] { --hig-explainer-tone:var(--hig-warning); }
|
|
994
|
+
.hig-explainer-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--hig-explainer-tone);background:color-mix(in srgb,var(--hig-explainer-tone) 15%,transparent); }
|
|
995
|
+
.hig-explainer-section h3 { margin:0;font-size:1rem;line-height:1.5;font-weight:700;color:var(--hig-explainer-tone); }
|
|
996
|
+
.hig-explainer-section h3 > span { color:var(--hig-muted); }
|
|
997
|
+
.hig-explainer-media { display:flex;flex-direction:column;align-items:center;gap:8px;margin-block:12px; }
|
|
998
|
+
.hig-explainer-text { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.43; }
|
|
999
|
+
.hig-explainer-steps { display:flex;flex-direction:column;gap:8px;padding-inline-start:20px; }
|
|
1000
|
+
.hig-popover[data-tone] { background:color-mix(in srgb,var(--hig-popover-tone) 12%,var(--hig-nested));border-color:color-mix(in srgb,var(--hig-popover-tone) 40%,transparent);box-shadow:0 8px 24px #0006,0 0 24px color-mix(in srgb,var(--hig-popover-tone) 25%,transparent); }
|
|
1001
|
+
.hig-popover[data-tone='info'] { --hig-popover-tone:var(--hig-info); }
|
|
1002
|
+
.hig-popover[data-tone='positive'] { --hig-popover-tone:var(--hig-positive); }
|
|
1003
|
+
.hig-popover[data-tone='warning'] { --hig-popover-tone:var(--hig-warning); }
|
|
1004
|
+
.hig-popover[data-tone='negative'] { --hig-popover-tone:var(--hig-negative); }
|
|
1005
|
+
.hig-explainer-hero { display:flex;flex-direction:column;align-items:center; }
|
|
1006
|
+
.hig-explainer-action-icon { display:inline-flex; }
|
|
1007
|
+
.hig-assets-status { flex:none;padding:2px 10px;font:600 .75rem/1.33 var(--hig-font-mono,'Bloxwap Mono',ui-monospace,monospace);letter-spacing:.08em; }
|
|
1008
|
+
.hig-assets-status[data-countdown] { color:var(--hig-muted);letter-spacing:.02em;font-variant-numeric:tabular-nums; }
|
|
1009
|
+
.hig-assets-status .hig-number { font-family:inherit; }
|
|
1010
|
+
.hig-assets-icon,.hig-assets-signal { width:44px;height:44px; }
|
|
1011
|
+
.hig-assets-signal { flex:none;display:grid;place-items:center;border-radius:9999px;background:var(--hig-fill); }
|
|
1012
|
+
.hig-assets-trailing { flex:none;display:flex;align-items:center; }
|
|
1013
|
+
.hig-assets-signal[data-signal] { color:var(--hig-signal);background:color-mix(in srgb,var(--hig-signal) 15%,transparent); }
|
|
1014
|
+
.hig-assets-signal[data-signal='watch'] { --hig-signal:var(--hig-warning); }
|
|
1015
|
+
.hig-assets-signal[data-signal='up'] { --hig-signal:var(--hig-positive); }
|
|
1016
|
+
.hig-assets-signal[data-signal='down'] { --hig-signal:var(--hig-negative); }
|
|
1017
|
+
/* The empty disc sits on the row's well once the row fills, so it steps up to the raised fill. */
|
|
1018
|
+
.hig-assets-row:is(:active,[aria-current='true'],[data-active]) .hig-assets-signal:not([data-signal]) { background:var(--hig-fill-raised); }
|
|
1019
|
+
.hig-assets-list > .hig-button { align-self:center; }
|
|
1020
|
+
.hig-assets-empty { margin:0;padding-block:32px;text-align:center;color:var(--hig-muted);font-size:.875rem;line-height:1.43; }
|
|
960
1021
|
/* Press decoration: the host layer HIGProvider pressDecoration draws inside a pressable control. Out of flow, so it changes no
|
|
961
1022
|
layout; it catches no pointer events itself, its children do. Zero specificity keeps a control that is already positioned as it is. */
|
|
962
1023
|
:where(:has(> .hig-press-decoration)) { position:relative; }
|
|
963
1024
|
span.hig-press-decoration[data-kind],.hig-list-row-trailing .hig-switch > span.hig-press-decoration[data-kind] { position:absolute;inset:0;display:block;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:inherit;overflow:hidden;clip:auto;white-space:normal;pointer-events:none; }
|
|
964
1025
|
span.hig-press-decoration[data-kind] > * { pointer-events:auto; }
|
|
1026
|
+
/* Reduced-motion stops, last so they outrank every motion declaration above: exactly one per animated or transitioned selector
|
|
1027
|
+
in each preference path (tests/motion-css.test.ts). Elements portalled out of the provider carry data-hig-motion themselves. */
|
|
1028
|
+
@media(prefers-reduced-motion:reduce) {
|
|
1029
|
+
.hig-button,.hig-accordion > .hig-accordion-summary,.hig-accordion-chevron,.hig-switch input,.hig-switch input::before,.hig-segment-indicator,.hig-filter-chip,.hig-filter-mark,.hig-filter-mark > img,.hig-filter-mark path,.hig-swap-card,.hig-swap-flip > *,.hig-screen-header[data-sticky],.hig-profile-bar[data-sticky],.hig-setting-meter > span,.hig-reward-track > span,.hig-target-rest,.hig-target-move,.hig-bar-mark-segment,.hig-bar-mark-rest,.hig-bar-pnl-rest,.hig-bar-pnl-move,.hig-bar-pnl-liquidation { transition:none; }
|
|
1030
|
+
.hig-button-spinner,.hig-skeleton,.hig-select-list,.hig-popover,.hig-progress progress:not([value]),.hig-spinner-indicator,.hig-status-indicator:is([data-state='online'],[data-state='stale'])::before,.hig-swap-view,.hig-screen-header[data-sticky] { animation:none; }
|
|
1031
|
+
}
|
|
1032
|
+
[data-hig-motion='reduced'] .hig-button,[data-hig-motion='reduced'] .hig-accordion > .hig-accordion-summary,[data-hig-motion='reduced'] .hig-accordion-chevron,[data-hig-motion='reduced'] .hig-switch input,[data-hig-motion='reduced'] .hig-switch input::before,[data-hig-motion='reduced'] .hig-segment-indicator,[data-hig-motion='reduced'] .hig-filter-chip,[data-hig-motion='reduced'] .hig-filter-mark,[data-hig-motion='reduced'] .hig-filter-mark > img,[data-hig-motion='reduced'] .hig-filter-mark path,[data-hig-motion='reduced'] .hig-swap-card,[data-hig-motion='reduced'] .hig-swap-flip > *,[data-hig-motion='reduced'] .hig-screen-header[data-sticky],[data-hig-motion='reduced'] .hig-profile-bar[data-sticky],[data-hig-motion='reduced'] .hig-setting-meter > span,[data-hig-motion='reduced'] .hig-reward-track > span,[data-hig-motion='reduced'] .hig-target-rest,[data-hig-motion='reduced'] .hig-target-move,[data-hig-motion='reduced'] .hig-bar-mark-segment,[data-hig-motion='reduced'] .hig-bar-mark-rest,[data-hig-motion='reduced'] .hig-bar-pnl-rest,[data-hig-motion='reduced'] .hig-bar-pnl-move,[data-hig-motion='reduced'] .hig-bar-pnl-liquidation { transition:none; }
|
|
1033
|
+
[data-hig-motion='reduced'] .hig-button-spinner,[data-hig-motion='reduced'] .hig-skeleton,[data-hig-motion='reduced'] .hig-select-list,[data-hig-motion='reduced'] .hig-popover,[data-hig-motion='reduced'].hig-popover,[data-hig-motion='reduced'] .hig-progress progress:not([value]),[data-hig-motion='reduced'] .hig-spinner-indicator,[data-hig-motion='reduced'] .hig-status-indicator:is([data-state='online'],[data-state='stale'])::before,[data-hig-motion='reduced'] .hig-swap-view,[data-hig-motion='reduced'] .hig-screen-header[data-sticky] { animation:none; }
|
|
1034
|
+
/* Sonner honours the OS preference itself; this covers a provider that asks for reduced motion on its own. */
|
|
1035
|
+
[data-hig-motion='reduced'] [data-sonner-toast],[data-hig-motion='reduced'] [data-sonner-toast] > * { transition:none!important;animation:none!important; }
|
|
1036
|
+
/* Selectors some engines do not parse stay in rules of their own, so they cannot drop the lists above. */
|
|
1037
|
+
@media(prefers-reduced-motion:reduce) { .hig-accordion::details-content { transition:none; } .hig-progress progress:not([value])::-webkit-progress-bar { animation:none; } }
|
|
1038
|
+
[data-hig-motion='reduced'] .hig-accordion::details-content { transition:none; }
|
|
1039
|
+
[data-hig-motion='reduced'] .hig-progress progress:not([value])::-webkit-progress-bar { animation:none; }
|