Skip to content

Commit

Permalink
docs: update docs and style
Browse files Browse the repository at this point in the history
  • Loading branch information
ifyun committed Mar 11, 2024
1 parent 443d158 commit e13d8c1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
12 changes: 0 additions & 12 deletions public/docs/01.start.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,3 @@

- Visual Studio Code 可以使用 [Live Preview](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server) 插件
- IntelliJ IDEA,WebStorm 可以在编辑器中选择浏览器打开

## 自定义主题

你可以覆写主题变量来修改样式,例如自定义字体/字重:

```css
:root {
--font: "Source Han Sans SC", sans-serif !important;
--font-weight: 300 !important;
--font-weight-bold: 500 !important;
}
```
File renamed without changes.
14 changes: 13 additions & 1 deletion public/docs/04.theme_var.md → public/docs/04.theme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# 主题变量
# 修改颜色主题

你可以覆写主题变量来修改配色,例如自定义字体/字重:

```css
:root {
--font: "Source Han Sans SC", sans-serif !important;
--font-weight: 300 !important;
--font-weight-bold: 500 !important;
}
```

## 主题变量

| CSS 变量 | 说明 |
| :------------------------ | :-------------------- |
Expand Down
4 changes: 2 additions & 2 deletions public/docs/@menu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- [使用](01.start.md)
- [扩展](02.extend.md)
- [样式预览](03.style_preview.md)
- [主题变量](04.theme_var.md)
- [样式预览](03.preview.md)
- [修改颜色主题](04.theme.md)
- [部署](05.deploy.md)
2 changes: 1 addition & 1 deletion src/style/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
--side-color-back: #f8f8fa;
--active-color: #f7ab1d;
--link-color: #5bae50;
--inline-code-color: #3188d0;
--inline-code-color: #8b929f;
--inline-code-back: #f8f8fa;
--block-code-back: #f8f8fa;
--line-number-color: #5c6370;
Expand Down
3 changes: 2 additions & 1 deletion src/style/markdown.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.markdown-body {
font-size: var(--markdown-font-size);
line-height: 1.5em;
padding: 0 2.5em;
padding: 0 3.5em;

h1,
h2,
Expand Down Expand Up @@ -154,6 +154,7 @@
background: var(--inline-code-back);
padding: 1px 6px;
border-radius: 6px;
white-space: nowrap;
}

blockquote {
Expand Down

0 comments on commit e13d8c1

Please sign in to comment.