8000 docs: tweaks · vuejs-pl/vuepress@00a97d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 00a97d3

Browse files
committed
docs: tweaks
1 parent 14dbd1e commit 00a97d3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/default-theme-config/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,21 +455,21 @@ In fact, The `stylus constants override` should be completed before all Stylus f
455455
Start from `0.12.0`, we split `override.styl` into two APIs: `override.styl` and `style.styl`. If you wrote styles at `override.styl` in the past, e.g.
456456

457457
``` stylus
458-
// override.styl
459-
$textColor = red // stylus constants override
458+
// .vuepress/override.styl
459+
$textColor = red // stylus constants override.
460460
461461
#my-style {} // your extra styles.
462462
```
463463

464464
You'll need to separate the style part to `style.styl`:
465465

466466
``` stylus
467-
// override.styl, SHOULD ONLY contain "stylus constants override".
467+
// .vuepress/override.styl, SHOULD ONLY contain "stylus constants override".
468468
$textColor = red
469469
```
470470

471471
``` stylus
472-
// style.styl, your extra styles
472+
// .vuepress/style.styl, your extra styles.
473473
#my-style {}
474474
```
475475

docs/zh/default-theme-config/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,12 @@ $codeBgColor = #282c34
420420

421421
### 将你的样式迁移到 `style.styl` <Badge text="0.12.0+"/>
422422

423-
事实上,`stylus 常量的 override` 应该在编译所有 Stylus 文件之前完成;而用户额外的 CSS 样式由应该被生成在最终样式文件的末尾。因此这两项职责不应该由同一个 stylus 文件来完成。
423+
事实上,`stylus 常量的 override` 应该在编译所有 Stylus 文件之前完成;而用户额外的 CSS 样式应该生成在最终样式文件的末尾。因此,这两项职责不应该由同一个 stylus 文件来完成。
424424

425425
`0.12.0` 开始,我们将 `override.styl` 拆分为两个 API:`override.styl``style.styl`。如果你过去在 `override.styl` 中书写了样式,如:
426426

427427
``` stylus
428-
// override.styl
428+
// .vuepress/override.styl
429429
$textColor = red // stylus 常量的 override
430430
431431
#my-style {} // 你的样式
@@ -434,12 +434,12 @@ $textColor = red // stylus 常量的 override
434434
你将需要将你的样式部分分离到 `style.styl`:
435435

436436
``` stylus
437-
// override.styl,应该仅仅包含 stylus 常量的 override
437+
// .vuepress/override.styl,应该仅仅包含 stylus 常量的 override
438438
$textColor = red
439439
```
440440

441441
``` stylus
442-
// style.styl,你的样式
442+
// .vuepress/style.styl,你的样式
443443
#my-style {}
444444
```
445445

0 commit comments

Comments
 (0)
0