Skip to content

Commit cfd5e7e

Browse files
committed
change typeset of content
1 parent 9e489a3 commit cfd5e7e

File tree

1 file changed

+16
-38
lines changed

1 file changed

+16
-38
lines changed

public/css/base.css

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
/* 页面配置 */
2-
.container {
3-
width: 100%;
4-
height: 100%;
5-
}
2+
.container {width: 100%; height: 100%;}
63
body, html {
74
margin: 0px;
85
height: 100%;
96
overflow: hidden;
107
background-color: #1f2c39;
118
}
12-
.row {
13-
height: 100%;
14-
}
9+
.row {height: 100%;}
1510
/* 导航栏 + 目录栏 */
16-
.aside {
17-
height: 100%;
18-
}
11+
.aside {height: 100%;}
1912
/* 左侧导航栏 */
2013
.aside1 {
2114
background-color: #1f2c39;
@@ -29,19 +22,14 @@ body, html {
2922
padding-right: 0px;
3023
border-radius: 0px;
3124
}
32-
.avatar {
33-
width: 60px;
34-
height: 60px;
35-
}
25+
.avatar {width: 60px; height: 60px;}
3626
.aside1_bottom {
3727
width: 100%;
3828
position: absolute;
3929
bottom: 0px;
4030
left: 0px;
4131
}
42-
.aside1_bottom > .table {
43-
margin-bottom: 0px;
44-
}
32+
.aside1_bottom > .table {margin-bottom: 0px;}
4533
/* 中部目录栏 */
4634
.aside2 {
4735
background-color: #fafaf6;
@@ -62,30 +50,20 @@ body, html {
6250
text-align: center;
6351
color: #FFF;
6452
}
65-
.aside3-content {
66-
padding-left: 30px;
67-
padding-right: 30px;
68-
}
69-
#content {
70-
font-size: 18px;
71-
line-height: 1.8;
72-
}
73-
#content h2, h3 {
74-
line-height: 2;
75-
}
76-
blockquote p {
77-
font-size: 20px;
78-
}
53+
.aside3-content {padding-left: 30px;padding-right: 30px;}
54+
/* 文章内容排版 */
55+
a:hover {text-decoration:none;}
56+
#content {font-size: 18px; line-height: 1.5;}
57+
#content p {margin: 20px 0px;}
58+
#content ul, ol, dl, li {margin: 10px 0px;}
59+
#content h2, h3 {line-height: 2;}
60+
#content blockquote > :first-child {margin-top: 0; }
61+
#content blockquote > :last-child {margin-bottom: 0;}
7962
/* 其他配置 */
80-
.center {
81-
text-align: center;
82-
}
63+
.center { text-align: center;}
8364
.nav-pills>li.active>a, .nav-pills>li.active>a:hover, .nav-pills>li.active>a:focus {
8465
color: #2a6496;
8566
background-color: #fafaf6;
8667
}
8768
/* 显示评论按钮 */
88-
.show-commend {
89-
width: 100%;
90-
margin-bottom: 40px;
91-
}
69+
.show-commend {width: 100%; margin-bottom: 40px;}

0 commit comments

Comments
 (0)