Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cn): translate plugins/official/typography.md #115

Merged
merged 1 commit into from
Nov 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions plugins/official/typography.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Typography
# 排版 {#typography}

## Utilities
## 工具类 {#utilities}

| Class | Body font size |
| Class | Body 字体大小 |
| :---------- | :-------------- |
| `prose-sm` | 0.875rem (14px) |
| `prose` | 1rem (16px) |
| `prose-lg` | 1.125rem (18px) |
| `prose-xl` | 1.25rem (20px) |
| `prose-2xl` | 1.5rem (24px) |

| Class | Link color |
| Class | 链接颜色 |
| :------------- | :----------- |
| `prose-red` | `red.600` |
| `prose-yellow` | `yellow.600` |
Expand All @@ -20,7 +20,7 @@
| `prose-purple` | `purple.600` |
| `prose-pink` | `pink.600` |

## Basic Usage
## 基本用法 {#basic-usage}

```js windi.config.js
export default {
Expand All @@ -34,7 +34,7 @@ export default {
}
```

Now you can use the `prose` utility class (or one of the variants) on the wrapping element to style the HTML elements contained:
现在你可以使用 `prose` 工具类 (或者其中一种可变修饰) 来设置包裹 HTML 元素的样式:

```html
<article class="prose">
Expand All @@ -43,7 +43,7 @@ Now you can use the `prose` utility class (or one of the variants) on the wrappi
</article>
```

## Disabling size modifiers
## 禁用大小调节器 {#disabling-size-modifiers}

```js windi.config.js
export default {
Expand All @@ -59,7 +59,7 @@ export default {
}
```

## Customization
## 自定义配置 {#customization}

```js windi.config.js
export default {
Expand Down