@phis/ui 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/controls/phi-border-control.js +1 -1
- package/components/controls/phi-bound-radius-control.js +9 -9
- package/components/controls/phi-brand-control.js +1 -1
- package/components/controls/phi-drawer-control-adapter.js +4 -4
- package/components/controls/phi-dropdown-control.js +2 -2
- package/components/controls/phi-form-control.js +1 -1
- package/components/controls/phi-image-control.js +1 -1
- package/components/controls/phi-mask-picker-control.js +6 -6
- package/components/controls/phi-select-control.js +1 -1
- package/components/controls/phi-theme-scope-control.js +1 -1
- package/components/controls/use-phi-color-control-presets.js +2 -2
- package/components/forms/compound-form-controls.js +2 -2
- package/components/forms/extended-form-field-controls.js +1 -1
- package/components/forms/shared-form-provider-registry.js +2 -2
- package/components/layouts/clients/phi-flex-layout-client.js +4 -4
- package/components/layouts/clients/phi-grid-layout-client.js +3 -3
- package/components/layouts/clients/phi-sequence-slot-editor.js +1 -1
- package/components/layouts/layout-definitions.d.ts +4 -4
- package/components/layouts/phi-page-region-layout.js +1 -1
- package/components/layouts/phi-structure-region-layout.js +3 -3
- package/components/media/phi-asset-focal-rect-widget.js +4 -4
- package/components/media/phi-asset-inspector-section.js +1 -1
- package/components/media/phi-media-kind-icon.js +2 -2
- package/components/media/phi-media-restricted-icon.js +1 -1
- package/components/overlays/phi-overlay-container-client.js +1 -1
- package/components/regions/presets/phi-base-page-column.d.ts +5 -2
- package/components/regions/presets/phi-base-page-column.js +6 -2
- package/components/root/phi-config-provider.js +1 -1
- package/components/root/phi-root-background.js +1 -1
- package/components/root/phi-root-theme-resolver.js +1 -1
- package/components/shell/phi-module-icons.js +1 -1
- package/components/widgets/built-in/builder-workspace-preview.js +8 -8
- package/components/widgets/client/bullet-list-entries-editor.js +2 -2
- package/components/widgets/client/external-document-editor.js +1 -1
- package/components/widgets/client/html-editor.js +3 -3
- package/components/widgets/config/background.d.ts +1 -1
- package/components/widgets/config/background.js +1 -1
- package/components/widgets/inspector-field-row.js +1 -1
- package/components/widgets/label-sets/inspector.js +2 -0
- package/components/widgets/label-types/inspector.d.ts +1 -0
- package/components/widgets/label-types/inspector.js +1 -0
- package/components/widgets/shared/card-body-client.js +1 -1
- package/components/widgets/shared/result-body-client.js +1 -1
- package/constants/media-library-provider-keys.d.ts +8 -1
- package/constants/media-library-provider-keys.js +8 -1
- package/constants/record-field-kinds.d.ts +6 -0
- package/constants/record-field-kinds.js +7 -0
- package/constants/runtime-module-ownership.js +1 -1
- package/helpers/border-widget-style.d.ts +2 -2
- package/helpers/border-widget-style.js +2 -2
- package/helpers/cms-dialog.d.ts +4 -4
- package/helpers/cms-layout-defaults.d.ts +2 -2
- package/helpers/cms-page-catalog.d.ts +5 -0
- package/helpers/cms-preset-page-tree.d.ts +4 -0
- package/helpers/cms-preset-page-tree.js +2 -0
- package/helpers/cms-region-keys.d.ts +1 -1
- package/helpers/layout-style.d.ts +2 -2
- package/helpers/page-layout-check.d.ts +4 -1
- package/helpers/page-layout-check.js +26 -0
- package/helpers/record-fields.d.ts +9 -0
- package/helpers/record-fields.js +84 -0
- package/helpers/surface-presets.d.ts +6 -6
- package/helpers/surface-style.d.ts +1 -1
- package/helpers.d.ts +0 -1
- package/helpers.js +0 -2
- package/module-page-check.d.ts +12 -0
- package/module-page-check.js +12 -0
- package/module-records.d.ts +4 -2
- package/module-records.js +3 -1
- package/next/antd-form-context-loader.mjs +31 -0
- package/next/config.d.mts +2 -0
- package/next/config.mjs +36 -3
- package/package.json +10 -1
- package/plugins/runtime-modules/asset/data-providers.d.ts +0 -65
- package/plugins/runtime-modules/asset/data-providers.js +0 -40
- package/plugins/runtime-modules/asset/definition.d.ts +0 -60
- package/plugins/runtime-modules/asset/ids.d.ts +0 -1
- package/plugins/runtime-modules/asset/ids.js +1 -2
- package/plugins/runtime-modules/asset/presets.d.ts +1 -0
- package/plugins/runtime-modules/asset/server.js +0 -5
- package/plugins/runtime-modules/blog/presets.d.ts +1 -0
- package/plugins/runtime-modules/builder/clients/inspector-config-field.d.ts +4 -1
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +13 -4
- package/plugins/runtime-modules/builder/clients/inspector-link-target-field.js +1 -1
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +14 -1
- package/plugins/runtime-modules/builder/clients/inspector-signal-section.js +2 -2
- package/plugins/runtime-modules/builder/clients/layout-inspector.js +1 -1
- package/plugins/runtime-modules/builder/clients/layout-scaffold-buttons.js +4 -4
- package/plugins/runtime-modules/builder/clients/layout-scaffold-overlays.js +1 -1
- package/plugins/runtime-modules/builder/clients/region-inspector.js +1 -1
- package/plugins/runtime-modules/builder/clients/region-visibility-fields.js +1 -1
- package/plugins/runtime-modules/builder/clients/shells-workspace.js +1 -1
- package/plugins/runtime-modules/builder/clients/structure-canvas.js +2 -2
- package/plugins/runtime-modules/builder/clients/widget-effects-editor.js +1 -1
- package/plugins/runtime-modules/builder/clients/widget-inspector.d.ts +4 -1
- package/plugins/runtime-modules/builder/clients/widget-inspector.js +3 -2
- package/plugins/runtime-modules/builder/page-presets.server.d.ts +6 -0
- package/plugins/runtime-modules/builder/page-presets.server.js +8 -0
- package/plugins/runtime-modules/builder/pages-workspace.js +12 -1
- package/plugins/runtime-modules/builder/render-root-node-scaffold.js +5 -5
- package/plugins/runtime-modules/builder/structure-dnd.js +2 -2
- package/plugins/runtime-modules/builder/widgets/test-block/client.js +1 -1
- package/plugins/runtime-modules/content-entry-routes.d.ts +1 -0
- package/plugins/runtime-modules/contracts.d.ts +1 -1
- package/plugins/runtime-modules/contracts.js +41 -1
- package/plugins/runtime-modules/core/data-providers.d.ts +60 -0
- package/plugins/runtime-modules/core/data-providers.js +41 -0
- package/plugins/runtime-modules/core/definition.d.ts +55 -0
- package/plugins/runtime-modules/core/server.js +5 -0
- package/plugins/runtime-modules/core/widgets/button/config.d.ts +34 -0
- package/plugins/runtime-modules/core/widgets/button/config.js +16 -0
- package/plugins/runtime-modules/core/widgets/button/plugin.js +37 -6
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +13 -2
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +13 -2
- package/plugins/runtime-modules/core/widgets/description/editor.js +13 -13
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +11 -0
- package/plugins/runtime-modules/core/widgets/gallery/client.d.ts +4 -1
- package/plugins/runtime-modules/core/widgets/gallery/client.js +29 -21
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +16 -0
- package/plugins/runtime-modules/core/widgets/gallery/config.js +16 -0
- package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/gallery/server.js +11 -0
- package/plugins/runtime-modules/core/widgets/header-navigation/authoring.js +2 -3
- package/plugins/runtime-modules/core/widgets/header-navigation/client.d.ts +1 -3
- package/plugins/runtime-modules/core/widgets/header-navigation/client.js +9 -5
- package/plugins/runtime-modules/core/widgets/header-navigation/config.d.ts +1 -4
- package/plugins/runtime-modules/core/widgets/header-navigation/plugin.js +2 -3
- package/plugins/runtime-modules/core/widgets/header-navigation/server.d.ts +2 -2
- package/plugins/runtime-modules/core/widgets/header-navigation/server.js +1 -2
- package/plugins/runtime-modules/core/widgets/image/config.d.ts +35 -0
- package/plugins/runtime-modules/core/widgets/image/config.js +8 -0
- package/plugins/runtime-modules/core/widgets/image/plugin.js +19 -1
- package/plugins/runtime-modules/core/widgets/image/server.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/image/server.js +2 -2
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +13 -0
- package/plugins/runtime-modules/core/widgets/markdown/config.js +8 -0
- package/plugins/runtime-modules/core/widgets/markdown/editor.js +7 -7
- package/plugins/runtime-modules/core/widgets/markdown/plugin.js +20 -7
- package/plugins/runtime-modules/core/widgets/record/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +11 -0
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +13 -0
- package/plugins/runtime-modules/core/widgets/simple-text/config.js +9 -0
- package/plugins/runtime-modules/core/widgets/simple-text/editor.js +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +14 -1
- package/plugins/runtime-modules/core/widgets/spacer/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +37 -0
- package/plugins/runtime-modules/descriptor-compiler.js +8 -0
- package/plugins/runtime-modules/editor/presets.d.ts +1 -0
- package/plugins/runtime-modules/groups/definition.d.ts +1 -1
- package/plugins/runtime-modules/localization/presets.d.ts +1 -0
- package/plugins/runtime-modules/news/presets.d.ts +1 -0
- package/plugins/runtime-modules/resolver.js +2 -0
- package/plugins/runtime-modules/revisions/presets.d.ts +1 -0
- package/plugins/runtime-modules/theme/presets.d.ts +1 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +37 -1
- package/server-helpers/cms-page-record.d.ts +26 -0
- package/server-helpers/cms-page-record.js +42 -0
- package/server-helpers/cms-request.js +48 -4
- package/server-helpers/record-fields.d.ts +62 -0
- package/server-helpers/record-fields.js +87 -0
- package/server-helpers/record-samples.d.ts +21 -0
- package/server-helpers/record-samples.js +41 -0
- package/styles/builder-scaffold.css +19 -19
- package/styles/controls.css +121 -108
- package/styles/gradients.css +23 -23
- package/styles/layout-affordances.css +15 -15
- package/styles/layout-authoring-scaffold.css +20 -20
- package/styles/layout.css +9 -9
- package/styles/root.css +4 -4
- package/styles/shell.css +48 -17
- package/theme/antd-css-var-contract.d.ts +93 -78
- package/theme/antd-css-var-contract.js +99 -79
- package/theme/phi-container-breakpoints.d.ts +4 -1
- package/theme/phi-container-breakpoints.js +4 -1
- package/theme/phi-control-shape.d.ts +1 -1
- package/theme/phi-theme-gradients.d.ts +2 -2
- package/theme/phi-theme-gradients.js +14 -14
- package/theme/phi-theme-palette.d.ts +1 -1
- package/theme/phi-theme-palette.js +2 -2
- package/theme/phi-theme-tokens.d.ts +10 -4
- package/theme/phi-theme-tokens.js +78 -23
- package/theme/phi-theme.d.ts +14 -0
- package/theme/phi-theme.js +14 -0
- package/theme/phi-tokens.d.ts +6 -1
- package/theme/phi-tokens.js +22 -2
- package/theme.d.ts +1 -1
- package/theme.js +1 -1
- package/types/cms-module-descriptors.d.ts +6 -0
- package/types/cms-plugins.d.ts +19 -1
- package/types/core-widget-placements.d.ts +10 -0
- package/types/record-provider.d.ts +92 -0
- package/types/widget-runtime.d.ts +5 -0
- /package/plugins/runtime-modules/{asset/services/folder-images.server.d.ts → core/services/media-folder-images.server.d.ts} +0 -0
- /package/plugins/runtime-modules/{asset/services/folder-images.server.js → core/services/media-folder-images.server.js} +0 -0
package/styles/controls.css
CHANGED
|
@@ -18,38 +18,38 @@
|
|
|
18
18
|
* selectors under `.phi-typography`, the same tokens through the variables the primitive publishes.
|
|
19
19
|
*/
|
|
20
20
|
.phi-typography {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--phi-color-text);
|
|
22
22
|
word-break: break-word;
|
|
23
|
-
line-height: var(--
|
|
23
|
+
line-height: var(--phi-line-height);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.phi-typography--secondary {
|
|
27
|
-
color: var(--
|
|
27
|
+
color: var(--phi-color-text-description);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.phi-typography--success {
|
|
31
|
-
color: var(--
|
|
31
|
+
color: var(--phi-color-success-text);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.phi-typography--warning {
|
|
35
|
-
color: var(--
|
|
35
|
+
color: var(--phi-color-warning-text);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.phi-typography--danger {
|
|
39
|
-
color: var(--
|
|
39
|
+
color: var(--phi-color-error-text);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.phi-typography--danger.phi-typography--link:hover {
|
|
43
|
-
color: var(--
|
|
43
|
+
color: var(--phi-color-error-text-hover);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.phi-typography--danger.phi-typography--link:active,
|
|
47
47
|
.phi-typography--danger.phi-typography--link:focus {
|
|
48
|
-
color: var(--
|
|
48
|
+
color: var(--phi-color-error-text-active);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.phi-typography--disabled {
|
|
52
|
-
color: var(--
|
|
52
|
+
color: var(--phi-color-text-disabled);
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
user-select: none;
|
|
55
55
|
}
|
|
@@ -65,35 +65,35 @@ h3.phi-typography, .phi-typography h3,
|
|
|
65
65
|
h4.phi-typography, .phi-typography h4,
|
|
66
66
|
h5.phi-typography, .phi-typography h5 {
|
|
67
67
|
margin-bottom: 0.5em;
|
|
68
|
-
color: var(--
|
|
69
|
-
font-weight: var(--
|
|
68
|
+
color: var(--phi-color-text-heading);
|
|
69
|
+
font-weight: var(--phi-font-weight-strong);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
h1.phi-typography, .phi-typography h1 {
|
|
73
|
-
font-size: var(--
|
|
74
|
-
line-height: var(--
|
|
73
|
+
font-size: var(--phi-font-size-heading-1);
|
|
74
|
+
line-height: var(--phi-line-height-heading-1);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
h2.phi-typography, .phi-typography h2 {
|
|
78
|
-
font-size: var(--
|
|
79
|
-
line-height: var(--
|
|
78
|
+
font-size: var(--phi-font-size-heading-2);
|
|
79
|
+
line-height: var(--phi-line-height-heading-2);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
h3.phi-typography, .phi-typography h3 {
|
|
83
|
-
font-size: var(--
|
|
84
|
-
line-height: var(--
|
|
83
|
+
font-size: var(--phi-font-size-heading-3);
|
|
84
|
+
line-height: var(--phi-line-height-heading-3);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
h4.phi-typography, .phi-typography h4 {
|
|
88
|
-
font-size: var(--
|
|
89
|
-
line-height: var(--
|
|
88
|
+
font-size: var(--phi-font-size-heading-4);
|
|
89
|
+
line-height: var(--phi-line-height-heading-4);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/* The same size as `h4` (`theme/phi-tokens.ts`); the colour is what sets it below. */
|
|
93
93
|
h5.phi-typography, .phi-typography h5 {
|
|
94
|
-
font-size: var(--
|
|
95
|
-
line-height: var(--
|
|
96
|
-
color: var(--
|
|
94
|
+
font-size: var(--phi-font-size-heading-5);
|
|
95
|
+
line-height: var(--phi-line-height-heading-5);
|
|
96
|
+
color: var(--phi-color-text-secondary);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.phi-typography + h1.phi-typography,
|
|
@@ -110,9 +110,9 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
110
110
|
padding-inline: 0.4em;
|
|
111
111
|
padding-block: 0.2em 0.1em;
|
|
112
112
|
font-size: 85%;
|
|
113
|
-
font-family: var(--
|
|
113
|
+
font-family: var(--phi-font-family-code);
|
|
114
114
|
background: rgba(150, 150, 150, 0.1);
|
|
115
|
-
border: var(--
|
|
115
|
+
border: var(--phi-line-width) var(--phi-line-type) rgba(100, 100, 100, 0.2);
|
|
116
116
|
border-radius: 3px;
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -121,9 +121,9 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
121
121
|
padding-inline: 0.4em;
|
|
122
122
|
padding-block: 0.15em 0.1em;
|
|
123
123
|
font-size: 90%;
|
|
124
|
-
font-family: var(--
|
|
124
|
+
font-family: var(--phi-font-family-code);
|
|
125
125
|
background: rgba(150, 150, 150, 0.06);
|
|
126
|
-
border: var(--
|
|
126
|
+
border: var(--phi-line-width) var(--phi-line-type) rgba(100, 100, 100, 0.2);
|
|
127
127
|
border-bottom-width: 2px;
|
|
128
128
|
border-radius: 3px;
|
|
129
129
|
}
|
|
@@ -144,7 +144,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.phi-typography strong {
|
|
147
|
-
font-weight: var(--
|
|
147
|
+
font-weight: var(--phi-font-weight-strong);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.phi-typography :is(ul, ol) {
|
|
@@ -181,9 +181,9 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
181
181
|
white-space: pre-wrap;
|
|
182
182
|
overflow-wrap: break-word;
|
|
183
183
|
background: rgba(150, 150, 150, 0.1);
|
|
184
|
-
border: var(--
|
|
184
|
+
border: var(--phi-line-width) var(--phi-line-type) rgba(100, 100, 100, 0.2);
|
|
185
185
|
border-radius: 3px;
|
|
186
|
-
font-family: var(--
|
|
186
|
+
font-family: var(--phi-font-family-code);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.phi-typography pre code {
|
|
@@ -204,44 +204,44 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.phi-typography--link {
|
|
207
|
-
color: var(--
|
|
207
|
+
color: var(--phi-color-link);
|
|
208
208
|
text-decoration: none;
|
|
209
209
|
outline: none;
|
|
210
210
|
cursor: pointer;
|
|
211
211
|
user-select: text;
|
|
212
|
-
transition: color var(--
|
|
212
|
+
transition: color var(--phi-motion-duration-slow);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
.phi-typography--link:hover,
|
|
216
216
|
.phi-typography--link:focus {
|
|
217
|
-
color: var(--
|
|
217
|
+
color: var(--phi-color-link-hover);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
.phi-typography--link:active {
|
|
221
|
-
color: var(--
|
|
221
|
+
color: var(--phi-color-link-active);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.phi-typography--link.phi-typography--disabled,
|
|
225
225
|
.phi-typography--link.phi-typography--disabled:hover,
|
|
226
226
|
.phi-typography--link.phi-typography--disabled:active {
|
|
227
|
-
color: var(--
|
|
227
|
+
color: var(--phi-color-text-disabled);
|
|
228
228
|
cursor: not-allowed;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.phi-typography--secondary.phi-typography--link {
|
|
232
|
-
color: var(--
|
|
232
|
+
color: var(--phi-color-text-description);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.phi-typography--success.phi-typography--link {
|
|
236
|
-
color: var(--
|
|
236
|
+
color: var(--phi-color-success-text);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.phi-typography--warning.phi-typography--link {
|
|
240
|
-
color: var(--
|
|
240
|
+
color: var(--phi-color-warning-text);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.phi-typography--danger.phi-typography--link {
|
|
244
|
-
color: var(--
|
|
244
|
+
color: var(--phi-color-error-text);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
/* --- Menu -------------------------------------------------------------------------------------------- */
|
|
@@ -259,27 +259,27 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
259
259
|
.phi-menu-control--inline.ant-menu-root .ant-menu.ant-menu-sub,
|
|
260
260
|
.phi-menu-control--inline.phi-menu-control__popup.ant-menu,
|
|
261
261
|
.phi-menu-control--inline.phi-menu-control__popup .ant-menu.ant-menu-sub {
|
|
262
|
-
--
|
|
263
|
-
--
|
|
264
|
-
--
|
|
265
|
-
--
|
|
266
|
-
--
|
|
267
|
-
--
|
|
268
|
-
--
|
|
262
|
+
--phi-menu-item-margin-block: var(--phi-margin-xxs);
|
|
263
|
+
--phi-menu-item-margin-inline: 0px;
|
|
264
|
+
--phi-menu-item-width: calc(100% - 0px);
|
|
265
|
+
--phi-menu-item-bg: transparent;
|
|
266
|
+
--phi-menu-sub-menu-item-bg: transparent;
|
|
267
|
+
--phi-menu-dark-item-bg: transparent;
|
|
268
|
+
--phi-menu-dark-sub-menu-item-bg: transparent;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.phi-menu-control--collapsed-width.ant-menu.ant-menu-root,
|
|
272
272
|
.phi-menu-control--collapsed-width.ant-menu-root .ant-menu.ant-menu-sub,
|
|
273
273
|
.phi-menu-control--collapsed-width.phi-menu-control__popup.ant-menu,
|
|
274
274
|
.phi-menu-control--collapsed-width.phi-menu-control__popup .ant-menu.ant-menu-sub {
|
|
275
|
-
--
|
|
275
|
+
--phi-menu-collapsed-width: var(--phi-menu-collapsed-width);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.phi-menu-control--font-family.ant-menu.ant-menu-root,
|
|
279
279
|
.phi-menu-control--font-family.ant-menu-root .ant-menu.ant-menu-sub,
|
|
280
280
|
.phi-menu-control--font-family.phi-menu-control__popup.ant-menu,
|
|
281
281
|
.phi-menu-control--font-family.phi-menu-control__popup .ant-menu.ant-menu-sub {
|
|
282
|
-
--
|
|
282
|
+
--phi-font-family: var(--phi-menu-font-family);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
/* The Menu's tokens that Ant Design derives from the base size, derived the same way. */
|
|
@@ -287,10 +287,23 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
287
287
|
.phi-menu-control--font-size.ant-menu-root .ant-menu.ant-menu-sub,
|
|
288
288
|
.phi-menu-control--font-size.phi-menu-control__popup.ant-menu,
|
|
289
289
|
.phi-menu-control--font-size.phi-menu-control__popup .ant-menu.ant-menu-sub {
|
|
290
|
-
--
|
|
291
|
-
--
|
|
292
|
-
--
|
|
293
|
-
--
|
|
290
|
+
--phi-font-size: var(--phi-menu-font-size);
|
|
291
|
+
--phi-menu-icon-size: var(--phi-menu-font-size);
|
|
292
|
+
--phi-menu-group-title-font-size: var(--phi-menu-font-size);
|
|
293
|
+
--phi-menu-icon-margin-inline-end: calc(var(--phi-control-height-sm) - var(--phi-menu-font-size));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/*
|
|
297
|
+
* Header Navigation: the row is as tall as the room its Layout gives it (the Widget's `height: 100%`), and
|
|
298
|
+
* each entry stretches to the row and centres its words in it. Ant Design centres them with a line height
|
|
299
|
+
* as tall as the bar, which is a length, and the length the Widget used to hand it was the Region's height
|
|
300
|
+
* -- padding included, so the entries of a Header that keeps its floating gap as padding stood below the
|
|
301
|
+
* brand and the buttons beside them. The pill below still stands at the control height in the middle.
|
|
302
|
+
*/
|
|
303
|
+
.phi-header-nav .ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
|
|
304
|
+
display: flex;
|
|
305
|
+
align-items: center;
|
|
306
|
+
line-height: var(--phi-control-height);
|
|
294
307
|
}
|
|
295
308
|
|
|
296
309
|
/*
|
|
@@ -303,21 +316,21 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
303
316
|
*/
|
|
304
317
|
.phi-menu-control--selection-pill.ant-menu.ant-menu-root.ant-menu-horizontal,
|
|
305
318
|
.phi-menu-control--selection-auto.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
|
|
306
|
-
--
|
|
319
|
+
--phi-menu-active-bar-height: 0px;
|
|
307
320
|
/*
|
|
308
321
|
* The Theme's Control shape at the default size: one Control line tall, so the radius a grown Control
|
|
309
322
|
* holds is exactly this entry's -- the shape's number, or the capsule under `pill`.
|
|
310
323
|
*/
|
|
311
|
-
--
|
|
312
|
-
--
|
|
313
|
-
--
|
|
324
|
+
--phi-menu-horizontal-item-border-radius: var(--phi-control-radius-grown-md, var(--phi-border-radius));
|
|
325
|
+
--phi-menu-horizontal-item-selected-bg: var(--phi-color-primary-bg);
|
|
326
|
+
--phi-menu-dark-item-selected-bg: color-mix(in srgb, var(--phi-color-primary) 30%, transparent);
|
|
314
327
|
}
|
|
315
328
|
|
|
316
329
|
.phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu),
|
|
317
330
|
.phi-menu-control--selection-auto.ant-menu-dark.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
|
|
318
331
|
align-self: center;
|
|
319
|
-
height: var(--
|
|
320
|
-
line-height: var(--
|
|
332
|
+
height: var(--phi-control-height);
|
|
333
|
+
line-height: var(--phi-control-height);
|
|
321
334
|
}
|
|
322
335
|
|
|
323
336
|
.phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu)::after,
|
|
@@ -327,15 +340,15 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
327
340
|
|
|
328
341
|
/* The bar in dark mode as well: no ground, and the bar Ant Design leaves out under a dark menu. */
|
|
329
342
|
.phi-menu-control--selection-underline.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
|
|
330
|
-
--
|
|
331
|
-
--
|
|
343
|
+
--phi-menu-dark-item-selected-bg: transparent;
|
|
344
|
+
--phi-menu-dark-item-selected-color: var(--phi-color-primary);
|
|
332
345
|
}
|
|
333
346
|
|
|
334
347
|
.phi-menu-control--selection-underline.ant-menu-dark.ant-menu-horizontal
|
|
335
348
|
> :is(.ant-menu-item-selected, .ant-menu-submenu-selected)::after {
|
|
336
349
|
/* Ant Design's own `lineWidthBold`, which it derives as `lineWidth + 1`. */
|
|
337
|
-
border-bottom-width: calc(var(--
|
|
338
|
-
border-bottom-color: var(--
|
|
350
|
+
border-bottom-width: calc(var(--phi-line-width) + 1px);
|
|
351
|
+
border-bottom-color: var(--phi-color-primary);
|
|
339
352
|
}
|
|
340
353
|
|
|
341
354
|
/*
|
|
@@ -343,7 +356,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
343
356
|
* so a list of them reads as a list while every one is closed.
|
|
344
357
|
*/
|
|
345
358
|
.phi-markdown-folds :where(.ant-collapse-item + .ant-collapse-item) {
|
|
346
|
-
border-block-start: var(--
|
|
359
|
+
border-block-start: var(--phi-line-width, 1px) solid var(--phi-color-split);
|
|
347
360
|
}
|
|
348
361
|
|
|
349
362
|
/* --- Labeled control ---------------------------------------------------------------------------- */
|
|
@@ -367,7 +380,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
367
380
|
*/
|
|
368
381
|
.phi-card-control {
|
|
369
382
|
--phi-card-control-radius: var(--phi-surface-radius);
|
|
370
|
-
--phi-card-control-line: var(--
|
|
383
|
+
--phi-card-control-line: var(--phi-line-width) var(--phi-line-type) var(--phi-color-border-secondary);
|
|
371
384
|
position: relative;
|
|
372
385
|
display: flex;
|
|
373
386
|
flex-direction: column;
|
|
@@ -375,23 +388,23 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
375
388
|
min-width: 0;
|
|
376
389
|
border: var(--phi-card-control-line);
|
|
377
390
|
border-radius: var(--phi-card-control-radius);
|
|
378
|
-
background: var(--
|
|
379
|
-
color: var(--
|
|
380
|
-
font-size: var(--
|
|
381
|
-
line-height: var(--
|
|
391
|
+
background: var(--phi-color-bg-container);
|
|
392
|
+
color: var(--phi-color-text);
|
|
393
|
+
font-size: var(--phi-font-size);
|
|
394
|
+
line-height: var(--phi-line-height);
|
|
382
395
|
}
|
|
383
396
|
|
|
384
397
|
.phi-card-control__head {
|
|
385
398
|
display: flex;
|
|
386
399
|
align-items: center;
|
|
387
|
-
gap: var(--
|
|
388
|
-
min-height: calc(var(--
|
|
389
|
-
padding: 0 var(--
|
|
400
|
+
gap: var(--phi-padding-xs);
|
|
401
|
+
min-height: calc(var(--phi-font-size-lg) * var(--phi-line-height-lg) + var(--phi-padding) * 2);
|
|
402
|
+
padding: 0 var(--phi-padding-lg);
|
|
390
403
|
border-bottom: var(--phi-card-control-line);
|
|
391
404
|
border-radius: var(--phi-card-control-radius) var(--phi-card-control-radius) 0 0;
|
|
392
|
-
color: var(--
|
|
393
|
-
font-size: var(--
|
|
394
|
-
font-weight: var(--
|
|
405
|
+
color: var(--phi-color-text-heading);
|
|
406
|
+
font-size: var(--phi-font-size-lg);
|
|
407
|
+
font-weight: var(--phi-font-weight-strong);
|
|
395
408
|
}
|
|
396
409
|
|
|
397
410
|
.phi-card-control__title {
|
|
@@ -404,20 +417,20 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
404
417
|
|
|
405
418
|
.phi-card-control__toolbar {
|
|
406
419
|
margin-inline-start: auto;
|
|
407
|
-
color: var(--
|
|
408
|
-
font-size: var(--
|
|
420
|
+
color: var(--phi-color-text);
|
|
421
|
+
font-size: var(--phi-font-size);
|
|
409
422
|
font-weight: normal;
|
|
410
423
|
}
|
|
411
424
|
|
|
412
425
|
.phi-card-control--small > .phi-card-control__head {
|
|
413
|
-
min-height: calc(var(--
|
|
414
|
-
padding: 0 var(--
|
|
415
|
-
font-size: var(--
|
|
426
|
+
min-height: calc(var(--phi-font-size) * var(--phi-line-height) + var(--phi-padding-xs) * 2);
|
|
427
|
+
padding: 0 var(--phi-padding-sm);
|
|
428
|
+
font-size: var(--phi-font-size);
|
|
416
429
|
}
|
|
417
430
|
|
|
418
431
|
/* The cover runs to the frame's outer edge and takes its upper corners when nothing sits above it. */
|
|
419
432
|
.phi-card-control__cover {
|
|
420
|
-
margin: calc(var(--
|
|
433
|
+
margin: calc(var(--phi-line-width) * -1) calc(var(--phi-line-width) * -1) 0;
|
|
421
434
|
}
|
|
422
435
|
|
|
423
436
|
.phi-card-control__cover > * {
|
|
@@ -452,13 +465,13 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
452
465
|
.phi-card-control--hoverable {
|
|
453
466
|
cursor: pointer;
|
|
454
467
|
transition:
|
|
455
|
-
box-shadow var(--
|
|
456
|
-
border-color var(--
|
|
468
|
+
box-shadow var(--phi-motion-duration-mid),
|
|
469
|
+
border-color var(--phi-motion-duration-mid);
|
|
457
470
|
}
|
|
458
471
|
|
|
459
472
|
.phi-card-control--hoverable:hover {
|
|
460
473
|
border-color: transparent;
|
|
461
|
-
box-shadow: var(--
|
|
474
|
+
box-shadow: var(--phi-box-shadow);
|
|
462
475
|
}
|
|
463
476
|
|
|
464
477
|
/* --- Dropdown ------------------------------------------------------------------------------------ */
|
|
@@ -477,8 +490,8 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
477
490
|
align-items: center;
|
|
478
491
|
justify-content: center;
|
|
479
492
|
min-width: 3.5rem;
|
|
480
|
-
padding: var(--
|
|
481
|
-
border: var(--
|
|
493
|
+
padding: var(--phi-padding-xxs) var(--phi-padding-sm);
|
|
494
|
+
border: var(--phi-line-width) solid var(--phi-color-border);
|
|
482
495
|
border-radius: var(--phi-control-radius-sm);
|
|
483
496
|
color: inherit;
|
|
484
497
|
font-size: inherit;
|
|
@@ -487,14 +500,14 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
487
500
|
white-space: nowrap;
|
|
488
501
|
flex-shrink: 0;
|
|
489
502
|
transition:
|
|
490
|
-
color var(--
|
|
491
|
-
border-color var(--
|
|
503
|
+
color var(--phi-motion-duration-mid),
|
|
504
|
+
border-color var(--phi-motion-duration-mid);
|
|
492
505
|
}
|
|
493
506
|
|
|
494
507
|
/* Hovering anywhere on the trigger lights the pill -- the account avatar beside it included. */
|
|
495
508
|
.phi-dropdown-control:hover .phi-dropdown-control__pill {
|
|
496
|
-
border-color: var(--
|
|
497
|
-
color: var(--
|
|
509
|
+
border-color: var(--phi-color-primary-hover);
|
|
510
|
+
color: var(--phi-color-primary-hover);
|
|
498
511
|
}
|
|
499
512
|
|
|
500
513
|
/*
|
|
@@ -503,7 +516,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
503
516
|
* an icon glyph never matches it. Centred in its box, so it lines up with the label beside it.
|
|
504
517
|
*/
|
|
505
518
|
.phi-dropdown-control__chevron {
|
|
506
|
-
--phi-chevron-size: calc(var(--
|
|
519
|
+
--phi-chevron-size: calc(var(--phi-font-size) / 7 * 5);
|
|
507
520
|
position: relative;
|
|
508
521
|
display: inline-block;
|
|
509
522
|
flex-shrink: 0;
|
|
@@ -519,7 +532,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
519
532
|
left: calc(50% - var(--phi-chevron-size) * 0.3);
|
|
520
533
|
width: calc(var(--phi-chevron-size) * 0.6);
|
|
521
534
|
height: calc(var(--phi-chevron-size) * 0.15);
|
|
522
|
-
border-radius: var(--
|
|
535
|
+
border-radius: var(--phi-border-radius);
|
|
523
536
|
background-color: currentcolor;
|
|
524
537
|
content: "";
|
|
525
538
|
}
|
|
@@ -607,11 +620,11 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
607
620
|
* and its stylesheet is injected after this one.
|
|
608
621
|
*/
|
|
609
622
|
.phi-table-control.phi-table-control [class~="ant-table-summary"] {
|
|
610
|
-
background: var(--
|
|
623
|
+
background: var(--phi-table-footer-bg, var(--phi-color-fill-alter));
|
|
611
624
|
}
|
|
612
625
|
|
|
613
626
|
.phi-table-control [class~="ant-table-pagination"][class~="ant-pagination"] {
|
|
614
|
-
margin-block: var(--
|
|
627
|
+
margin-block: var(--phi-padding-sm) 0 !important;
|
|
615
628
|
}
|
|
616
629
|
|
|
617
630
|
.phi-table-control
|
|
@@ -657,7 +670,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
657
670
|
display: inline-flex;
|
|
658
671
|
align-items: center;
|
|
659
672
|
justify-content: center;
|
|
660
|
-
min-block-size: var(--
|
|
673
|
+
min-block-size: var(--phi-control-height-sm);
|
|
661
674
|
}
|
|
662
675
|
|
|
663
676
|
/* --- Compact Select ------------------------------------------------------------------------------ */
|
|
@@ -670,13 +683,13 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
670
683
|
* height would leave the box short of `controlHeightSM` by the difference.
|
|
671
684
|
*/
|
|
672
685
|
[class~="ant-select"][class~="ant-select-sm"] {
|
|
673
|
-
--
|
|
674
|
-
--
|
|
686
|
+
--phi-select-font-size: var(--phi-font-size-sm);
|
|
687
|
+
--phi-select-font-height: calc(var(--phi-font-size-sm) * var(--phi-select-line-height));
|
|
675
688
|
}
|
|
676
689
|
|
|
677
690
|
/* The list a compact Select opens writes as the field does; Ant Design gives every Select's list the body size. */
|
|
678
691
|
.phi-select-popup--sm [class~="ant-select-item"] {
|
|
679
|
-
font-size: var(--
|
|
692
|
+
font-size: var(--phi-font-size-sm);
|
|
680
693
|
}
|
|
681
694
|
|
|
682
695
|
/* --- Running text --------------------------------------------------------------------------------- */
|
|
@@ -709,9 +722,9 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
709
722
|
.phi-plain-table {
|
|
710
723
|
width: 100%;
|
|
711
724
|
border-collapse: collapse;
|
|
712
|
-
font-size: var(--
|
|
713
|
-
line-height: var(--
|
|
714
|
-
color: var(--
|
|
725
|
+
font-size: var(--phi-font-size-sm);
|
|
726
|
+
line-height: var(--phi-line-height-sm);
|
|
727
|
+
color: var(--phi-color-text);
|
|
715
728
|
}
|
|
716
729
|
|
|
717
730
|
/*
|
|
@@ -721,7 +734,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
721
734
|
*/
|
|
722
735
|
.phi-plain-table th,
|
|
723
736
|
.phi-plain-table td {
|
|
724
|
-
padding: var(--
|
|
737
|
+
padding: var(--phi-padding-xs) var(--phi-padding-sm);
|
|
725
738
|
text-align: start;
|
|
726
739
|
vertical-align: top;
|
|
727
740
|
hyphens: manual;
|
|
@@ -733,13 +746,13 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
733
746
|
}
|
|
734
747
|
|
|
735
748
|
.phi-plain-table th {
|
|
736
|
-
font-weight: var(--
|
|
737
|
-
color: var(--
|
|
738
|
-
border-block-end: 1px solid var(--
|
|
749
|
+
font-weight: var(--phi-font-weight-strong);
|
|
750
|
+
color: var(--phi-color-text-heading);
|
|
751
|
+
border-block-end: 1px solid var(--phi-color-border-secondary);
|
|
739
752
|
}
|
|
740
753
|
|
|
741
754
|
.phi-plain-table td {
|
|
742
|
-
border-block-end: 1px solid var(--
|
|
755
|
+
border-block-end: 1px solid var(--phi-color-split);
|
|
743
756
|
}
|
|
744
757
|
|
|
745
758
|
.phi-plain-table tbody tr:last-child td {
|
|
@@ -755,17 +768,17 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
755
768
|
* Beside the words the line is shared in the golden ratio: what is left after the gap between them goes
|
|
756
769
|
* 1 : φ to picture and text (`PHI_GOLDEN_RATIO`, 1 + φ = 2.618), so the text is 1.618 times as wide as the
|
|
757
770
|
* picture at any column width -- 415 px of picture beside 671 px of text in a 1120 px column, with the
|
|
758
|
-
* Phi scale's `md` (34 px) between them. Every distance here is the Phi scale's, never `--
|
|
771
|
+
* Phi scale's `md` (34 px) between them. Every distance here is the Phi scale's, never `--phi-margin-*`.
|
|
759
772
|
*/
|
|
760
773
|
.phi-markdown-body {
|
|
761
774
|
/* The gap between picture and text, on the Phi scale (`PHI_SPACE.md`), not Ant Design's margins. */
|
|
762
|
-
--phi-markdown-float-gap: var(--
|
|
775
|
+
--phi-markdown-float-gap: var(--phi-padding-md, 34px);
|
|
763
776
|
--phi-markdown-float-width: calc((100% - var(--phi-markdown-float-gap)) / 2.618034);
|
|
764
777
|
}
|
|
765
778
|
|
|
766
779
|
.phi-markdown-body :is(img):not(:where(.phi-markdown-figure *)) {
|
|
767
780
|
display: block;
|
|
768
|
-
margin-block-end: var(--
|
|
781
|
+
margin-block-end: var(--phi-padding, 21px);
|
|
769
782
|
/*
|
|
770
783
|
* A picture is a surface, so its corners are the Theme's surface step (`--phi-surface-radius`, THEME.md
|
|
771
784
|
* "Control shape"): square under `square`, the widest step of the scale under `pill`.
|
|
@@ -793,7 +806,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
793
806
|
* address says (`float=start|end|none`), in the same golden share and from the same container width as above.
|
|
794
807
|
*/
|
|
795
808
|
.phi-markdown-figure {
|
|
796
|
-
margin: 0 0 var(--
|
|
809
|
+
margin: 0 0 var(--phi-padding, 21px);
|
|
797
810
|
}
|
|
798
811
|
|
|
799
812
|
.phi-markdown-figure__frame {
|
package/styles/gradients.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Gradients and glass on Controls (theme/phi-theme-gradients.ts).
|
|
3
3
|
*
|
|
4
4
|
* Ant Design 6 draws a Button's ground with `background-color` from its own variables
|
|
5
|
-
* (`--
|
|
5
|
+
* (`--phi-btn-bg-color`, `-hover`, `-active`) and never sets `background-image`. So a run laid on as
|
|
6
6
|
* `background-image` sits over Ant Design's colour without fighting it and keeps that colour as the edge
|
|
7
7
|
* a gradient cannot draw. A disabled Button is left out of every rule here: its run would outweigh the
|
|
8
8
|
* `background` shorthand Ant Design greys it out with. Text colour goes through Ant Design's text variables, which is
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
* A Button of the `gradient` variant is primary underneath and has a run of its own, so it is left out.
|
|
18
18
|
*/
|
|
19
19
|
.ant-btn.ant-btn.ant-btn-color-primary.ant-btn-variant-solid:not(.ant-btn-background-ghost):not(.phi-btn-gradient):not(:disabled):not(.ant-btn-disabled) {
|
|
20
|
-
background-image: var(--
|
|
20
|
+
background-image: var(--phi-primary-button-gradient, none);
|
|
21
21
|
/* From the outer edge and once: from the padding box it tiled again under the border, and a pill's
|
|
22
22
|
ends showed the other end of the run. */
|
|
23
23
|
background-origin: border-box;
|
|
24
24
|
background-repeat: no-repeat;
|
|
25
25
|
will-change: filter;
|
|
26
|
-
--
|
|
26
|
+
--phi-btn-text-color: var(--phi-primary-button-gradient-text, var(--phi-color-text-light-solid));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.ant-btn.ant-btn.ant-btn-color-primary.ant-btn-variant-solid:not(.ant-btn-background-ghost):not(.phi-btn-gradient):not(:disabled):not(.ant-btn-disabled):hover {
|
|
30
|
-
filter: var(--
|
|
30
|
+
filter: var(--phi-primary-button-gradient-hover, none);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.ant-btn.ant-btn.ant-btn-color-primary.ant-btn-variant-solid:not(.ant-btn-background-ghost):not(.phi-btn-gradient):not(:disabled):not(.ant-btn-disabled):active {
|
|
34
|
-
filter: var(--
|
|
34
|
+
filter: var(--phi-primary-button-gradient-active, none);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/*
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
filter eases, rasterises its rounded rim there, and the pill seemed to change size twice. */
|
|
47
47
|
will-change: filter;
|
|
48
48
|
/* The run is the whole ground: a colour beneath it showed through the anti-aliased rim of a pill. */
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--
|
|
57
|
-
--
|
|
49
|
+
--phi-btn-bg-color: transparent;
|
|
50
|
+
--phi-btn-bg-color-hover: transparent;
|
|
51
|
+
--phi-btn-bg-color-active: transparent;
|
|
52
|
+
--phi-btn-border-color: transparent;
|
|
53
|
+
--phi-btn-border-color-hover: transparent;
|
|
54
|
+
--phi-btn-border-color-active: transparent;
|
|
55
|
+
--phi-btn-text-color: var(--phi-control-gradient-text);
|
|
56
|
+
--phi-btn-text-color-hover: var(--phi-control-gradient-text);
|
|
57
|
+
--phi-btn-text-color-active: var(--phi-control-gradient-text);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/*
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
* one, so the pane darkens instead of misting a dark picture white.
|
|
77
77
|
*/
|
|
78
78
|
.ant-btn.ant-btn.phi-btn-glass.phi-btn-glass {
|
|
79
|
-
--
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--
|
|
83
|
-
--
|
|
84
|
-
--
|
|
85
|
-
--
|
|
86
|
-
--
|
|
87
|
-
--
|
|
79
|
+
--phi-btn-bg-color: color-mix(in srgb, var(--phi-color-bg-container) 24%, transparent);
|
|
80
|
+
--phi-btn-bg-color-hover: color-mix(in srgb, var(--phi-color-bg-container) 38%, transparent);
|
|
81
|
+
--phi-btn-bg-color-active: color-mix(in srgb, var(--phi-color-bg-container) 48%, transparent);
|
|
82
|
+
--phi-btn-border-color: color-mix(in srgb, var(--phi-color-text) 24%, transparent);
|
|
83
|
+
--phi-btn-border-color-hover: color-mix(in srgb, var(--phi-color-text) 40%, transparent);
|
|
84
|
+
--phi-btn-border-color-active: color-mix(in srgb, var(--phi-color-text) 40%, transparent);
|
|
85
|
+
--phi-btn-text-color: var(--phi-color-text);
|
|
86
|
+
--phi-btn-text-color-hover: var(--phi-color-text);
|
|
87
|
+
--phi-btn-text-color-active: var(--phi-color-text);
|
|
88
88
|
/* The frost itself is inline on the Button: a `backdrop-filter` in a stylesheet does not survive the build (styles/shell.css). */
|
|
89
89
|
}
|
|
90
90
|
|