diff options
author | wd <wd@wdicc.com> | 2017-03-11 10:59:31 +0300 |
---|---|---|
committer | wd <wd@wdicc.com> | 2017-03-11 10:59:31 +0300 |
commit | 041293c8388c4dae4b83029ff1a3140b1274cebc (patch) | |
tree | be49e5a011661254ee8057a9c00514002514314a /static | |
parent | a0b32e0b6568b4dc6876773ec2e9cfe6a3f0858f (diff) |
Add highlight support and many others feature
Diffstat (limited to 'static')
-rw-r--r-- | static/css/custom.css | 19 | ||||
-rw-r--r-- | static/css/hljs.css | 126 | ||||
-rw-r--r-- | static/font/hermit-medium-webfont.eot | bin | 0 -> 22804 bytes | |||
-rw-r--r-- | static/font/hermit-medium-webfont.ttf | bin | 0 -> 54144 bytes | |||
-rw-r--r-- | static/font/hermit-medium-webfont.woff | bin | 0 -> 24792 bytes |
5 files changed, 17 insertions, 128 deletions
diff --git a/static/css/custom.css b/static/css/custom.css index 96fa0a0..3188a29 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,3 +1,11 @@ +@font-face{ + font-family: 'MyHermit'; + src: url('/font/hermit-medium-webfont.eot'); + src: url('/font/hermit-medium-webfont.eot?#iefix') format('embedded-opentype'), + url('/font/hermit-medium-webfont.woff') format('woff'), + url('/font/hermit-medium-webfont.ttf') format('truetype'); +} + .subtitle { float: right; font-family: 'Slackey',cursive; @@ -5,12 +13,15 @@ margin-right: 100px; } +.tagcount { + color: #bbb; +} + /* for code */ -article code, article pre { +article code { background: oldlace; border: 1px solid oldlace; - font-family: "Hermit", Monaco, "Andale Mono", "lucida console", "Courier New", monospace; } -article code { + font-family: "MyHermit", "Hermit", "Monaco", "Andale Mono", "lucida console", "Courier New", monospace; font-size: 0.9em; padding: 1px 3px; margin: 0 3px; @@ -19,11 +30,13 @@ article code { -ms-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; } + article pre { font-size: 1 / 0.9em; line-height: 1.5; margin-top: 10px; padding: 5px 15px; + font-family: "Myhermit", "Hermit", "Monaco", "Andale Mono", "lucida console", "Courier New", monospace; overflow-x: auto; -webkit-border-radius: 5px; -moz-border-radius: 5px; diff --git a/static/css/hljs.css b/static/css/hljs.css index a8f730d..817e732 100644 --- a/static/css/hljs.css +++ b/static/css/hljs.css @@ -1,125 +1 @@ -/* - -github.com style (c) Vasily Polovnyov <vast@whiteants.net> - -*/ - -.hljs { - display: block; padding: 0.5em; - color: #333; - background: #f8f8f8 -} - -.code .comment, -.code .template_comment, -.diff .code .header, -.code .javadoc { - color: #998; - font-style: italic -} - -.code .keyword, -.css .rule .code .keyword, -.code .winutils, -.javascript .code .title, -.nginx .code .title, -.code .subst, -.code .request, -.code .status { - color: #333; - font-weight: bold -} - -.code .number, -.code .hexcolor, -.ruby .code .constant { - color: #099; -} - -.code .string, -.code .tag .code .value, -.code .phpdoc, -.tex .code .formula { - color: #d14 -} - -.code .title, -.code .id, -.coffeescript .code .params, -.scss .code .preprocessor { - color: #900; - font-weight: bold -} - -.javascript .code .title, -.lisp .code .title, -.clojure .code .title, -.code .subst { - font-weight: normal -} - -.code .class .code .title, -.haskell .code .type, -.vhdl .code .literal, -.tex .code .command { - color: #458; - font-weight: bold -} - -.code .tag, -.code .tag .code .title, -.code .rules .code .property, -.django .code .tag .code .keyword { - color: #000080; - font-weight: normal -} - -.code .attribute, -.code .variable, -.lisp .code .body { - color: #008080 -} - -.code .regexp { - color: #009926 -} - -.code .symbol, -.ruby .code .symbol .code .string, -.lisp .code .keyword, -.tex .code .special, -.code .prompt { - color: #990073 -} - -.code .built_in, -.lisp .code .title, -.clojure .code .built_in { - color: #0086b3 -} - -.code .preprocessor, -.code .pragma, -.code .pi, -.code .doctype, -.code .shebang, -.code .cdata { - color: #999; - font-weight: bold -} - -.code .deletion { - background: #fdd -} - -.code .addition { - background: #dfd -} - -.diff .code .change { - background: #0086b3 -} - -.code .chunk { - color: #aaa -} +.hljs{display:block;overflow-x:auto;padding:0.5em;color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:bold}.hljs-number,.hljs-literal,.hljs-variable,.hljs-template-variable,.hljs-tag .hljs-attr{color:#008080}.hljs-string,.hljs-doctag{color:#d14}.hljs-title,.hljs-section,.hljs-selector-id{color:#900;font-weight:bold}.hljs-subst{font-weight:normal}.hljs-type,.hljs-class .hljs-title{color:#458;font-weight:bold}.hljs-tag,.hljs-name,.hljs-attribute{color:#000080;font-weight:normal}.hljs-regexp,.hljs-link{color:#009926}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} diff --git a/static/font/hermit-medium-webfont.eot b/static/font/hermit-medium-webfont.eot Binary files differnew file mode 100644 index 0000000..f9cc496 --- /dev/null +++ b/static/font/hermit-medium-webfont.eot diff --git a/static/font/hermit-medium-webfont.ttf b/static/font/hermit-medium-webfont.ttf Binary files differnew file mode 100644 index 0000000..72dfdf5 --- /dev/null +++ b/static/font/hermit-medium-webfont.ttf diff --git a/static/font/hermit-medium-webfont.woff b/static/font/hermit-medium-webfont.woff Binary files differnew file mode 100644 index 0000000..7c57d3d --- /dev/null +++ b/static/font/hermit-medium-webfont.woff |