From 3c58a743f66ed91aa1454784c1d34244f961f51d Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 25 Apr 2019 10:31:41 +0300 Subject: [PATCH] tango.css --- static/css/tango.css | 73 ++++++++++++++++++++++++++++++++++++++++++++ templates/base.html | 1 + 2 files changed, 74 insertions(+) create mode 100644 static/css/tango.css diff --git a/static/css/tango.css b/static/css/tango.css new file mode 100644 index 0000000..0788e30 --- /dev/null +++ b/static/css/tango.css @@ -0,0 +1,73 @@ +/* ============================================================================== + Tango (pandoc built-in style) + ============================================================================== + Style based on Pygments' "tango" colors. + + This stylesheet was produced using Pandoc v2.0.5. + + Pandoc is (c) 2006-2017 John MacFarlane (jgm@berkeley.edu). + Released under the GPL, version 2 or greater. + ------------------------------------------------------------------------------ +*/ +a.sourceLine { display: inline-block; line-height: 1.25; border-bottom: 0; } +a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; border-bottom: 0; } +a.sourceLine:empty { height: 1.2em; position: absolute; border-bottom: 0; } +.sourceCode { overflow: visible; } +code.sourceCode { white-space: pre; position: relative; } +div.sourceCode { margin: 1em 0; } +pre.sourceCode { margin: 0; } +@media screen { +div.sourceCode { overflow: auto; } +} +@media print { +code.sourceCode { white-space: pre-wrap; } +a.sourceLine { text-indent: -1em; padding-left: 1em; } +} +pre.numberSource a.sourceLine + { position: relative; } +pre.numberSource a.sourceLine:empty + { position: absolute; } +pre.numberSource a.sourceLine::before + { content: attr(data-line-number); + position: absolute; left: -5em; text-align: right; vertical-align: baseline; + border: none; pointer-events: all; + -webkit-touch-callout: none; -webkit-user-select: none; + -khtml-user-select: none; -moz-user-select: none; + -ms-user-select: none; user-select: none; + padding: 0 4px; width: 4em; + color: #aaaaaa; + } +pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } +div.sourceCode + { background-color: #f8f8f8; } +@media screen { +a.sourceLine::before { text-decoration: underline; } +} +code span.al { color: #ef2929; } /* Alert */ +code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */ +code span.at { color: #c4a000; } /* Attribute */ +code span.bn { color: #0000cf; } /* BaseN */ +code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */ +code span.ch { color: #4e9a06; } /* Char */ +code span.cn { color: #000000; } /* Constant */ +code span.co { color: #8f5902; font-style: italic; } /* Comment */ +code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */ +code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */ +code span.dt { color: #204a87; } /* DataType */ +code span.dv { color: #0000cf; } /* DecVal */ +code span.er { color: #a40000; font-weight: bold; } /* Error */ +code span.ex { } /* Extension */ +code span.fl { color: #0000cf; } /* Float */ +code span.fu { color: #000000; } /* Function */ +code span.im { } /* Import */ +code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */ +code span.kw { color: #204a87; font-weight: bold; } /* Keyword */ +code span.op { color: #ce5c00; font-weight: bold; } /* Operator */ +code span.ot { color: #8f5902; } /* Other */ +code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */ +code span.sc { color: #000000; } /* SpecialChar */ +code span.ss { color: #4e9a06; } /* SpecialString */ +code span.st { color: #4e9a06; } /* String */ +code span.va { color: #000000; } /* Variable */ +code span.vs { color: #4e9a06; } /* VerbatimString */ +code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */ diff --git a/templates/base.html b/templates/base.html index f62e3ec..3eae63b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -73,6 +73,7 @@ {% endif %} + {% if CUSTOM_CSS %}