Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Use same H1 style for link and article posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmans committed Feb 20, 2012
1 parent 236b6ec commit 6402cf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions 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?
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/views/schnitzelpress.scss
Expand Up @@ -27,20 +27,20 @@ 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;
background-color: darken($color-page-background, 5%);
display: inline-block;
line-height: 150%;
border-bottom: 2px solid $color-link-underline;
color: darken($color-page-background, 30%);
a {
border: none;
}
Expand Down

0 comments on commit 6402cf0

Please sign in to comment.