From 6402cf0edcb7a5f919b983948e06b2f41c3db6e7 Mon Sep 17 00:00:00 2001 From: Hendrik Mans Date: Mon, 20 Feb 2012 17:23:42 +0100 Subject: [PATCH] Use same H1 style for link and article posts. --- lib/views/partials/_post.haml | 10 +++------- lib/views/schnitzelpress.scss | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/views/partials/_post.haml b/lib/views/partials/_post.haml index b675167..eda797c 100644 --- a/lib/views/partials/_post.haml +++ b/lib/views/partials/_post.haml @@ -1,6 +1,5 @@ - complete ||= false -- show_title ||= post.article_post? && post.title.present? -- show_link ||= post.link_post? +- show_title ||= post.title.present? - show_summary ||= post.summary.present? - show_body ||= complete || !show_summary - show_read_more ||= !complete && post.summary.present? @@ -11,11 +10,8 @@ %header - if show_title %h1 - %a{href: post.to_url}= post.title - - if show_link - %h1 - %a{href: post.link}= post.title - ➝ + %a{href: post.link || post.to_url}= post.title + = "➝" if post.link_post? - if show_summary .summary diff --git a/lib/views/schnitzelpress.scss b/lib/views/schnitzelpress.scss index 0cf05c8..e32e8d3 100644 --- a/lib/views/schnitzelpress.scss +++ b/lib/views/schnitzelpress.scss @@ -27,12 +27,13 @@ body { /* posts */ article.post { &.draft header h1 { background-color: #ccc; } - &.link header { + header { h1 { font-size: 100%; background: none; text-transform: none; padding: none; + color: lighten($color-link, 30%); } font: $font-header; font-weight: bold; @@ -40,7 +41,6 @@ article.post { display: inline-block; line-height: 150%; border-bottom: 2px solid $color-link-underline; - color: darken($color-page-background, 30%); a { border: none; }