Skip to content

Commit

Permalink
💄 styles: 优化文章排版
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 14, 2021
1 parent 7a54f28 commit e71f73f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "power-yuque",
"version": "1.0.0",
"version": "0.0.1",
"description": "a chrome plugin to enhance yuque",
"private": true,
"author": "Arvin Xu(arvinx@foxmail.com)",
Expand Down
12 changes: 9 additions & 3 deletions src/contentScripts/yuque/typographic.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// 注入文章样式
#content {
#content,
.lake-max-editor-content {
p {
margin-bottom: 8px;
}
Expand All @@ -10,14 +11,19 @@
h5,
h6 {
position: relative;
margin-top: 1rem;
margin-bottom: 1rem;
margin-top: 8px;
margin-bottom: 8px;
font-weight: bold;
line-height: 1.4;
cursor: text;
}
h2 {
border-bottom: 1px solid #eee;
padding-bottom: 4px;
margin-bottom: 16px;
}

li {
margin-bottom: 8px;
}
}

0 comments on commit e71f73f

Please sign in to comment.