diff options
Diffstat (limited to 'apps/website/src/components/base/CodeBlock.astro')
-rw-r--r-- | apps/website/src/components/base/CodeBlock.astro | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/apps/website/src/components/base/CodeBlock.astro b/apps/website/src/components/base/CodeBlock.astro index ceeecc0..fd2cdd6 100644 --- a/apps/website/src/components/base/CodeBlock.astro +++ b/apps/website/src/components/base/CodeBlock.astro @@ -19,45 +19,3 @@ <code></code> <code><cd>}</cd></code> </pre> - -<style> - /* thanks stackoverflow! https://stackoverflow.com/a/41309213 */ - pre { - white-space: pre-wrap; - padding: 10px; - color: #546E7A; - } - pre::before { - counter-reset: listing; - } - pre code { - counter-increment: listing; - text-align: left; - float: left; - clear: left; - font-family: 'Roboto Mono', monospace !important; - font-size: 12px; - height: 1.5em; - } - pre code::before { - content: counter(listing) " "; - display: inline-block; - float: left; - height: 3em; - width: 2em; - padding: 0; - margin-left: auto; - margin-right: 10px; - text-align: right; - font-family: 'Roboto Mono', monospace !important; - font-size: 12px; - } - - ca { color: #F07178; font-family: inherit; } - cb { color: #C792EA; font-family: inherit; } - cc { color: #82AAFF; font-family: inherit; } - cd { color: #EFF; font-family: inherit; } - ce { color: #89DDFF; font-family: inherit; } - cf { color: #C3E88D; font-family: inherit; } - cg { color: #F78C6C; font-family: inherit; } -</style> |