From: Lucian Mogosanu Date: Sat, 20 Jul 2013 15:29:07 +0000 (+0300) Subject: css: add pandoc syntax highlighting X-Git-Tag: v0.1~22 X-Git-Url: https://git.mogosanu.ro/?a=commitdiff_plain;h=51365ebb6cc65a143f52df02b6b23d485c28c5a5;p=thetarpit.git css: add pandoc syntax highlighting --- diff --git a/css/default.css b/css/default.css index 158b6d1..4d45f36 100644 --- a/css/default.css +++ b/css/default.css @@ -25,6 +25,12 @@ a:hover { text-decoration: underline; } +code { + display: block; + padding: 0 3px 2px; + border: 0.5px solid #bebab0; +} + .info { color: #555; font-size: 15px; diff --git a/css/syntax.css b/css/syntax.css new file mode 100644 index 0000000..dc2f189 --- /dev/null +++ b/css/syntax.css @@ -0,0 +1,24 @@ +/* Generated by pandoc. */ +table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre { + margin: 0; padding: 0; border: 0; vertical-align: baseline; border: none; +} + +td.lineNumbers { border-right: 1px solid #AAAAAA; text-align: right; color: #AAAAAA; padding-right: 5px; padding-left: 5px; } +td.sourceCode { padding-left: 5px; } +pre.sourceCode span.kw { color: #007020; font-weight: bold; } +pre.sourceCode span.dt { color: #902000; } +pre.sourceCode span.dv { color: #40a070; } +pre.sourceCode span.bn { color: #40a070; } +pre.sourceCode span.fl { color: #40a070; } +pre.sourceCode span.ch { color: #4070a0; } +pre.sourceCode span.st { color: #4070a0; } +pre.sourceCode span.co { color: #60a0b0; font-style: italic; } +pre.sourceCode span.ot { color: #007020; } +pre.sourceCode span.al { color: red; font-weight: bold; } +pre.sourceCode span.fu { color: #06287e; } +pre.sourceCode span.re { } +pre.sourceCode span.er { color: red; font-weight: bold; } + +pre.sourceCode { + background-color: #f7f7f9; +} diff --git a/templates/default.html b/templates/default.html index 1a5f9df..94eac7f 100644 --- a/templates/default.html +++ b/templates/default.html @@ -8,6 +8,7 @@ +