diff --git a/assets/css/markdown-dark.css b/assets/css/markdown-dark.css new file mode 100644 index 0000000..10c78d7 --- /dev/null +++ b/assets/css/markdown-dark.css @@ -0,0 +1,89 @@ +#contentBody img { + box-shadow: 0px 3px 15px rgba(255,255,255,0.2); +} + +#contentBody hr { + border-bottom: 1px solid #201d1a; +} + +#contentBody hr { + background-color: #1e1b17; +} + +#contentBody blockquote { + color: #958c82; + border-left: 0.25em solid #201d1a; +} + +#contentBody kbd { + color: #bbb2a9; + background-color: #050403; + border: solid 1px #39342e; + border-bottom-color: #6a625a; + box-shadow: inset 0 -1px 0 #6a625a; +} + +#contentBody h1 .octicon-link, +#contentBody h2 .octicon-link, +#contentBody h3 .octicon-link, +#contentBody h4 .octicon-link, +#contentBody h5 .octicon-link, +#contentBody h6 .octicon-link { + color: #e4e0dc; +} + +#contentBody h1 { + border-bottom: 1px solid #363636; +} + +#contentBody h2 { + border-bottom: 1px solid #363636; +} + + +#contentBody h6 { + font-size: 0.85em; + color: #958c82; +} + +#contentBody table th, +#contentBody table td { + padding: 6px 13px; + border: 1px solid #363636; + background-color: #090909; +} + +#contentBody img { + background-color: #090909; +} + + +#contentBody code { + background-color: #090909; +} + +#contentBody .highlight pre, +#contentBody pre { + background-color: #090909; +} + +#contentBody .full-commit .btn-outline:not(:disabled):hover { + color: #005cc5; + border-color: #005cc5; +} + +#contentBody kbd { + color: #bbb2a9; + background-color: #050403; + border: solid 1px #2e2a25; + border-bottom-color: #39342e; + box-shadow: inset 0 -1px 0 #c6cbd1; +} + +#contentBody :checked+.radio-label { + border-color: #0366d6; +} + +#contentBody hr { + border-bottom-color: #111; +} diff --git a/assets/css/markdown.css b/assets/css/markdown.css index f533d29..d55bc25 100644 --- a/assets/css/markdown.css +++ b/assets/css/markdown.css @@ -485,7 +485,6 @@ font-size: 85%; line-height: 1.45; background-color: #f6f6f6; - border-radius: 3px; } #contentBody pre code { diff --git a/assets/css/style-dark.css b/assets/css/style-dark.css new file mode 100644 index 0000000..685e021 --- /dev/null +++ b/assets/css/style-dark.css @@ -0,0 +1,52 @@ +/* General */ +body { + background-color: #101010; + color: #8f8f8f; +} + +a:link { + color: #8f8f8f; +} + +a:visited { + color: #8f8f8f; +} + +a:hover { + color: #8f8f8f; +} + +a:active { + color: #8f8f8f; +} + +#searchBox #searchBoxInput { + color: #8f8f8f; + background-color:#363636; + border: solid 1px #363636; +} + +#searchBox #searchBoxInput::placeholder { + color: #363636; +} + +#searchResults { + background-color:#363636; + border: solid 1px #363636; +} + +#searchResults mark { + background-color: #222020; +} + +#tags li a { + background-color: #222020; +} + +#contentsList hr.separator { + border: solid 1px #363636; +} + +img.avatar-border { + filter: invert(100%); +} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 1bc104a..9956da5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,7 +8,7 @@
avatar - avatar-border + avatar-border

{{ .Site.Params.Author }}

diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4ce4956..491bdbf 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,7 +18,11 @@ {{ $syntaxHighlight := resources.Get "css/syntax-highlight.css" }} {{ $css := slice $style $markdown $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }} - + {{ $styleDark := resources.Get "css/style-dark.css" }} + {{ $markdownDark := resources.Get "css/markdown-dark.css" }} + {{ $cssDark := slice $styleDark $markdownDark | resources.Concat "style-dark.css" | resources.Minify | resources.Fingerprint }} + + {{ range .Site.Params.custom_css }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9c1d7e7..cf8a7ba 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -2,7 +2,7 @@
- +

{{ .Site.Params.Author }}