Skip to content

Commit

Permalink
fix: Add table styles to minimal-blog
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Feb 29, 2020
1 parent c08574f commit 6e3d750
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ tags:
- Highlight
---

| Number | Title | Year |
| ------ | ---------------------------------------- | ---: |
| 1 | Harry Potter and the Philosopher’s Stone | 2001 |
| 2 | Harry Potter and the Chamber of Secrets | 2002 |
| 3 | Harry Potter and the Prisoner of Azkaban | 2004 |

[View raw (TEST.md)](https://raw.github.com/adamschwartz/github-markdown-kitchen-sink/master/README.md)

This is a paragraph.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
background: `#1A202C`,
heading: tailwind.colors.white,
divide: tailwind.colors.gray[8],
muted: tailwind.colors.gray[8],
},
},
},
Expand Down Expand Up @@ -110,6 +111,29 @@ export default {
fontStyle: `italic`,
},
},
table: {
width: `100%`,
my: 4,
borderCollapse: `separate`,
borderSpacing: 0,
[[`th`, `td`]]: {
textAlign: `left`,
py: `4px`,
pr: `4px`,
pl: 0,
borderColor: `muted`,
borderBottomStyle: `solid`,
},
},
th: {
verticalAlign: `bottom`,
borderBottomWidth: `2px`,
color: `heading`,
},
td: {
verticalAlign: `top`,
borderBottomWidth: `1px`,
},
},
text: {
...headingStyles,
Expand Down

0 comments on commit 6e3d750

Please sign in to comment.