Skip to content

Commit 033a267

Browse files
committed
chore: update css & config
1 parent 5d2be06 commit 033a267

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/configs/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export const BLOG_NAME = 'Philip\'s blog'
55
export const HOME_PAGE = '/'
66
export const GITHUB = `https://github.com/${GITHUB_USER}`
77
export const IMG_FILE_PREFIX = NODE_ENV === "production" ? `https://media.githubusercontent.com/media/${GITHUB_USER}/blog/main/public/docs` : "http://localhost:3000/docs"
8-
export const POST_PRE_PAGE = 8
8+
export const POST_PRE_PAGE = 10
99
export const CODE_LAB_PREFIX = `https://colab.research.google.com/github/${GITHUB_USER}/blog/blob/main/public`
1010
export const GITHUB_USER_CONTENT_PREFIX = `https://raw.githubusercontent.com/${GITHUB_USER}/blog/main/public`

src/modules/MdRender/index.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
}
4949

5050
#MD p {
51-
line-height: 1.8;
52-
margin-bottom: 12px;
51+
line-height: 2.2;
52+
margin-bottom: 24px;
5353
}
5454

5555
#MD .footer {
@@ -140,11 +140,6 @@
140140
color: var(--text-3);
141141
padding-right: 2px;
142142
}
143-
144-
#MD blockquote{
145-
position: relative;
146-
margin-top: 25px;
147-
}
148143
#MD blockquote::before{
149144
content: "! Note";
150145
width: 100%;
@@ -162,9 +157,11 @@
162157

163158

164159
#MD blockquote {
160+
position: relative;
161+
margin-top: 16px;
165162
background-color: var(--support-3);
166163
font-size: smaller;
167-
margin-bottom: 12px;
164+
margin-bottom: 34px;
168165
padding: 8px;
169166
padding-left: 12px;
170167
vertical-align: middle;

src/modules/MdRender/preview.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#MD-Preview{
22
overflow: hidden;
3-
line-height: 1.5;
3+
line-height: 2;
44
margin-top: -20px;
55
color: var(--text-1);
66
min-height:80px

0 commit comments

Comments
 (0)