From 5ceed92a694ac865e2f677ec98b17cf42b41c87b Mon Sep 17 00:00:00 2001 From: jiyinyiyong Date: Sat, 18 May 2013 10:46:37 +0800 Subject: [PATCH] limit the width of a link --- public/stylesheets/style.css | 13 ++++++++++--- views/topic/index.html | 7 ++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 1e255df..97bdb7f 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -11,6 +11,13 @@ body, p { font-family: "Helvetica Neue", Helvetica, "Wenquanyi Micro Hei", Arial, sans-serif; word-break: break-all; } +#main p a { + white-space: nowrap; + max-width: 600px; + overflow: hidden; + display: inline-block; + text-overflow: ellipsis; +} #wrapper { } #main { @@ -153,7 +160,7 @@ a.light:hover { width: 60px; } .topic_content { - padding: 10px 4px; + padding: 0px 6px; } .board .floor { line-height: 24px; @@ -611,8 +618,8 @@ form { } .topic_content p, .reply_content p { font-size: 14px; - line-height: 27px; - margin-bottom: 0px; + line-height: 28px; + margin: 28px 0px; } div[class$=content] > blockquote > p { diff --git a/views/topic/index.html b/views/topic/index.html index 864c469..13194dd 100644 --- a/views/topic/index.html +++ b/views/topic/index.html @@ -48,8 +48,7 @@
-

<% if(topic.top){%>[置顶]<% } %><%= topic.title %>

-
+

<% if(topic.top){%>[置顶]<% } %><%= topic.title %>

<%- topic.content %>
@@ -71,7 +70,9 @@ <% } %> - 分享到 weibo + 分享到 weibo <% if (locals.current_user) { %> <% if (!topic.in_collection) { %>