all repos — h3rald @ 22161dc6b23605be4b266a45727afb355ec5204d

The sources of https://h3rald.com

Styled legacy comments.
h3rald h3rald@h3rald.com
Tue, 14 Sep 2010 11:49:12 +0200
commit

22161dc6b23605be4b266a45727afb355ec5204d

parent

6684eafb7c84bc796bb008ea1debaf5e650060ba

3 files changed, 27 insertions(+), 4 deletions(-)

jump to
M content/styles/_content.scsscontent/styles/_content.scss

@@ -216,6 +216,30 @@ .toc-top-link {

font-weight: normal; } +/* Legacy Comments */ + +#legacy-comments { + margin: 0 10px; +} + +.lc-header{ + margin: 20px 0 10px 0; + padding: 3px; + background: #F7F7F7; + color: #333; + line-height: normal; + height: auto; + font-weight: bold; + border: 1px solid rgba(0,0,0,.08); + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; +} +.lc-body { + margin: 0 10px; + font-size: 0.93em; +} + /* Classes */ .clear-left {

@@ -264,4 +288,3 @@

a:hover { color: $light-blue; } -
M content/styles/_vendor.scsscontent/styles/_vendor.scss

@@ -86,7 +86,7 @@ font-size: 0.93em;

.dsq-request-user-name small, .dsq-subscribe small, .dsq-sharing-options span small { font-size: 0.8em; } - .dsq-comment-message { + .dsq-comment-body { margin: 0 10px; } }
M layouts/legacy_comments.erblayouts/legacy_comments.erb

@@ -5,10 +5,10 @@ -----

<div id="legacy-comments"> <h3>Legacy Comments</h3> <p> - <em>These comments were imported automatically from an old version of this web site. Scroll <a href="#idc-container-parent">down</a> for the newest stuff.</em> + <em>These comments were imported automatically from an old version of this web site. Scroll <a href="#dsq-content">down</a> for the newest stuff.</em> </p> <% @item[:comments].each do |c| %> - <div id="comment-<%=c[:id]%>" class="legacy-comment"> + <div id="comment-<%=c[:id]%>" class="legacy-comment "> <div class="lc-header"><%= (c[:url].empty?) ? c[:author] : %{<a href="#{c[:url]}">#{c[:author]}</a>} %></div> <div class="lc-body"> <%= RedCloth.new(c[:body]).to_html %>