Files
supabase/www/components/CodeBlock/CodeBlock.module.css
Jonathan Summers-Muir 92dd969415 chore: updated to use MDX
• broken the header links
• we can now use components in blog posts
• added <CodeBlock> to one of the posts to show JS example
• added Copy button to CodeBlock, which can also be hidden.
2021-02-22 12:01:22 +08:00

26 lines
387 B
CSS

.code-block {
@apply rounded-b-lg;
/* padding-top: 8px !important; */
@apply border border-gray-600;
}
.code-block::before {
content: '';
background: #1e1e1e;
height: 10px;
width: 48px;
display: block;
}
.code-block::after {
content: '';
background: #1e1e1e;
height: 12px;
width: 48px;
display: block;
}
.code-block code .linenumber {
margin-right: 4px;
}