Skip to content

Commit

Permalink
代码块样式调整、超链接过长自动换行、代码块过长支持向右滑动
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyBling committed Aug 21, 2019
1 parent 550a59f commit f702367
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 9 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ mathjax: false
# Open link in a new tab | 是否在新窗口打开链接
open_in_new:
article: true # 文章链接
menu: true # 菜单
subNav: true # 导航菜单
menu: true # 导航菜单
subNav: true # 子菜单

# 打赏
# 打赏type设定:0-关闭打赏; 1-文章对应的md文件里有reward:true属性,才有打赏; 2-所有文章均有打赏
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/css.ejs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<link rel="stylesheet" type="text/css" href="<%=config.root%>./main.cc24aa.css">
<link rel="stylesheet" type="text/css" href="<%=config.root%>./main.d979ab.css">
2 changes: 1 addition & 1 deletion layout/_partial/script.ejs

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion source-src/css/article-inner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
}
}

ul,
ol {
font-size: 14px;
margin: 0px 20px;
Expand All @@ -146,8 +145,21 @@
margin-bottom: 1.6em;
}

ul {
font-size: 14px;
margin: 0px 20px;
list-style: disc;
margin-top: 1.6em;
margin-bottom: 1.6em;
}

li {

a {
word-wrap: break-word;
word-break: normal;
}

ul,
ol {
margin-left: 30px;
Expand Down
20 changes: 17 additions & 3 deletions source-src/css/highlight.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
.article-entry pre,
.article-entry .highlight {
background: #272822;
background: #1a0139;
margin: 10px 0;
padding: 10px 10px;
overflow: auto;
overflow: hidden;
overflow-x: auto;
color: #fff;
font-size: 0.9em;
line-height: 22.400000000000002px;

&::-webkit-scrollbar {
height: 5px;
background: #ccc;
border-radius: 0;
}

&::-webkit-scrollbar-thumb {
border-radius: 8px;
background-color: rgba(0, 0, 0, .2);
}

}

.article-entry .highlight .gutter pre,
.article-entry .highlight .gutter pre .line,
.article-entry .gist .gist-file .gist-data .line-numbers {
color: #666;
/* color: #666; */
color: #fc0000;
}

.article-entry pre,
Expand Down
1 change: 0 additions & 1 deletion source/main.cc24aa.css

This file was deleted.

1 change: 1 addition & 0 deletions source/main.d979ab.css

Large diffs are not rendered by default.

File renamed without changes.

0 comments on commit f702367

Please sign in to comment.