Skip to content

Commit 26e9f44

Browse files
chore: use haddock code style
Signed-off-by: Tsung-Ju Lii <[email protected]>
1 parent 9d87d66 commit 26e9f44

File tree

3 files changed

+36
-108
lines changed

3 files changed

+36
-108
lines changed

docs/css/syntax.css

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,43 +24,43 @@ pre.numberSource code > span > a:first-child::before
2424
-khtml-user-select: none; -moz-user-select: none;
2525
-ms-user-select: none; user-select: none;
2626
padding: 0 4px; width: 4em;
27-
background-color: #232629;
28-
color: #7a7c7d;
27+
background-color: #ffffff;
28+
color: #a0a0a0;
2929
}
30-
pre.numberSource { margin-left: 3em; border-left: 1px solid #7a7c7d; padding-left: 4px; }
30+
pre.numberSource { margin-left: 3em; border-left: 1px solid #a0a0a0; padding-left: 4px; }
3131
div.sourceCode
32-
{ color: #cfcfc2; background-color: #232629; }
32+
{ color: #1f1c1b; background-color: #ffffff; }
3333
@media screen {
3434
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
3535
}
36-
code span { color: #cfcfc2; } /* Normal */
37-
code span.al { color: #95da4c; background-color: #4d1f24; font-weight: bold; } /* Alert */
38-
code span.an { color: #3f8058; } /* Annotation */
39-
code span.at { color: #2980b9; } /* Attribute */
40-
code span.bn { color: #f67400; } /* BaseN */
41-
code span.bu { color: #7f8c8d; } /* BuiltIn */
42-
code span.cf { color: #fdbc4b; font-weight: bold; } /* ControlFlow */
43-
code span.ch { color: #3daee9; } /* Char */
44-
code span.cn { color: #27aeae; font-weight: bold; } /* Constant */
45-
code span.co { color: #7a7c7d; } /* Comment */
46-
code span.cv { color: #7f8c8d; } /* CommentVar */
47-
code span.do { color: #a43340; } /* Documentation */
48-
code span.dt { color: #2980b9; } /* DataType */
49-
code span.dv { color: #f67400; } /* DecVal */
50-
code span.er { color: #da4453; text-decoration: underline; } /* Error */
51-
code span.ex { color: #0099ff; font-weight: bold; } /* Extension */
52-
code span.fl { color: #f67400; } /* Float */
53-
code span.fu { color: #8e44ad; } /* Function */
54-
code span.im { color: #27ae60; } /* Import */
55-
code span.in { color: #c45b00; } /* Information */
56-
code span.kw { color: #cfcfc2; font-weight: bold; } /* Keyword */
57-
code span.op { color: #cfcfc2; } /* Operator */
58-
code span.ot { color: #27ae60; } /* Other */
59-
code span.pp { color: #27ae60; } /* Preprocessor */
60-
code span.re { color: #2980b9; background-color: #153042; } /* RegionMarker */
36+
code span { color: #1f1c1b; } /* Normal */
37+
code span.al { color: #bf0303; background-color: #f7e6e6; font-weight: bold; } /* Alert */
38+
code span.an { color: #ca60ca; } /* Annotation */
39+
code span.at { color: #0057ae; } /* Attribute */
40+
code span.bn { color: #b08000; } /* BaseN */
41+
code span.bu { color: #644a9b; font-weight: bold; } /* BuiltIn */
42+
code span.cf { color: #1f1c1b; font-weight: bold; } /* ControlFlow */
43+
code span.ch { color: #924c9d; } /* Char */
44+
code span.cn { color: #aa5500; } /* Constant */
45+
code span.co { color: #898887; } /* Comment */
46+
code span.cv { color: #0095ff; } /* CommentVar */
47+
code span.do { color: #607880; } /* Documentation */
48+
code span.dt { color: #0057ae; } /* DataType */
49+
code span.dv { color: #b08000; } /* DecVal */
50+
code span.er { color: #bf0303; text-decoration: underline; } /* Error */
51+
code span.ex { color: #0095ff; font-weight: bold; } /* Extension */
52+
code span.fl { color: #b08000; } /* Float */
53+
code span.fu { color: #644a9b; } /* Function */
54+
code span.im { color: #ff5500; } /* Import */
55+
code span.in { color: #b08000; } /* Information */
56+
code span.kw { color: #1f1c1b; font-weight: bold; } /* Keyword */
57+
code span.op { color: #1f1c1b; } /* Operator */
58+
code span.ot { color: #006e28; } /* Other */
59+
code span.pp { color: #006e28; } /* Preprocessor */
60+
code span.re { color: #0057ae; background-color: #e0e9f8; } /* RegionMarker */
6161
code span.sc { color: #3daee9; } /* SpecialChar */
62-
code span.ss { color: #da4453; } /* SpecialString */
63-
code span.st { color: #f44f4f; } /* String */
64-
code span.va { color: #27aeae; } /* Variable */
65-
code span.vs { color: #da4453; } /* VerbatimString */
66-
code span.wa { color: #da4453; } /* Warning */
62+
code span.ss { color: #ff5500; } /* SpecialString */
63+
code span.st { color: #bf0303; } /* String */
64+
code span.va { color: #0057ae; } /* Variable */
65+
code span.vs { color: #bf0303; } /* VerbatimString */
66+
code span.wa { color: #bf0303; } /* Warning */

docs/tags/about this site.html

Lines changed: 0 additions & 72 deletions
This file was deleted.

site.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{-# LANGUAGE OverloadedStrings #-}
33
import Data.Monoid (mappend)
44
import Hakyll
5-
import Text.Pandoc.Highlighting (Style, breezeDark, styleToCss)
5+
import Text.Pandoc.Highlighting (Style, haddock, styleToCss)
66
import Text.Pandoc.Options (ReaderOptions (..),
77
WriterOptions (..))
88

@@ -34,7 +34,7 @@ config = defaultConfiguration {
3434
}
3535

3636
pandocCodeStyle :: Style
37-
pandocCodeStyle = breezeDark
37+
pandocCodeStyle = haddock
3838

3939
pandocCompiler' :: Compiler (Item String)
4040
pandocCompiler' =

0 commit comments

Comments
 (0)