用回valine评论系统,valine评论框样式美化

我感觉我一个处女座的就不应该搞前端,太吹毛求疵追求完美了,哪里有一点点觉得不漂亮就想改

博客的评论系统用过好几家(虽然都没有人评论
比如gitalk,来必力
之前用的来必力,加载慢的问题是解决了,但是总觉得登陆的反应也很慢
想来想去还是觉得valine好用

  1. 免登陆,使用方便,直接填了昵称和邮箱就可以评论
  2. 有回复邮件提醒功能!很好用

不过之前没用valine的原因时它评论框样式感觉不好看
所以这次我用回valine,首先改了样式

兰州小红鸡

好像也没太大变化,不过就是看着顺眼了

使用valine

这个没什么好说的,next主题在自带的,配置很简单,网上搜一下就有

添加样式表

在themes\next\source\css\custom目录下的custom.styl文件中添加如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199

/*valine 评论系统样式*/

div#comments.comments.v{
margin-top: 0px !important;
margin-left: 0px !important;
margin-right: 0px !important;
}

div.vheader.item2{
border-bottom: 1px solid #5f5f5f;
height: 35px !important;
}

.v .vwrap .vheader.item2 .vinput{
height: 30px !important;
border: 0px !important;
width: 25% !important;
margin: 0px !important;
}

input.vnick.vinput{
border-right: 2px solid #a4d8fa !important;
}

div.vcontrol{
padding-top: 0px !important;
}

div#comments.comments.v{
border: 0px;
}

.v .vwrap{
border: 2px solid black !important;
height: 210px !important;
border-radius: 6px !important;
overflow: visible !important;
counter-reset: avater;
}

.v .vwrap .vedit .vemojis{
width: 600px !important;
background-color: #fff !important;
border-radius: 5px !important;
}

.v .vwrap .vedit .vpreview {
width: 600px !important;
background-color: #fff !important;
border-radius: 5px !important;
}

.v .vbtn{
background-color: #5f5f5f !important;
color: #fff !important;
}

.v .vwrap .vedit .vctrl{
text-align: left !important;
}

.v .vwrap .vedit .vctrl span{
background-color: #7f7f7f !important;
color: #fff !important;
border-radius: 3px !important;
padding: 3px !important;
}

.v .vwrap .vedit .vctrl{
padding: 0px !important;
margin: 0px !important;
}

div.vedit{
height: 120px;
}

.v .veditor{
min-height: 70px !important;
height: 70px !important;
}


.v .vlist .vcard {
border: 1px dashed #49b1f5 !important;
}

.v .vlist .vcard .vhead .vsys{
display: none !important;
background-color: #fff !important;
}

.v .vlist .vcard .vh .vmeta .vat{
background-color: #7f7f7f !important;
color: #fff !important;
border-radius: 3px !important;
padding-left: 10px !important;
padding-right: 10px !important;
}

.v .vlist .vcard .vhead:before{

display: block;
float: left;
width: 50px;
height: 50px;
line-height: 50px;
margin: 0 12px 0 0;
color: #fff;
font-size: 15px;
font-weight: bold;
font-style: normal;
background-color: #55aacf;
border-radius: 50%;
text-align: center;

content: counter(avater)'楼';
counter-increment: avater;
}

.v .vlist .vcard .vquote{
margin-left: 80px;
}

.v .vlist .vcard .vquote{
counter-reset: avaters;
}

.v .vlist .vcard .vquote .vhead:before{
display: block;
float: left;
width: 38px;
height: 38px;
line-height: 38px;
margin: 0 12px 0 0;
color: #fff;
font-size: 15px;
font-weight: bold;
font-style: normal;
background-color: #fff;
border: 3px solid #60a1e5;
color: #60a1e5;
border-radius: 50%;
text-align: center;

content: counter(avaters);
counter-increment: avaters;
}

.v .vlist .vcard p{
margin-bottom: 0px !important;
color: #666;
text-align: left;
letter-spacing: 3px;
line-height: 25.59375px;
}
.v .vlist .vcard .vquote a.at{
float: left;
margin-right: 13px;
color: #567843;
text-decoration: none;
}

.v .vlist .vcard .vquote .vcontent{
font-size: 15px;
font-weight: 200;
}

.v .vlist .vcard .vcontent{
margin-top: 58px !important;
font-size: 15px !important;
font-weight: 500 !important;
padding-top: 0px !important;
}

.v .vlist .vcard .vhead .vnick{
font-size: 17px !important;
font-weight: 600 !important;
}

.v .vlist .vcard{
padding-top: 8px !important;
}

.v .vlist .vcard .vhead{
float: left !important;
}

.v .vlist .vcard .vh .vmeta{
float: right !important;
}

.v .vlist .vcard .vcontent.expand:after{
content: "点击查看全部" !important;
font-weight: 400 !important;
}

/**/

更新文件

  • hexo clean
  • hexo d -g

ok!








我是小鸡,这篇文章的标题是——用回valine评论系统,valine评论框样式美化
喜欢的话可以转载,不过记得标记出处

2018年11月01日