Skip to content

Commit

Permalink
Adds Sass styles for tables
Browse files Browse the repository at this point in the history
Octopress can handle tables, but by default they have no style.
This commit adds GitHub-like style for tables.

Fixes #78
  • Loading branch information
bandrzejczak committed Mar 9, 2015
1 parent cfe0e45 commit f38b711
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions sass/_partials.scss
Expand Up @@ -5,3 +5,4 @@
@import "partials/syntax";
@import "partials/archive";
@import "partials/footer";
@import "partials/tables";
21 changes: 21 additions & 0 deletions sass/partials/_tables.scss
@@ -0,0 +1,21 @@
:not(.highlight) > table {
margin: 0 auto 1.5em auto;

tr {
background-color: #fff;
border-top: 1px solid #ccc;

th, td {
padding: 6px 13px;
border: 1px solid #ddd;
}

th {
font-weight: bold;
}
}

tr:nth-child(2n) {
background-color: #f8f8f8;
}
}

0 comments on commit f38b711

Please sign in to comment.