Skip to content

Commit

Permalink
modify: default container width from 860px to 46rem
Browse files Browse the repository at this point in the history
Change-Id: I604c9f2b2a86c52affd7e23b9c650d0a333f7936
  • Loading branch information
elonz committed Oct 23, 2021
1 parent abe9509 commit 57f3519
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ toothpaste
#### Bear 同款主题
灵感来自 [Bear](https://bear.app/cn/faq/Themes/About%20free%20and%20Pro%20themes%20in%20Bear/) 的主题,**共 22 款**

> 默认配置:字号 16px、页宽 860px。如果希望和 Bear 完全一致(字号 14px、页宽 40em),请自行更改 [bear-default.scss](src/themes/variables/bear-default.scss) 中的相关变量并重新编译。
> 默认配置:字号 16px、页宽 46rem。如果希望和 Bear 完全一致(字号 14px、页宽 40em),请自行更改 [bear-default.scss](src/themes/variables/bear-default.scss) 中的相关变量并重新编译。
![](media/bear-preview.png)

Expand Down
2 changes: 1 addition & 1 deletion src/themes/variables/bear-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $line-height: 1.6em;
$prism-line-height: 1.5rem;

/* container */
$md-body-max-width: 860px;
$md-body-max-width: 46rem;
$md-body-mg-h: auto;
$md-body-mg-v: 0px;
$md-body-pd-h: 3.2em;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/variables/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $code-font-family: monospace, Menlo-Regular, Menlo, Monaco, Consolas, 'Courier N
$line-height: 1.6em;

/* boxing */
$md-body-max-width: 860px;
$md-body-max-width: 46rem;

$md-body-mg-h: auto;
$md-body-mg-v: 0px;
Expand Down
2 changes: 0 additions & 2 deletions src/themes/variables/typora-bear-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

$mermaid-theme: default;

$md-body-max-width: 860px;

$prism-font-size: 14px; // TODO: 这里的命名可能要换一下,比如 prism => code-block
$prism-line-height: 1.6em;
$prism-pd: 10px;
Expand Down

0 comments on commit 57f3519

Please sign in to comment.