Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad0d02e

Browse files
committed
样式调整
1 parent 5583127 commit ad0d02e

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

src/logic/topic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ func (self TopicLogic) Publish(ctx context.Context, me *model.Me, form url.Value
126126
desc := fmt.Sprintf(`一天发布推广过多或 Spam 扣除铜币 %d 个`, -award)
127127
user := DefaultUser.FindOne(ctx, "uid", me.Uid)
128128
DefaultUserRich.IncrUserRich(user, model.MissionTypeSpam, award, desc)
129+
130+
DefaultRank.GenDAURank(me.Uid, -1000)
129131
}
130132
}()
131133

static/css/main.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ footer#bottom { border-top: 1px solid rgba(0, 0, 0, 0.22); background-color: #ff
211211
.truncate {-o-text-overflow: ellipsis;-moz-text-overflow: ellipsis; -webkit-text-overflow: ellipsis;text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}
212212

213213
/* 弹窗登录框 */
214-
.login-pop {font-family: "microsoft yahei";display: none;top: 0;width: 405px;height: 300px;padding: 30px 40px 30px 5px;background: #fff;position: absolute;z-index: 1001;border-radius: 3px;}
214+
.login-pop {font-family: "microsoft yahei";display: none;top: 0;width: 405px;max-height: 350px;padding: 30px 30px 30px 10px;background: #fff;position: absolute;z-index: 1001;border-radius: 3px;}
215+
@media(max-width: 768px) {
216+
.login-pop { max-width: 350px; }
217+
.login-pop .form-horizontal .form-group { margin-left: 0px; }
218+
}
215219
.login-pop .login-form {}
216220
.login-pop .login-form .error {color:red; display:none;}
217221
.login-pop .login-form .form-input {padding-left:0px;}

static/js/comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
user.avatar = $pageComment.data('avatar'),
232232
comment.cmt_time = SG.timeago(comment.ctime);
233233
if (comment.reply_floor > 0) {
234-
comment.content = content.substr(2);
234+
comment.content = content.substr(1);
235235
}
236236
comment.reply_floor = 0;
237237
comment.content = parseCmtContent(comment.content);

template/common/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!--<link href="http://studygolang.qiniudn.com/cosmo_bootstrap.min.css" rel="stylesheet">-->
1717
<!--<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">-->
1818
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
19-
<link href="/static/css/main.css?v=1.1" rel="stylesheet"/>
19+
<link href="/static/css/main.css?v=1.4" rel="stylesheet"/>
2020
{{template "css" .}}
2121
<style type="text/css">
2222
#bottom .nav-content {

template/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<li><a href="/users">会员</a></li>
1010
<li class="active">登录</li>
1111
</ol>
12-
<div class="box_white">
12+
<div class="box_white cell">
1313
<form class="form-horizontal validate-form" role="form" action="/account/login" method="POST">
1414
<input type="hidden" name="redirect_uri" value="{{.redirect_uri}}">
1515
<fieldset>
@@ -31,7 +31,7 @@
3131
<input class="form-control required" type="password" id="passwd" name="passwd" placeholder="请输入密码">
3232
</div>
3333
</div>
34-
<div class="form-group form-group-sm">
34+
<div class="form-group form-group-sm" style="margin-left: 6px;">
3535
<div class="col-sm-offset-3 col-col-sm-6">
3636
<div class="checkbox">
3737
<label>

template/new_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
<td align="right" width="65"><span class="cc">{{$parent}}</span></td>
270270
<td style="line-height: 200%; padding-left: 10px; word-break: keep-all;">
271271
{{range $children}}
272-
<a href="/go/{{.ename}}" style="font-size: 14px;" class="noul" title="{{.name}}">{{.name}}</a>&nbsp; &nbsp;
272+
<a href="/go/{{.ename}}?fr=index_node" style="font-size: 14px;" class="noul" title="{{.name}}">{{.name}}</a>&nbsp; &nbsp;
273273
{{end}}
274274
</td>
275275
{{end}}

template/topics/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<label>{{$parent}}</label>
2929
<span class="childnodes">
3030
{{range $children}}
31-
<a href="/go/{{.ename}}" title="{{.name}}">{{.name}}</a>&nbsp;
31+
<a href="/go/{{.ename}}?fr=topic_node" title="{{.name}}">{{.name}}</a>&nbsp;
3232
{{end}}
3333
</span>
3434
{{end}}

0 commit comments

Comments
 (0)