Skip to content

Commit

Permalink
style code in posts
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Nov 17, 2008
1 parent ef0bf47 commit cc17fe6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
layout: default
---
<div id="post">
{{ content }}
</div>

<div id="related">
<h2>Related Posts</h2>
Expand Down
35 changes: 35 additions & 0 deletions css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,41 @@ ul.posts {
/*
/*****************************************************************************/

#post {

}

/* standard */

#post pre {
border: 1px solid #ddd;
background-color: #eef;
padding: 0 .4em;
}

#post code {
border: 1px solid #ddd;
background-color: #eef;
font-size: 95%;
padding: 0 .2em;
}

#post pre code {
border: none;
}

/* terminal */

#post pre.terminal {
border: 1px solid black;
background-color: #333;
color: white;
}

#post pre.terminal code {
background-color: #333;
}

#related {
margin-top: 2em;
}
Expand Down

0 comments on commit cc17fe6

Please sign in to comment.