Skip to content

Commit 4f529ef

Browse files
committed
Merge pull request cnodejs#321 from jiyinyiyong/reply-tweaks
change fontface; use 15px fonts; limit name width
2 parents 0fadd17 + ab9f9a3 commit 4f529ef

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

public/stylesheets/common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
body, p, input, textarea {
22
font-size: 14px;
3-
font-family: "Lao MN", "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Wenquanyi Micro Hei", "Microsoft Yahei", Arial, sans-serif;
3+
font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Wenquanyi Micro Hei", "Microsoft Yahei", Arial, sans-serif;
44
word-break: break-word;
55
}
66
textarea, input[type="text"],

public/stylesheets/style.css

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ body {
4747
margin-top: 8px;
4848
display: inline-block;
4949
line-height: 2em;
50+
font-family: Optima, "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Wenquanyi Micro Hei", "Microsoft Yahei", Arial, sans-serif;
5051
}
5152
#content .changes {
5253
font-size: 11px;
@@ -358,8 +359,8 @@ a.tag_big {
358359
}
359360
.user_avatar img, .user_big_avatar img {
360361
box-shadow: 0px 1px 2px hsla(0, 0%, 0%, 0.5);
361-
width: 32px;
362-
height: 32px;
362+
width: 30px;
363+
height: 30px;
363364
}
364365
a.user_avatar:hover {
365366
text-decoration: none;
@@ -369,8 +370,6 @@ a.user_avatar:hover {
369370
width: 48px;
370371
margin-right: 0.5em;
371372
}
372-
.user_card .user_name {
373-
}
374373
.cell .user_avatar {
375374
}
376375
.user_big_avatar {
@@ -414,6 +413,14 @@ a.user_avatar:hover {
414413
font-size: 14px;
415414
margin-left: 1em;
416415
}
416+
.user_name {
417+
max-width: 120px;
418+
overflow: hidden;
419+
text-overflow: ellipsis;
420+
white-space: nowrap;
421+
display: inline-block;
422+
vertical-align: middle;
423+
}
417424
.reply_author {
418425
font-size: 11px;
419426
}
@@ -475,7 +482,8 @@ a.topic_title {
475482
display: inline-block;
476483
vertical-align: middle;
477484
font-size: 16px;
478-
line-height: 2em;
485+
line-height: 30px;
486+
font-family: Optima, "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Wenquanyi Micro Hei", "Microsoft Yahei", Arial, sans-serif;
479487
}
480488
#topic_list a.topic_title {
481489
color: #333;
@@ -563,6 +571,7 @@ img.unread {
563571
}
564572
.preview {
565573
padding: 0.5em;
574+
font-size: 15px;
566575
}
567576
.preview p > img {
568577
display: block;
@@ -703,7 +712,7 @@ textarea#title {
703712
.reply_content p,
704713
.reply_form p,
705714
.preview p {
706-
font-size: 16px;
715+
font-size: 15px;
707716
line-height: 2em;
708717
}
709718
#main .topic_content p a.content_img,
@@ -764,7 +773,7 @@ textarea.editor {
764773
line-height: 2em;
765774
height: 100px;
766775
resize: vertical;
767-
font-size: 14px;
776+
font-size: 15px;
768777
padding: 0.5em;
769778
border: none;
770779
}

views/user/top.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<li>
22
<span class='top_score'><%= user.score %></span>
3-
<span><a href="/user/<%= user.name %>"><%= user.name %></a></span>
3+
<span class="user_name"><a href="/user/<%= user.name %>"><%= user.name %></a></span>
44
</li>

0 commit comments

Comments
 (0)