Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Octopress can handle tables, but by default they have no style. This commit adds GitHub-like style for tables. Fixes #78
- Loading branch information
1 parent
cfe0e45
commit f38b711
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
@import "partials/syntax"; | ||
@import "partials/archive"; | ||
@import "partials/footer"; | ||
@import "partials/tables"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |