Skip to content

Commit 57f3519

Browse files
author
elonz
committed
modify: default container width from 860px to 46rem
Change-Id: I604c9f2b2a86c52affd7e23b9c650d0a333f7936
1 parent abe9509 commit 57f3519

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ toothpaste
6666
#### Bear 同款主题
6767
灵感来自 [Bear](https://bear.app/cn/faq/Themes/About%20free%20and%20Pro%20themes%20in%20Bear/) 的主题,**共 22 款**
6868

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

src/themes/variables/bear-default.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $line-height: 1.6em;
3232
$prism-line-height: 1.5rem;
3333

3434
/* container */
35-
$md-body-max-width: 860px;
35+
$md-body-max-width: 46rem;
3636
$md-body-mg-h: auto;
3737
$md-body-mg-v: 0px;
3838
$md-body-pd-h: 3.2em;

src/themes/variables/default.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $code-font-family: monospace, Menlo-Regular, Menlo, Monaco, Consolas, 'Courier N
4747
$line-height: 1.6em;
4848

4949
/* boxing */
50-
$md-body-max-width: 860px;
50+
$md-body-max-width: 46rem;
5151

5252
$md-body-mg-h: auto;
5353
$md-body-mg-v: 0px;

src/themes/variables/typora-bear-default.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
$mermaid-theme: default;
99

10-
$md-body-max-width: 860px;
11-
1210
$prism-font-size: 14px; // TODO: 这里的命名可能要换一下,比如 prism => code-block
1311
$prism-line-height: 1.6em;
1412
$prism-pd: 10px;

0 commit comments

Comments
 (0)