@phis/ui 0.5.2 → 0.5.4
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-cascader-control.d.ts +9 -1
- package/components/controls/phi-cascader-control.js +25 -3
- 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-money-control.d.ts +39 -0
- package/components/controls/phi-money-control.js +34 -0
- package/components/controls/phi-number-control.d.ts +6 -1
- package/components/controls/phi-number-control.js +3 -3
- package/components/controls/phi-options-provider.d.ts +7 -0
- package/components/controls/phi-options-provider.js +11 -0
- 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.d.ts +1 -0
- package/components/forms/extended-form-field-controls.js +24 -2
- package/components/forms/form-descriptor-runtime-client.js +13 -0
- package/components/forms/form-provider-contract.d.ts +43 -0
- package/components/forms/form-provider-contract.js +40 -0
- package/components/forms/money-field.d.ts +27 -0
- package/components/forms/money-field.js +78 -0
- package/components/forms/shared-form-provider-registry.js +6 -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-picker-binding.js +6 -1
- package/components/media/phi-media-restricted-icon.js +1 -1
- package/components/media/phi-site-font-assets.js +6 -1
- package/components/motion/phi-sequence-run.d.ts +14 -1
- package/components/motion/phi-sequence-run.js +22 -3
- package/components/motion/phi-sequence-viewport.js +3 -1
- package/components/overlays/phi-overlay-container-client.js +1 -1
- package/components/regions/presets/content-entry-editor-page-tree.js +3 -1
- 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/tables/client/phi-table-binding.js +16 -3
- package/components/trees/client/phi-tree-binding.js +6 -2
- 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/client/shared/phi-collection-view-binding.js +10 -2
- package/components/widgets/client/shared/phi-rendered-value.d.ts +9 -1
- package/components/widgets/client/shared/phi-rendered-value.js +20 -1
- package/components/widgets/config/background.d.ts +1 -1
- package/components/widgets/config/background.js +1 -1
- package/components/widgets/config/choice-shared.d.ts +2 -2
- package/components/widgets/inspector-field-row.js +1 -1
- package/components/widgets/label-sets/gallery.js +6 -0
- package/components/widgets/label-sets/inspector.js +2 -0
- package/components/widgets/label-sets/interval.d.ts +4 -0
- package/components/widgets/label-sets/interval.js +31 -0
- package/components/widgets/label-sets/record.js +6 -1
- package/components/widgets/label-sets/slot-upload.d.ts +4 -0
- package/components/widgets/label-sets/slot-upload.js +36 -0
- package/components/widgets/label-sets/table.js +6 -1
- package/components/widgets/label-types/gallery.d.ts +7 -0
- package/components/widgets/label-types/gallery.js +6 -0
- package/components/widgets/label-types/inspector.d.ts +1 -0
- package/components/widgets/label-types/inspector.js +1 -0
- package/components/widgets/label-types/interval.d.ts +16 -0
- package/components/widgets/label-types/interval.js +21 -0
- package/components/widgets/label-types/record.d.ts +3 -0
- package/components/widgets/label-types/record.js +2 -0
- package/components/widgets/label-types/slot-upload.d.ts +24 -0
- package/components/widgets/label-types/slot-upload.js +16 -0
- package/components/widgets/label-types/table.d.ts +3 -0
- package/components/widgets/label-types/table.js +2 -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 +2 -1
- package/controls.d.ts +7 -0
- package/controls.js +4 -0
- package/helpers/border-widget-style.d.ts +2 -2
- package/helpers/border-widget-style.js +2 -2
- package/helpers/cms-dialog.d.ts +43 -7
- package/helpers/cms-dialog.js +46 -4
- package/helpers/cms-layout-defaults.d.ts +2 -2
- package/helpers/cms-page-catalog.d.ts +13 -0
- package/helpers/cms-page-catalog.js +18 -2
- package/helpers/cms-preset-nodes.d.ts +13 -3
- package/helpers/cms-preset-nodes.js +3 -2
- package/helpers/cms-preset-page-tree.d.ts +4 -0
- package/helpers/cms-preset-page-tree.js +2 -0
- package/helpers/layout-style.d.ts +2 -2
- package/helpers/money-amount.d.ts +48 -0
- package/helpers/money-amount.js +131 -0
- package/helpers/page-layout-check.d.ts +4 -1
- package/helpers/page-layout-check.js +41 -2
- package/helpers/record-fields.d.ts +22 -0
- package/helpers/record-fields.js +109 -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 +7 -2
- package/module-records.js +5 -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 +11 -2
- package/plugins/runtime-modules/accounting/module.d.ts +1 -1
- package/plugins/runtime-modules/app/module.d.ts +1 -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/asset/services/collection.js +1 -0
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +2 -2
- package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +3 -0
- 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/offered-page-catalog.js +3 -3
- package/plugins/runtime-modules/builder/options-providers.js +7 -0
- 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/trees/phi-default-builder-area-preset-tree.js +6 -3
- 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.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 +98 -0
- package/plugins/runtime-modules/core/form-providers.d.ts +43 -0
- package/plugins/runtime-modules/core/server.js +5 -0
- package/plugins/runtime-modules/core/widgets/breadcrumb/client.d.ts +6 -3
- package/plugins/runtime-modules/core/widgets/breadcrumb/client.js +6 -5
- package/plugins/runtime-modules/core/widgets/breadcrumb/plugin.js +1 -1
- package/plugins/runtime-modules/core/widgets/breadcrumb/server.d.ts +9 -1
- package/plugins/runtime-modules/core/widgets/breadcrumb/server.js +29 -3
- 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/cascader/authoring.d.ts +3 -3
- package/plugins/runtime-modules/core/widgets/cascader/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/cascader/config.d.ts +8 -2
- package/plugins/runtime-modules/core/widgets/cascader/config.js +22 -0
- package/plugins/runtime-modules/core/widgets/checkbox-group/config.d.ts +1 -1
- 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/authoring.js +12 -3
- package/plugins/runtime-modules/core/widgets/gallery/client.d.ts +4 -1
- package/plugins/runtime-modules/core/widgets/gallery/client.js +38 -21
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +18 -0
- package/plugins/runtime-modules/core/widgets/gallery/config.js +24 -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/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/multi-select/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/record/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/record/client.js +8 -2
- package/plugins/runtime-modules/core/widgets/record/config.js +4 -0
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +11 -0
- package/plugins/runtime-modules/core/widgets/segmented/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/select-box/config.d.ts +1 -1
- 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/slot-upload/authoring.js +2 -1
- package/plugins/runtime-modules/core/widgets/slot-upload/client.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/slot-upload/client.js +45 -24
- package/plugins/runtime-modules/core/widgets/slot-upload/config.d.ts +12 -4
- package/plugins/runtime-modules/core/widgets/slot-upload/config.js +18 -1
- package/plugins/runtime-modules/core/widgets/slot-upload/plugin.js +4 -2
- package/plugins/runtime-modules/core/widgets/slot-upload/server.d.ts +9 -3
- package/plugins/runtime-modules/core/widgets/slot-upload/server.js +17 -3
- package/plugins/runtime-modules/core/widgets/spacer/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/steps/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/table/client.js +4 -4
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +37 -0
- package/plugins/runtime-modules/core/widgets/table/config.js +3 -0
- package/plugins/runtime-modules/descriptor-compiler.d.ts +11 -1
- package/plugins/runtime-modules/descriptor-compiler.js +57 -8
- package/plugins/runtime-modules/editor/presets.d.ts +1 -0
- package/plugins/runtime-modules/groups/definition.d.ts +1 -1
- package/plugins/runtime-modules/groups/forms.d.ts +18 -0
- package/plugins/runtime-modules/groups/forms.js +2 -2
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +6 -4
- package/plugins/runtime-modules/localization/presets.d.ts +1 -0
- package/plugins/runtime-modules/news/presets.d.ts +1 -0
- package/plugins/runtime-modules/public/module.d.ts +1 -1
- package/plugins/runtime-modules/resolver.js +7 -0
- package/plugins/runtime-modules/revisions/presets.d.ts +1 -0
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +2 -2
- package/plugins/runtime-modules/theme/presets.d.ts +1 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +25 -2
- package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +4 -2
- package/plugins/runtime-modules/user-management/controller/client.js +6 -1
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +3 -3
- package/runtime-render-client.d.ts +1 -1
- package/runtime-render-client.js +2 -1
- package/server-helpers/cms-page-record.d.ts +26 -0
- package/server-helpers/cms-page-record.js +52 -0
- package/server-helpers/cms-request.js +48 -4
- package/server-helpers/record-fields.d.ts +62 -0
- package/server-helpers/record-fields.js +86 -0
- package/server-helpers/record-samples.d.ts +21 -0
- package/server-helpers/record-samples.js +49 -0
- package/styles/builder-scaffold.css +19 -19
- package/styles/controls.css +109 -109
- 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 +86 -80
- package/theme/antd-css-var-contract.js +92 -81
- 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 +8 -5
- package/theme/phi-theme-tokens.js +59 -28
- package/theme/phi-theme.d.ts +14 -2
- package/theme/phi-theme.js +14 -1
- package/theme/phi-tokens.d.ts +5 -0
- package/theme/phi-tokens.js +9 -0
- package/types/cms-module-descriptors.d.ts +9 -0
- package/types/cms-plugins.d.ts +27 -1
- package/types/collection-provider.d.ts +7 -0
- package/types/core-widget-placements.d.ts +42 -0
- package/types/record-provider.d.ts +109 -1
- package/types/table-widget.d.ts +33 -1
- package/types/table-widget.js +1 -0
- package/types/tree-widget.d.ts +7 -0
- package/types/widget-runtime.d.ts +5 -0
- package/types.d.ts +1 -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,10 @@ 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
294
|
}
|
|
295
295
|
|
|
296
296
|
/*
|
|
@@ -303,7 +303,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
303
303
|
.phi-header-nav .ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
|
|
304
304
|
display: flex;
|
|
305
305
|
align-items: center;
|
|
306
|
-
line-height: var(--
|
|
306
|
+
line-height: var(--phi-control-height);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
/*
|
|
@@ -316,21 +316,21 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
316
316
|
*/
|
|
317
317
|
.phi-menu-control--selection-pill.ant-menu.ant-menu-root.ant-menu-horizontal,
|
|
318
318
|
.phi-menu-control--selection-auto.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
|
|
319
|
-
--
|
|
319
|
+
--phi-menu-active-bar-height: 0px;
|
|
320
320
|
/*
|
|
321
321
|
* The Theme's Control shape at the default size: one Control line tall, so the radius a grown Control
|
|
322
322
|
* holds is exactly this entry's -- the shape's number, or the capsule under `pill`.
|
|
323
323
|
*/
|
|
324
|
-
--
|
|
325
|
-
--
|
|
326
|
-
--
|
|
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);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu),
|
|
330
330
|
.phi-menu-control--selection-auto.ant-menu-dark.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
|
|
331
331
|
align-self: center;
|
|
332
|
-
height: var(--
|
|
333
|
-
line-height: var(--
|
|
332
|
+
height: var(--phi-control-height);
|
|
333
|
+
line-height: var(--phi-control-height);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
.phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu)::after,
|
|
@@ -340,15 +340,15 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
340
340
|
|
|
341
341
|
/* The bar in dark mode as well: no ground, and the bar Ant Design leaves out under a dark menu. */
|
|
342
342
|
.phi-menu-control--selection-underline.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
|
|
343
|
-
--
|
|
344
|
-
--
|
|
343
|
+
--phi-menu-dark-item-selected-bg: transparent;
|
|
344
|
+
--phi-menu-dark-item-selected-color: var(--phi-color-primary);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
.phi-menu-control--selection-underline.ant-menu-dark.ant-menu-horizontal
|
|
348
348
|
> :is(.ant-menu-item-selected, .ant-menu-submenu-selected)::after {
|
|
349
349
|
/* Ant Design's own `lineWidthBold`, which it derives as `lineWidth + 1`. */
|
|
350
|
-
border-bottom-width: calc(var(--
|
|
351
|
-
border-bottom-color: var(--
|
|
350
|
+
border-bottom-width: calc(var(--phi-line-width) + 1px);
|
|
351
|
+
border-bottom-color: var(--phi-color-primary);
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
/*
|
|
@@ -356,7 +356,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
356
356
|
* so a list of them reads as a list while every one is closed.
|
|
357
357
|
*/
|
|
358
358
|
.phi-markdown-folds :where(.ant-collapse-item + .ant-collapse-item) {
|
|
359
|
-
border-block-start: var(--
|
|
359
|
+
border-block-start: var(--phi-line-width, 1px) solid var(--phi-color-split);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
/* --- Labeled control ---------------------------------------------------------------------------- */
|
|
@@ -380,7 +380,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
380
380
|
*/
|
|
381
381
|
.phi-card-control {
|
|
382
382
|
--phi-card-control-radius: var(--phi-surface-radius);
|
|
383
|
-
--phi-card-control-line: var(--
|
|
383
|
+
--phi-card-control-line: var(--phi-line-width) var(--phi-line-type) var(--phi-color-border-secondary);
|
|
384
384
|
position: relative;
|
|
385
385
|
display: flex;
|
|
386
386
|
flex-direction: column;
|
|
@@ -388,23 +388,23 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
388
388
|
min-width: 0;
|
|
389
389
|
border: var(--phi-card-control-line);
|
|
390
390
|
border-radius: var(--phi-card-control-radius);
|
|
391
|
-
background: var(--
|
|
392
|
-
color: var(--
|
|
393
|
-
font-size: var(--
|
|
394
|
-
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);
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
.phi-card-control__head {
|
|
398
398
|
display: flex;
|
|
399
399
|
align-items: center;
|
|
400
|
-
gap: var(--
|
|
401
|
-
min-height: calc(var(--
|
|
402
|
-
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);
|
|
403
403
|
border-bottom: var(--phi-card-control-line);
|
|
404
404
|
border-radius: var(--phi-card-control-radius) var(--phi-card-control-radius) 0 0;
|
|
405
|
-
color: var(--
|
|
406
|
-
font-size: var(--
|
|
407
|
-
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);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
.phi-card-control__title {
|
|
@@ -417,20 +417,20 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
417
417
|
|
|
418
418
|
.phi-card-control__toolbar {
|
|
419
419
|
margin-inline-start: auto;
|
|
420
|
-
color: var(--
|
|
421
|
-
font-size: var(--
|
|
420
|
+
color: var(--phi-color-text);
|
|
421
|
+
font-size: var(--phi-font-size);
|
|
422
422
|
font-weight: normal;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.phi-card-control--small > .phi-card-control__head {
|
|
426
|
-
min-height: calc(var(--
|
|
427
|
-
padding: 0 var(--
|
|
428
|
-
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);
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
/* The cover runs to the frame's outer edge and takes its upper corners when nothing sits above it. */
|
|
432
432
|
.phi-card-control__cover {
|
|
433
|
-
margin: calc(var(--
|
|
433
|
+
margin: calc(var(--phi-line-width) * -1) calc(var(--phi-line-width) * -1) 0;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
.phi-card-control__cover > * {
|
|
@@ -465,13 +465,13 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
465
465
|
.phi-card-control--hoverable {
|
|
466
466
|
cursor: pointer;
|
|
467
467
|
transition:
|
|
468
|
-
box-shadow var(--
|
|
469
|
-
border-color var(--
|
|
468
|
+
box-shadow var(--phi-motion-duration-mid),
|
|
469
|
+
border-color var(--phi-motion-duration-mid);
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.phi-card-control--hoverable:hover {
|
|
473
473
|
border-color: transparent;
|
|
474
|
-
box-shadow: var(--
|
|
474
|
+
box-shadow: var(--phi-box-shadow);
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
/* --- Dropdown ------------------------------------------------------------------------------------ */
|
|
@@ -490,8 +490,8 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
490
490
|
align-items: center;
|
|
491
491
|
justify-content: center;
|
|
492
492
|
min-width: 3.5rem;
|
|
493
|
-
padding: var(--
|
|
494
|
-
border: var(--
|
|
493
|
+
padding: var(--phi-padding-xxs) var(--phi-padding-sm);
|
|
494
|
+
border: var(--phi-line-width) solid var(--phi-color-border);
|
|
495
495
|
border-radius: var(--phi-control-radius-sm);
|
|
496
496
|
color: inherit;
|
|
497
497
|
font-size: inherit;
|
|
@@ -500,14 +500,14 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
500
500
|
white-space: nowrap;
|
|
501
501
|
flex-shrink: 0;
|
|
502
502
|
transition:
|
|
503
|
-
color var(--
|
|
504
|
-
border-color var(--
|
|
503
|
+
color var(--phi-motion-duration-mid),
|
|
504
|
+
border-color var(--phi-motion-duration-mid);
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
/* Hovering anywhere on the trigger lights the pill -- the account avatar beside it included. */
|
|
508
508
|
.phi-dropdown-control:hover .phi-dropdown-control__pill {
|
|
509
|
-
border-color: var(--
|
|
510
|
-
color: var(--
|
|
509
|
+
border-color: var(--phi-color-primary-hover);
|
|
510
|
+
color: var(--phi-color-primary-hover);
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
/*
|
|
@@ -516,7 +516,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
516
516
|
* an icon glyph never matches it. Centred in its box, so it lines up with the label beside it.
|
|
517
517
|
*/
|
|
518
518
|
.phi-dropdown-control__chevron {
|
|
519
|
-
--phi-chevron-size: calc(var(--
|
|
519
|
+
--phi-chevron-size: calc(var(--phi-font-size) / 7 * 5);
|
|
520
520
|
position: relative;
|
|
521
521
|
display: inline-block;
|
|
522
522
|
flex-shrink: 0;
|
|
@@ -532,7 +532,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
532
532
|
left: calc(50% - var(--phi-chevron-size) * 0.3);
|
|
533
533
|
width: calc(var(--phi-chevron-size) * 0.6);
|
|
534
534
|
height: calc(var(--phi-chevron-size) * 0.15);
|
|
535
|
-
border-radius: var(--
|
|
535
|
+
border-radius: var(--phi-border-radius);
|
|
536
536
|
background-color: currentcolor;
|
|
537
537
|
content: "";
|
|
538
538
|
}
|
|
@@ -620,11 +620,11 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
620
620
|
* and its stylesheet is injected after this one.
|
|
621
621
|
*/
|
|
622
622
|
.phi-table-control.phi-table-control [class~="ant-table-summary"] {
|
|
623
|
-
background: var(--
|
|
623
|
+
background: var(--phi-table-footer-bg, var(--phi-color-fill-alter));
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
.phi-table-control [class~="ant-table-pagination"][class~="ant-pagination"] {
|
|
627
|
-
margin-block: var(--
|
|
627
|
+
margin-block: var(--phi-padding-sm) 0 !important;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
.phi-table-control
|
|
@@ -670,7 +670,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
670
670
|
display: inline-flex;
|
|
671
671
|
align-items: center;
|
|
672
672
|
justify-content: center;
|
|
673
|
-
min-block-size: var(--
|
|
673
|
+
min-block-size: var(--phi-control-height-sm);
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
/* --- Compact Select ------------------------------------------------------------------------------ */
|
|
@@ -683,13 +683,13 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
683
683
|
* height would leave the box short of `controlHeightSM` by the difference.
|
|
684
684
|
*/
|
|
685
685
|
[class~="ant-select"][class~="ant-select-sm"] {
|
|
686
|
-
--
|
|
687
|
-
--
|
|
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));
|
|
688
688
|
}
|
|
689
689
|
|
|
690
690
|
/* The list a compact Select opens writes as the field does; Ant Design gives every Select's list the body size. */
|
|
691
691
|
.phi-select-popup--sm [class~="ant-select-item"] {
|
|
692
|
-
font-size: var(--
|
|
692
|
+
font-size: var(--phi-font-size-sm);
|
|
693
693
|
}
|
|
694
694
|
|
|
695
695
|
/* --- Running text --------------------------------------------------------------------------------- */
|
|
@@ -722,9 +722,9 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
722
722
|
.phi-plain-table {
|
|
723
723
|
width: 100%;
|
|
724
724
|
border-collapse: collapse;
|
|
725
|
-
font-size: var(--
|
|
726
|
-
line-height: var(--
|
|
727
|
-
color: var(--
|
|
725
|
+
font-size: var(--phi-font-size-sm);
|
|
726
|
+
line-height: var(--phi-line-height-sm);
|
|
727
|
+
color: var(--phi-color-text);
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
/*
|
|
@@ -734,7 +734,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
734
734
|
*/
|
|
735
735
|
.phi-plain-table th,
|
|
736
736
|
.phi-plain-table td {
|
|
737
|
-
padding: var(--
|
|
737
|
+
padding: var(--phi-padding-xs) var(--phi-padding-sm);
|
|
738
738
|
text-align: start;
|
|
739
739
|
vertical-align: top;
|
|
740
740
|
hyphens: manual;
|
|
@@ -746,13 +746,13 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
.phi-plain-table th {
|
|
749
|
-
font-weight: var(--
|
|
750
|
-
color: var(--
|
|
751
|
-
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);
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
.phi-plain-table td {
|
|
755
|
-
border-block-end: 1px solid var(--
|
|
755
|
+
border-block-end: 1px solid var(--phi-color-split);
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
.phi-plain-table tbody tr:last-child td {
|
|
@@ -768,17 +768,17 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
768
768
|
* Beside the words the line is shared in the golden ratio: what is left after the gap between them goes
|
|
769
769
|
* 1 : φ to picture and text (`PHI_GOLDEN_RATIO`, 1 + φ = 2.618), so the text is 1.618 times as wide as the
|
|
770
770
|
* picture at any column width -- 415 px of picture beside 671 px of text in a 1120 px column, with the
|
|
771
|
-
* 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-*`.
|
|
772
772
|
*/
|
|
773
773
|
.phi-markdown-body {
|
|
774
774
|
/* The gap between picture and text, on the Phi scale (`PHI_SPACE.md`), not Ant Design's margins. */
|
|
775
|
-
--phi-markdown-float-gap: var(--
|
|
775
|
+
--phi-markdown-float-gap: var(--phi-padding-md, 34px);
|
|
776
776
|
--phi-markdown-float-width: calc((100% - var(--phi-markdown-float-gap)) / 2.618034);
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
.phi-markdown-body :is(img):not(:where(.phi-markdown-figure *)) {
|
|
780
780
|
display: block;
|
|
781
|
-
margin-block-end: var(--
|
|
781
|
+
margin-block-end: var(--phi-padding, 21px);
|
|
782
782
|
/*
|
|
783
783
|
* A picture is a surface, so its corners are the Theme's surface step (`--phi-surface-radius`, THEME.md
|
|
784
784
|
* "Control shape"): square under `square`, the widest step of the scale under `pill`.
|
|
@@ -806,7 +806,7 @@ h5.phi-typography, .phi-typography h5 {
|
|
|
806
806
|
* address says (`float=start|end|none`), in the same golden share and from the same container width as above.
|
|
807
807
|
*/
|
|
808
808
|
.phi-markdown-figure {
|
|
809
|
-
margin: 0 0 var(--
|
|
809
|
+
margin: 0 0 var(--phi-padding, 21px);
|
|
810
810
|
}
|
|
811
811
|
|
|
812
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
|
|