-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Al3bad/support-night-mode
Support code syntax highlighting in night mode Close #4
- Loading branch information
Showing
6 changed files
with
142 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.night-mode .hljs{ | ||
display:block; | ||
overflow-x:auto; | ||
padding:1em; | ||
padding:3px 5px; | ||
color:#adbac7; | ||
background:#22272e; | ||
} | ||
|
||
|
||
.night-mode .hljs-doctag, | ||
.night-mode .hljs-keyword, | ||
.night-mode .hljs-meta .hljs-keyword, | ||
.night-mode .hljs-template-tag, | ||
.night-mode .hljs-template-variable, | ||
.night-mode .hljs-type, | ||
.night-mode .hljs-variable.language_{color:#f47067} | ||
|
||
.night-mode .hljs-title, | ||
.night-mode .hljs-title.class_, | ||
.night-mode .hljs-title.class_.inherited__, | ||
.night-mode .hljs-title.function_{color:#dcbdfb} | ||
|
||
.night-mode .hljs-attr, | ||
.night-mode .hljs-attribute, | ||
.night-mode .hljs-literal, | ||
.night-mode .hljs-meta, | ||
.night-mode .hljs-number, | ||
.night-mode .hljs-operator, | ||
.night-mode .hljs-selector-attr, | ||
.night-mode .hljs-selector-class, | ||
.night-mode .hljs-selector-id, | ||
.night-mode .hljs-variable{color:#6cb6ff} | ||
|
||
.night-mode .hljs-meta .hljs-string, | ||
.night-mode .hljs-regexp, | ||
.night-mode .hljs-string{color:#96d0ff} | ||
|
||
.night-mode .hljs-built_in, | ||
.night-mode .hljs-symbol{color:#f69d50} | ||
.night-mode .hljs-code, | ||
.night-mode .hljs-comment, | ||
.night-mode .hljs-formula{color:#768390} | ||
|
||
.night-mode .hljs-name, | ||
.night-mode .hljs-quote, | ||
.night-mode .hljs-selector-pseudo, | ||
.night-mode .hljs-selector-tag{color:#8ddb8c} | ||
|
||
.night-mode .hljs-subst{color:#adbac7} | ||
|
||
.night-mode .hljs-section{color:#316dca;font-weight:700} | ||
|
||
.night-mode .hljs-bullet{color:#eac55f} | ||
|
||
.night-mode .hljs-emphasis{color:#adbac7;font-style:italic} | ||
|
||
.night-mode .hljs-strong{color:#adbac7;font-weight:700} | ||
|
||
.night-mode .hljs-addition{color:#b4f1b4;background-color:#1b4721} | ||
|
||
.night-mode .hljs-deletion{color:#ffd8d3;background-color:#78191b} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*! | ||
Theme: GitHub Dark Dimmed | ||
Description: Dark dimmed theme as seen on github.com | ||
Author: github.com | ||
Maintainer: @Hirse | ||
Updated: 2021-05-15 | ||
Edited by: @Al3bad | ||
Colors taken from GitHub's CSS | ||
*/ | ||
|
||
.night-mode, .night-mode .markdown-body { | ||
background-color: #101010; | ||
color: #dedede; | ||
} | ||
|
||
.night-mode .markdown-body a { | ||
color: #0C63C7; | ||
} | ||
|
||
.night-mode .markdown-body hr { | ||
background-color: #333; | ||
} | ||
|
||
.night-mode .markdown-body blockquote { | ||
color: #999; | ||
border-left-color: #333; | ||
} | ||
|
||
.night-mode .markdown-body kbd { | ||
color: #333d56; | ||
background-color: #fafbfc; | ||
border-color: #d1d5da; | ||
border-bottom-color: #c6cbd1; | ||
box-shadow-color: #c6cbd1; | ||
} | ||
|
||
.night-mode .markdown-body h1 { | ||
border-bottom-color: #333; | ||
} | ||
|
||
.night-mode .markdown-body h2 { | ||
border-bottom-color: #333; | ||
} | ||
|
||
.night-mode .markdown-body h6 { | ||
color: #999; | ||
} | ||
|
||
.night-mode .markdown-body table tr { | ||
background-color: #101010; | ||
} | ||
|
||
.night-mode .markdown-body table, .night-mode .markdown-body th, .night-mode .markdown-body td { | ||
border-color: #353535; | ||
} | ||
|
||
.night-mode .markdown-body table tr:nth-child(2n) { | ||
background-color: #1e1e1e; | ||
} | ||
|
||
.night-mode .markdown-body img { | ||
background-color: #fff; | ||
} | ||
|
||
.night-mode .markdown-body code, | ||
.night-mode .markdown-body pre { | ||
background-color: #242422; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters