From 1f75a99f8c972dc72f05391b472641245f6d8a17 Mon Sep 17 00:00:00 2001
From: MadCcc <1075746765@qq.com>
Date: Tue, 15 Nov 2022 20:12:28 +0800
Subject: [PATCH] docs: use style tag
---
.../auto-complete/demo/certain-category.md | 5 ++--
components/avatar/demo/badge.md | 5 ++--
components/back-top/demo/basic.md | 5 ++--
.../badge/demo/colorful-with-count-debug.md | 5 ++--
components/badge/demo/ribbbon.md | 5 ++--
components/breadcrumb/demo/react-router.md | 5 ++--
components/button/demo/disabled.md | 5 ++--
components/button/demo/ghost.md | 4 +--
components/calendar/demo/card.md | 4 +--
components/calendar/demo/customize-header.md | 4 +--
components/calendar/demo/notice-calendar.md | 4 +--
components/card/demo/border-less.md | 4 +--
components/collapse/demo/custom.md | 4 +--
components/config-provider/demo/direction.md | 4 +--
components/config-provider/demo/locale.md | 4 +--
components/drawer/demo/form-in-drawer.md | 4 +--
components/drawer/demo/render-in-current.md | 4 +--
components/drawer/demo/user-profile.md | 4 +--
components/dropdown/demo/arrow-center.md | 4 +--
components/dropdown/demo/arrow.md | 4 +--
components/dropdown/demo/context-menu.md | 4 +--
components/dropdown/demo/custom-dropdown.md | 4 +--
components/form/demo/advanced-search.md | 4 +--
components/form/demo/control-hooks.md | 4 +--
components/form/demo/control-ref.md | 4 +--
components/form/demo/dynamic-form-item.md | 4 +--
components/form/demo/form-context.md | 4 +--
components/form/demo/form-in-modal.md | 4 +--
components/form/demo/normal-login.md | 4 +--
components/grid/demo/flex-align.md | 4 +--
components/grid/demo/flex-order.md | 4 +--
components/grid/demo/flex.md | 4 +--
components/grid/demo/gutter.md | 4 +--
components/grid/demo/playground.md | 4 +--
components/image/demo/preview-mask.md | 4 +--
components/input/demo/addon.md | 4 +--
components/input/demo/group.md | 4 +--
components/input/demo/tooltip.md | 4 +--
.../layout/demo/custom-trigger-debug.md | 4 +--
components/layout/demo/custom-trigger.md | 4 +--
components/layout/demo/fixed-sider.md | 4 +--
components/layout/demo/fixed.md | 4 +--
components/layout/demo/responsive.md | 4 +--
components/layout/demo/side.md | 4 +--
components/layout/demo/top-side-2.md | 4 +--
components/layout/demo/top-side.md | 4 +--
components/layout/demo/top.md | 4 +--
components/list/demo/loadmore.md | 4 +--
components/result/demo/error.md | 4 +--
components/segmented/demo/basic.md | 4 +--
components/select/demo/option-label-prop.md | 4 +--
components/select/demo/size.md | 4 +--
components/select/demo/status.md | 4 +--
components/slider/demo/icon-slider.md | 4 +--
components/space/demo/align.md | 4 +--
components/space/demo/compact-debug.md | 4 +--
components/space/demo/compact-nested.md | 4 +--
components/space/demo/compact.md | 4 +--
components/spin/demo/inside.md | 4 +--
components/statistic/demo/card.md | 4 +--
components/steps/demo/nav.md | 4 +--
components/steps/demo/step-next.md | 4 +--
components/switch/demo/text.tsx | 8 +++---
components/table/demo/drag-sorting.md | 4 +--
components/table/demo/edit-cell.md | 4 +--
components/table/demo/edit-row.md | 4 +--
components/table/demo/resizable-column.md | 4 +--
components/tabs/demo/card-top.md | 4 +--
components/tabs/demo/custom-tab-bar-node.md | 4 +--
components/tabs/demo/custom-tab-bar.md | 4 +--
components/tabs/demo/extra.md | 4 +--
components/tag/demo/animation.md | 5 ++--
components/tag/demo/control.md | 27 +++++++++----------
components/time-picker/demo/colored-popup.md | 4 +--
components/timeline/demo/custom.md | 4 +--
components/tooltip/demo/colorful.md | 4 +--
components/transfer/demo/table-transfer.md | 4 +--
components/tree/demo/search.md | 4 +--
components/upload/demo/drag-sorting.md | 4 +--
components/upload/demo/picture-style.md | 4 +--
docs/spec/font.en-US.md | 4 +--
docs/spec/font.zh-CN.md | 6 ++---
82 files changed, 184 insertions(+), 181 deletions(-)
diff --git a/components/auto-complete/demo/certain-category.md b/components/auto-complete/demo/certain-category.md
index 2845bc477d..4c8bfc0dee 100644
--- a/components/auto-complete/demo/certain-category.md
+++ b/components/auto-complete/demo/certain-category.md
@@ -6,7 +6,8 @@
Demonstration of [Lookup Patterns: Certain Category](https://ant.design/docs/spec/reaction#Lookup-Patterns). Basic Usage, set options of autocomplete with `options` property.
-```css
+
diff --git a/components/avatar/demo/badge.md b/components/avatar/demo/badge.md
index 67270fd52c..84e8f99e26 100644
--- a/components/avatar/demo/badge.md
+++ b/components/avatar/demo/badge.md
@@ -6,7 +6,8 @@
Usually used for reminders and notifications.
-```css
+
diff --git a/components/back-top/demo/basic.md b/components/back-top/demo/basic.md
index 46d42bc1ab..5a192040a9 100644
--- a/components/back-top/demo/basic.md
+++ b/components/back-top/demo/basic.md
@@ -6,11 +6,12 @@
The most basic usage.
-```css
+
diff --git a/components/badge/demo/ribbbon.md b/components/badge/demo/ribbbon.md
index 395a49ce7f..275d45620e 100644
--- a/components/badge/demo/ribbbon.md
+++ b/components/badge/demo/ribbbon.md
@@ -6,8 +6,9 @@
Use ribbon badge.
-```css
+
diff --git a/components/breadcrumb/demo/react-router.md b/components/breadcrumb/demo/react-router.md
index 3f653aa607..80dcc369d4 100644
--- a/components/breadcrumb/demo/react-router.md
+++ b/components/breadcrumb/demo/react-router.md
@@ -6,7 +6,8 @@
Used together with `react-router@6+`.
-```css
+
diff --git a/components/button/demo/ghost.md b/components/button/demo/ghost.md
index 5858082937..14c7ae9a72 100644
--- a/components/button/demo/ghost.md
+++ b/components/button/demo/ghost.md
@@ -6,9 +6,9 @@
`ghost` property will make button's background transparent, it is commonly used in colored background.
-```css
+
diff --git a/components/calendar/demo/card.md b/components/calendar/demo/card.md
index 13187000c8..bc1f9e73d1 100644
--- a/components/calendar/demo/card.md
+++ b/components/calendar/demo/card.md
@@ -6,13 +6,13 @@
Nested inside a container element for rendering in limited space.
-```css
+
diff --git a/components/card/demo/border-less.md b/components/card/demo/border-less.md
index d6bd49f106..3dcd34e344 100644
--- a/components/card/demo/border-less.md
+++ b/components/card/demo/border-less.md
@@ -6,12 +6,12 @@
A borderless card on a gray background.
-```css
+
diff --git a/components/dropdown/demo/arrow.md b/components/dropdown/demo/arrow.md
index cb92ab5426..c259a48102 100644
--- a/components/dropdown/demo/arrow.md
+++ b/components/dropdown/demo/arrow.md
@@ -6,7 +6,7 @@
You could display an arrow.
-```css
+
diff --git a/components/dropdown/demo/context-menu.md b/components/dropdown/demo/context-menu.md
index d55240131f..952a792228 100644
--- a/components/dropdown/demo/context-menu.md
+++ b/components/dropdown/demo/context-menu.md
@@ -6,12 +6,12 @@
The default trigger mode is `hover`, you can change it to `contextMenu`.
-```css
+
diff --git a/components/form/demo/control-ref.md b/components/form/demo/control-ref.md
index 1399c7e60a..378c910159 100644
--- a/components/form/demo/control-ref.md
+++ b/components/form/demo/control-ref.md
@@ -6,8 +6,8 @@
We recommend use `Form.useForm` to create data control. If you are using class component, you can get it by `ref`.
-```css
+
diff --git a/components/form/demo/dynamic-form-item.md b/components/form/demo/dynamic-form-item.md
index 1da3afa3bd..bb151dfc19 100644
--- a/components/form/demo/dynamic-form-item.md
+++ b/components/form/demo/dynamic-form-item.md
@@ -6,7 +6,7 @@
Add or remove form items dynamically. `add` function support config initial value.
-```css
+
diff --git a/components/form/demo/form-in-modal.md b/components/form/demo/form-in-modal.md
index e44d8f1192..6ee4cce4fc 100644
--- a/components/form/demo/form-in-modal.md
+++ b/components/form/demo/form-in-modal.md
@@ -8,8 +8,8 @@
When user visit a page with a list of items, and want to create a new item. The page can popup a form in Modal, then let user fill in the form to create an item.
-```css
+
diff --git a/components/form/demo/normal-login.md b/components/form/demo/normal-login.md
index 774f4f86fa..f916b95b91 100644
--- a/components/form/demo/normal-login.md
+++ b/components/form/demo/normal-login.md
@@ -8,7 +8,7 @@
Normal login form which can contain more elements.
-```css
+
diff --git a/components/grid/demo/flex-align.md b/components/grid/demo/flex-align.md
index 250fa734ee..8bbc09a141 100644
--- a/components/grid/demo/flex-align.md
+++ b/components/grid/demo/flex-align.md
@@ -6,8 +6,8 @@
Child elements vertically aligned.
-```css
+
diff --git a/components/grid/demo/flex-order.md b/components/grid/demo/flex-order.md
index c467f5df62..483f122988 100644
--- a/components/grid/demo/flex-order.md
+++ b/components/grid/demo/flex-order.md
@@ -6,8 +6,8 @@
To change the element sort by `order`.
-```css
+
diff --git a/components/grid/demo/flex.md b/components/grid/demo/flex.md
index d9d7897bec..94b7547fb1 100644
--- a/components/grid/demo/flex.md
+++ b/components/grid/demo/flex.md
@@ -8,8 +8,8 @@
Child elements depending on the value of the `start`, `center`, `end`, `space-between`, `space-around` and `space-evenly`, which are defined in its parent node typesetting mode.
-```css
+
diff --git a/components/grid/demo/gutter.md b/components/grid/demo/gutter.md
index fd357cbce0..ea78f831dc 100644
--- a/components/grid/demo/gutter.md
+++ b/components/grid/demo/gutter.md
@@ -18,12 +18,12 @@ You can use an array to set vertical spacing, `[horizontal, vertical]` `[16, { x
> vertical gutter was supported after `3.24.0`.
-```css
+
diff --git a/components/input/demo/addon.md b/components/input/demo/addon.md
index 6ad627e37b..cdec6438bd 100644
--- a/components/input/demo/addon.md
+++ b/components/input/demo/addon.md
@@ -6,7 +6,7 @@
Using pre & post tabs example.
-```css
+
diff --git a/components/input/demo/group.md b/components/input/demo/group.md
index 463d1105b8..42ada56d10 100644
--- a/components/input/demo/group.md
+++ b/components/input/demo/group.md
@@ -10,7 +10,7 @@ Input.Group example.
Note: You don't need `Col` to control the width in the `compact` mode.
-```css
+
diff --git a/components/layout/demo/custom-trigger-debug.md b/components/layout/demo/custom-trigger-debug.md
index 127bcf4ccf..40da4eb2df 100644
--- a/components/layout/demo/custom-trigger-debug.md
+++ b/components/layout/demo/custom-trigger-debug.md
@@ -2,7 +2,7 @@
修改内容前,请尝试此 Demo 查看样式是否抖动。
-```css
+
diff --git a/components/layout/demo/custom-trigger.md b/components/layout/demo/custom-trigger.md
index 98827a3967..76271fe80a 100644
--- a/components/layout/demo/custom-trigger.md
+++ b/components/layout/demo/custom-trigger.md
@@ -6,7 +6,7 @@
If you want to use a customized trigger, you can hide the default one by setting `trigger={null}`.
-```css
+
diff --git a/components/layout/demo/fixed-sider.md b/components/layout/demo/fixed-sider.md
index c90b786223..1d497bd569 100644
--- a/components/layout/demo/fixed-sider.md
+++ b/components/layout/demo/fixed-sider.md
@@ -6,7 +6,7 @@
When dealing with long content, a fixed sider can provide a better user experience.
-```css
+
diff --git a/components/layout/demo/top-side.md b/components/layout/demo/top-side.md
index 348bbf4603..344667ed23 100644
--- a/components/layout/demo/top-side.md
+++ b/components/layout/demo/top-side.md
@@ -6,7 +6,7 @@
Both the top navigation and the sidebar, commonly used in documentation site.
-```css
+
diff --git a/components/layout/demo/top.md b/components/layout/demo/top.md
index 8daa32345f..d18f006590 100644
--- a/components/layout/demo/top.md
+++ b/components/layout/demo/top.md
@@ -12,7 +12,7 @@ Generally, the mainnav is placed at the top of the page, and includes the logo,
Top-bottom structure is conform with the top-bottom viewing habit, it's a classical navigation pattern of websites. This pattern demonstrates efficiency in the main workarea, while using some vertical space. And because the horizontal space of the navigation is limited, this pattern is not suitable for cases when the first level navigation contains many elements or links.
-```css
+
diff --git a/components/result/demo/error.md b/components/result/demo/error.md
index 6b31ff9776..52adf4bdbb 100644
--- a/components/result/demo/error.md
+++ b/components/result/demo/error.md
@@ -6,11 +6,11 @@
Complex error feedback.
-```css
+
diff --git a/components/select/demo/option-label-prop.md b/components/select/demo/option-label-prop.md
index 61c9439676..44e4a1113a 100644
--- a/components/select/demo/option-label-prop.md
+++ b/components/select/demo/option-label-prop.md
@@ -6,8 +6,8 @@
Specify the prop name of Option which will be rendered in select box.
-```css
+
diff --git a/components/select/demo/size.md b/components/select/demo/size.md
index d96c461e1d..f5dc10df3c 100644
--- a/components/select/demo/size.md
+++ b/components/select/demo/size.md
@@ -6,7 +6,7 @@
The height of the input field for the select defaults to 32px. If size is set to large, the height will be 40px, and if set to small, 24px.
-```css
+
diff --git a/components/select/demo/status.md b/components/select/demo/status.md
index 9a44557590..2c00eb61e5 100644
--- a/components/select/demo/status.md
+++ b/components/select/demo/status.md
@@ -6,8 +6,8 @@
Add status to Select with `status`, which could be `error` or `warning`.
-```css
+
diff --git a/components/slider/demo/icon-slider.md b/components/slider/demo/icon-slider.md
index 3ebb9b6b47..79122013e5 100644
--- a/components/slider/demo/icon-slider.md
+++ b/components/slider/demo/icon-slider.md
@@ -6,7 +6,7 @@
You can add an icon beside the slider to make it meaningful.
-```css
+
diff --git a/components/space/demo/compact-debug.md b/components/space/demo/compact-debug.md
index 4d52972353..999d346756 100644
--- a/components/space/demo/compact-debug.md
+++ b/components/space/demo/compact-debug.md
@@ -6,7 +6,7 @@
Input addon debug.
-```css
+
diff --git a/components/space/demo/compact-nested.md b/components/space/demo/compact-nested.md
index 0a37589f40..f05f269b61 100644
--- a/components/space/demo/compact-nested.md
+++ b/components/space/demo/compact-nested.md
@@ -6,7 +6,7 @@
Nested `Space.Compact`
-```css
+
diff --git a/components/space/demo/compact.md b/components/space/demo/compact.md
index f3545c8003..4a9502bf35 100644
--- a/components/space/demo/compact.md
+++ b/components/space/demo/compact.md
@@ -6,7 +6,7 @@
Compact Mode for form component.
-```css
+
diff --git a/components/spin/demo/inside.md b/components/spin/demo/inside.md
index 8ca6eac0d7..da83248ea0 100644
--- a/components/spin/demo/inside.md
+++ b/components/spin/demo/inside.md
@@ -6,7 +6,7 @@
Spin in a container.
-```css
+
diff --git a/components/table/demo/edit-cell.md b/components/table/demo/edit-cell.md
index 38168770e9..21db4b01ea 100644
--- a/components/table/demo/edit-cell.md
+++ b/components/table/demo/edit-cell.md
@@ -6,7 +6,7 @@
Table with editable cells. When work with `shouldCellUpdate`, please take care of [closure](https://github.com/ant-design/ant-design/issues/29243).
-```css
+
diff --git a/components/table/demo/edit-row.md b/components/table/demo/edit-row.md
index 853950614a..e1c3ce37fe 100644
--- a/components/table/demo/edit-row.md
+++ b/components/table/demo/edit-row.md
@@ -8,10 +8,10 @@
Table with editable rows.
-```css
+
diff --git a/components/table/demo/resizable-column.md b/components/table/demo/resizable-column.md
index f93c40a332..1d63abc92f 100644
--- a/components/table/demo/resizable-column.md
+++ b/components/table/demo/resizable-column.md
@@ -6,7 +6,7 @@
Implement resizable column by integrate with [react-resizable](https://github.com/STRML/react-resizable). When sort needed, you can use [additional mark](https://codesandbox.io/s/zrj8xvyzxx) to prevent resize trigger sort.
-```css
+
diff --git a/components/tabs/demo/card-top.md b/components/tabs/demo/card-top.md
index 8d7015bdc6..5fb65aa47d 100644
--- a/components/tabs/demo/card-top.md
+++ b/components/tabs/demo/card-top.md
@@ -6,7 +6,7 @@
Should be used at the top of container, needs to override styles.
-```css
+
diff --git a/components/tabs/demo/custom-tab-bar-node.md b/components/tabs/demo/custom-tab-bar-node.md
index 626bd30790..a05918eddb 100644
--- a/components/tabs/demo/custom-tab-bar-node.md
+++ b/components/tabs/demo/custom-tab-bar-node.md
@@ -6,9 +6,9 @@
Use `react-dnd@15+` to make tabs draggable.
-```css
+
diff --git a/components/tabs/demo/custom-tab-bar.md b/components/tabs/demo/custom-tab-bar.md
index 8fdf248b16..77a9e18836 100644
--- a/components/tabs/demo/custom-tab-bar.md
+++ b/components/tabs/demo/custom-tab-bar.md
@@ -6,12 +6,12 @@
Use react-sticky.
-```css
+
diff --git a/components/tag/demo/animation.md b/components/tag/demo/animation.md
index c5182a9a38..2c449de2c3 100644
--- a/components/tag/demo/animation.md
+++ b/components/tag/demo/animation.md
@@ -6,12 +6,13 @@
Animating the Tag by using [rc-tween-one](https://github.com/react-component/tween-one).
-```css
+
diff --git a/components/time-picker/demo/colored-popup.md b/components/time-picker/demo/colored-popup.md
index 2813e48640..cf6bed62e8 100644
--- a/components/time-picker/demo/colored-popup.md
+++ b/components/time-picker/demo/colored-popup.md
@@ -6,8 +6,8 @@
Passing custom class to `TimePicker` popup
-```css
+
diff --git a/components/timeline/demo/custom.md b/components/timeline/demo/custom.md
index 51b574f15d..3ddd9a4417 100644
--- a/components/timeline/demo/custom.md
+++ b/components/timeline/demo/custom.md
@@ -6,7 +6,7 @@
Set a node as an icon or other custom element.
-```css
+
diff --git a/components/tooltip/demo/colorful.md b/components/tooltip/demo/colorful.md
index e5dbe95141..17498cbab2 100644
--- a/components/tooltip/demo/colorful.md
+++ b/components/tooltip/demo/colorful.md
@@ -6,8 +6,8 @@
We preset a series of colorful Tooltip styles for use in different situations.
-```css
+
diff --git a/components/transfer/demo/table-transfer.md b/components/transfer/demo/table-transfer.md
index ac4811c6b9..6335061a08 100644
--- a/components/transfer/demo/table-transfer.md
+++ b/components/transfer/demo/table-transfer.md
@@ -6,8 +6,8 @@
Customize render list with Table component.
-```css
+
diff --git a/components/tree/demo/search.md b/components/tree/demo/search.md
index cce6453a00..efba525052 100644
--- a/components/tree/demo/search.md
+++ b/components/tree/demo/search.md
@@ -6,11 +6,11 @@
Searchable Tree.
-```css
+
diff --git a/components/upload/demo/picture-style.md b/components/upload/demo/picture-style.md
index c983c35fe2..135ef89b41 100644
--- a/components/upload/demo/picture-style.md
+++ b/components/upload/demo/picture-style.md
@@ -6,7 +6,7 @@
If uploaded file is a picture, the thumbnail can be shown. `IE8/9` do not support local thumbnail show. Please use `thumbUrl` instead.
-```css
+
diff --git a/docs/spec/font.en-US.md b/docs/spec/font.en-US.md
index 015728c541..419a7dffcb 100644
--- a/docs/spec/font.en-US.md
+++ b/docs/spec/font.en-US.md
@@ -89,5 +89,5 @@ Text will be difficult to read if it is too close to the background color. To ac
The construction of the font system is the first step to achieve "the beauty of dynamic order". In practical design, we have three more advanced tips:
1. **Establish a systematic design thinking:** In the UI design of the same system, a systematic design thinking should be established first. The primary, secondary, auxiliary, title, display, and other types of fonts are planned in a unified manner. And then make any necessary fine tuning according to the specific situation. The establishment of a systematic design approach helps to increase the consistency of horizontal font landing, improve the cost-effectiveness of font uses, and avoid unnecessary style waste.
-1. **Less is more:**Visual design should be achieved with as few styles as possible. Avoid meaningless use of large numbers of font scales, colors, and font weight to emphasize visual or contrast relationships.
-1. **Try to make font scale dance like a note** When you need to expand any gap, you can try to choose the different sizes of the font from the font scale table, which will create a subtle rhythm between the word scales.
+2. **Less is more:** Visual design should be achieved with as few styles as possible. Avoid meaningless use of large numbers of font scales, colors, and font weight to emphasize visual or contrast relationships.
+3. **Try to make font scale dance like a note** When you need to expand any gap, you can try to choose the different sizes of the font from the font scale table, which will create a subtle rhythm between the word scales.
diff --git a/docs/spec/font.zh-CN.md b/docs/spec/font.zh-CN.md
index c331e6ea31..4e1098a7dc 100644
--- a/docs/spec/font.zh-CN.md
+++ b/docs/spec/font.zh-CN.md
@@ -86,6 +86,6 @@ Ant Design 受到 5 音阶以及自然律的启发定义了 10 个不同尺寸
字体系统的构建,是「动态秩序之美」的第一步。在实际的设计中,我们还有三点建议:
-1. **建立体系化的设计思路:**在同一个系统的 UI 设计中先建立体系化的设计思路,对主、次、辅助、标题、展示等类别的字体做统一的规划,再落地到具体场景中进行微调。建立体系化的设计思路有助于强化横向字体落地的一致性,提高字体应用的性价比,减少不必要的样式浪费。
-1. **少即是多:**在视觉展现上能够用尽量少的样式去实现设计目的。避免毫无意义的使用大量字阶、颜色、字重强调视觉重点或对比关系。
-1. **尝试让字体像音符一样跳跃:**在需要拉开差距的时候可以尝试在字阶表中跳跃地选择字体大小,会令字阶之间产生一种微妙的韵律感。
+1. **建立体系化的设计思路:** 在同一个系统的 UI 设计中先建立体系化的设计思路,对主、次、辅助、标题、展示等类别的字体做统一的规划,再落地到具体场景中进行微调。建立体系化的设计思路有助于强化横向字体落地的一致性,提高字体应用的性价比,减少不必要的样式浪费。
+2. **少即是多:** 在视觉展现上能够用尽量少的样式去实现设计目的。避免毫无意义的使用大量字阶、颜色、字重强调视觉重点或对比关系。
+3. **尝试让字体像音符一样跳跃:** 在需要拉开差距的时候可以尝试在字阶表中跳跃地选择字体大小,会令字阶之间产生一种微妙的韵律感。