Skip to content

Commit

Permalink
improve rendering of code on the index page
Browse files Browse the repository at this point in the history
- style highlighted code blocks with darker background and border
- fix whitespace problems / invalid html on code blocks on the homepage
- update readme to remove warning about issues
  • Loading branch information
Jeff Dean committed Feb 14, 2014
1 parent bd20cba commit 9dc532d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,3 @@ for more information about adding dates and tags to each article.
```

1. (Optional) Rename the blog to something other than the default Heroku name. You can do this via the Heroku console after you log in.

Note: The styling of code highlighting is a bit broken when the code shows up on the homepage. If you would like to embed code in your
blog posts, let an instructor know.
10 changes: 5 additions & 5 deletions source/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ per_page: 10
.twelve.columns
- page_articles.each_with_index do |article, i|
.panel
%p
%h3
= link_to article.title, article
%span= article.date.strftime('%b %e')
%p= article.summary
%h3
= link_to article.title, article
%span= article.date.strftime('%b %e')
= find_and_preserve do
= article.summary

.row
.six.columns
Expand Down
9 changes: 8 additions & 1 deletion source/stylesheets/app.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,11 @@
/* This beautiful CSS-File has been crafted with LESS (lesscss.org) and compiled by simpLESS (wearekiss.com/simpless) */
@import url(http://fonts.googleapis.com/css?family=PT+Sans:700);

@import url(http://fonts.googleapis.com/css?family=Lustria:400);
@import url(http://fonts.googleapis.com/css?family=Lustria:400);

pre.highlight {
border: 1px solid #ccc;
padding: 1em;
background: #ddd;
margin: 1em 0;
}

0 comments on commit 9dc532d

Please sign in to comment.