jekyll-theme-chirpy-clarkezone 5.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +105 -0
  4. data/_data/assets/cross_origin.yml +62 -0
  5. data/_data/assets/self_host.yml +51 -0
  6. data/_data/authors.yml +17 -0
  7. data/_data/contact.yml +30 -0
  8. data/_data/locales/bg-BG.yml +83 -0
  9. data/_data/locales/de-DE.yml +82 -0
  10. data/_data/locales/en.yml +93 -0
  11. data/_data/locales/es-ES.yml +79 -0
  12. data/_data/locales/fr-FR.yml +79 -0
  13. data/_data/locales/hu-HU.yml +81 -0
  14. data/_data/locales/id-ID.yml +79 -0
  15. data/_data/locales/ko-KR.yml +86 -0
  16. data/_data/locales/my-MM.yml +79 -0
  17. data/_data/locales/pt-BR.yml +79 -0
  18. data/_data/locales/ru-RU.yml +79 -0
  19. data/_data/locales/tr-TR.yml +79 -0
  20. data/_data/locales/uk-UA.yml +79 -0
  21. data/_data/locales/vi-VN.yml +77 -0
  22. data/_data/locales/zh-CN.yml +85 -0
  23. data/_data/share.yml +27 -0
  24. data/_includes/assets-origin.html +12 -0
  25. data/_includes/comments/disqus.html +54 -0
  26. data/_includes/comments/giscus.html +56 -0
  27. data/_includes/comments/utterances.html +51 -0
  28. data/_includes/comments.html +5 -0
  29. data/_includes/datetime.html +15 -0
  30. data/_includes/favicons.html +17 -0
  31. data/_includes/footer.html +36 -0
  32. data/_includes/google-analytics.html +14 -0
  33. data/_includes/head.html +115 -0
  34. data/_includes/js-selector.html +100 -0
  35. data/_includes/jsdelivr-combine.html +32 -0
  36. data/_includes/language-alias.html +70 -0
  37. data/_includes/mermaid.html +57 -0
  38. data/_includes/mode-toggle.html +129 -0
  39. data/_includes/no-linenos.html +10 -0
  40. data/_includes/post-nav.html +30 -0
  41. data/_includes/post-paginator.html +88 -0
  42. data/_includes/post-sharing.html +27 -0
  43. data/_includes/read-time.html +30 -0
  44. data/_includes/refactor-content.html +282 -0
  45. data/_includes/related-posts.html +103 -0
  46. data/_includes/search-loader.html +46 -0
  47. data/_includes/search-results.html +11 -0
  48. data/_includes/sidebar.html +93 -0
  49. data/_includes/toc.html +16 -0
  50. data/_includes/topbar.html +70 -0
  51. data/_includes/trending-tags.html +50 -0
  52. data/_includes/update-list.html +40 -0
  53. data/_layouts/archives.html +34 -0
  54. data/_layouts/categories.html +118 -0
  55. data/_layouts/category.html +22 -0
  56. data/_layouts/compress.html +10 -0
  57. data/_layouts/default.html +71 -0
  58. data/_layouts/home.html +94 -0
  59. data/_layouts/page.html +63 -0
  60. data/_layouts/post.html +150 -0
  61. data/_layouts/tag.html +21 -0
  62. data/_layouts/tags.html +23 -0
  63. data/_sass/addon/commons.scss +1667 -0
  64. data/_sass/addon/module.scss +154 -0
  65. data/_sass/addon/syntax.scss +283 -0
  66. data/_sass/addon/variables.scss +30 -0
  67. data/_sass/colors/dark-syntax.scss +87 -0
  68. data/_sass/colors/dark-typography.scss +157 -0
  69. data/_sass/colors/light-syntax.scss +83 -0
  70. data/_sass/colors/light-typography.scss +93 -0
  71. data/_sass/jekyll-theme-chirpy-clarkezone.scss +24 -0
  72. data/_sass/layout/archives.scss +136 -0
  73. data/_sass/layout/categories.scss +66 -0
  74. data/_sass/layout/category-tag.scss +73 -0
  75. data/_sass/layout/home.scss +178 -0
  76. data/_sass/layout/post.scss +369 -0
  77. data/_sass/layout/tags.scss +19 -0
  78. data/_sass/variables-hook.scss +3 -0
  79. data/assets/404.html +14 -0
  80. data/assets/css/style.scss +12 -0
  81. data/assets/feed.xml +61 -0
  82. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  83. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  84. data/assets/img/favicons/apple-touch-icon.png +0 -0
  85. data/assets/img/favicons/browserconfig.xml +13 -0
  86. data/assets/img/favicons/favicon-16x16.png +0 -0
  87. data/assets/img/favicons/favicon-32x32.png +0 -0
  88. data/assets/img/favicons/favicon.ico +0 -0
  89. data/assets/img/favicons/mstile-150x150.png +0 -0
  90. data/assets/img/favicons/site.webmanifest +26 -0
  91. data/assets/js/data/search.json +18 -0
  92. data/assets/js/data/swcache.js +55 -0
  93. data/assets/js/dist/categories.min.js +6 -0
  94. data/assets/js/dist/commons.min.js +6 -0
  95. data/assets/js/dist/home.min.js +6 -0
  96. data/assets/js/dist/misc.min.js +6 -0
  97. data/assets/js/dist/page.min.js +6 -0
  98. data/assets/js/dist/post.min.js +6 -0
  99. data/assets/js/dist/pvreport.min.js +6 -0
  100. data/assets/js/pwa/app.js +47 -0
  101. data/assets/js/pwa/sw.js +89 -0
  102. data/assets/js/pwa/unregister.js +12 -0
  103. data/assets/robots.txt +10 -0
  104. metadata +236 -0
@@ -0,0 +1,154 @@
1
+ /*
2
+ * Mainly scss modules, only imported to `assets/css/main.scss`
3
+ */
4
+
5
+ /* ---------- scss placeholder --------- */
6
+
7
+ %heading {
8
+ color: var(--heading-color);
9
+ font-weight: 400;
10
+ font-family: Lato, "Microsoft Yahei", sans-serif;
11
+ }
12
+
13
+ %section {
14
+ #core-wrapper & {
15
+ margin-top: 2.5rem;
16
+ margin-bottom: 1.25rem;
17
+
18
+ &:focus {
19
+ outline: none; /* avoid outline in Safari */
20
+ }
21
+ }
22
+ }
23
+
24
+ %anchor {
25
+ .anchor {
26
+ font-size: 80%;
27
+ }
28
+
29
+ @media (hover: hover) {
30
+ .anchor {
31
+ visibility: hidden;
32
+ opacity: 0;
33
+ transition: opacity 0.25s ease-in, visibility 0s ease-in 0.25s;
34
+ }
35
+
36
+ &:hover {
37
+ .anchor {
38
+ visibility: visible;
39
+ opacity: 1;
40
+ transition: opacity 0.25s ease-in, visibility 0s ease-in 0s;
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ %tag-hover {
47
+ background: var(--tag-hover);
48
+ transition: background 0.35s ease-in-out;
49
+ }
50
+
51
+ %table-cell {
52
+ padding: 0.4rem 1rem;
53
+ font-size: 95%;
54
+ white-space: nowrap;
55
+ }
56
+
57
+ %link-hover {
58
+ color: #d2603a !important;
59
+ border-bottom: 1px solid #d2603a;
60
+ text-decoration: none;
61
+ }
62
+
63
+ %link-color {
64
+ color: var(--link-color);
65
+ }
66
+
67
+ %link-underline {
68
+ border-bottom: 1px solid var(--link-underline-color);
69
+ }
70
+
71
+ %clickable-transition {
72
+ transition: color 0.35s ease-in-out;
73
+ }
74
+
75
+ %no-cursor {
76
+ -webkit-user-select: none;
77
+ -moz-user-select: none;
78
+ user-select: none;
79
+ }
80
+
81
+ %no-bottom-border {
82
+ border-bottom: none;
83
+ }
84
+
85
+ %cursor-pointer {
86
+ cursor: pointer;
87
+ }
88
+
89
+ %normal-font-style {
90
+ font-style: normal;
91
+ }
92
+
93
+ %img-caption {
94
+ + em {
95
+ display: block;
96
+ text-align: center;
97
+ font-style: normal;
98
+ font-size: 80%;
99
+ padding: 0;
100
+ color: #6d6c6c;
101
+ }
102
+ }
103
+
104
+ %sidebar-links {
105
+ color: rgba(117, 117, 117, 0.9);
106
+ -webkit-user-select: none;
107
+ -moz-user-select: none;
108
+ user-select: none;
109
+ }
110
+
111
+ /* ---------- scss mixin --------- */
112
+
113
+ @mixin no-text-decoration {
114
+ text-decoration: none;
115
+ }
116
+
117
+ @mixin ml-mr($value) {
118
+ margin-left: $value;
119
+ margin-right: $value;
120
+ }
121
+
122
+ @mixin pl-pr($val) {
123
+ padding-left: $val;
124
+ padding-right: $val;
125
+ }
126
+
127
+ @mixin input-placeholder {
128
+ opacity: 0.6;
129
+ }
130
+
131
+ @mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) {
132
+ color: $color;
133
+ font-size: $font-size;
134
+ font-weight: $font-weight;
135
+ }
136
+
137
+ @mixin align-center {
138
+ position: relative;
139
+ left: 50%;
140
+ -webkit-transform: translateX(-50%);
141
+ transform: translateX(-50%);
142
+ }
143
+
144
+ @mixin prompt($type, $fw-icon, $icon-weight: 900) {
145
+ &.prompt-#{$type} {
146
+ background-color: var(--prompt-#{$type}-bg);
147
+
148
+ &::before {
149
+ content: $fw-icon;
150
+ color: var(--prompt-#{$type}-icon-color);
151
+ font-weight: $icon-weight;
152
+ }
153
+ }
154
+ }
@@ -0,0 +1,283 @@
1
+ /*
2
+ * The syntax highlight.
3
+ */
4
+
5
+ @import "colors/light-syntax";
6
+ @import "colors/dark-syntax";
7
+
8
+ html {
9
+ @media (prefers-color-scheme: light) {
10
+ &:not([data-mode]),
11
+ &[data-mode="light"] {
12
+ @include light-syntax;
13
+ }
14
+
15
+ &[data-mode="dark"] {
16
+ @include dark-syntax;
17
+ }
18
+ }
19
+
20
+ @media (prefers-color-scheme: dark) {
21
+ &:not([data-mode]),
22
+ &[data-mode="dark"] {
23
+ @include dark-syntax;
24
+ }
25
+
26
+ &[data-mode="light"] {
27
+ @include light-syntax;
28
+ }
29
+ }
30
+ }
31
+
32
+ /* -- Codes Snippet -- */
33
+
34
+ $code-radius: 6px;
35
+
36
+ %code-snippet-bg {
37
+ background: var(--highlight-bg-color);
38
+ }
39
+
40
+ %code-snippet-radius {
41
+ border-radius: $code-radius;
42
+ }
43
+
44
+ %code-snippet-padding {
45
+ padding-left: 1rem;
46
+ padding-right: 1.5rem;
47
+ }
48
+
49
+ .highlighter-rouge {
50
+ @extend %code-snippet-bg;
51
+ @extend %code-snippet-radius;
52
+
53
+ color: var(--highlighter-rouge-color);
54
+ margin-top: 0.5rem;
55
+ margin-bottom: 1.2em; /* Override BS Inline-code style */
56
+ }
57
+
58
+ .highlight {
59
+ @extend %code-snippet-radius;
60
+ @extend %code-snippet-bg;
61
+
62
+ @at-root figure#{&} {
63
+ @extend %code-snippet-bg;
64
+ }
65
+
66
+ overflow: auto;
67
+ padding-top: 0.5rem;
68
+ padding-bottom: 1rem;
69
+
70
+ pre {
71
+ margin-bottom: 0;
72
+ font-size: $code-font-size;
73
+ line-height: 1.4rem;
74
+ word-wrap: normal; /* Fixed Safari overflow-x */
75
+ }
76
+
77
+ table {
78
+ td pre {
79
+ overflow: visible; /* Fixed iOS safari overflow-x */
80
+ word-break: normal; /* Fixed iOS safari linenos code break */
81
+ }
82
+ }
83
+
84
+ .lineno {
85
+ padding-right: 0.5rem;
86
+ min-width: 2.2rem;
87
+ text-align: right;
88
+ color: var(--highlight-lineno-color);
89
+ -webkit-user-select: none;
90
+ -moz-user-select: none;
91
+ -o-user-select: none;
92
+ user-select: none;
93
+ }
94
+
95
+ /* set the dollar sign to non-selectable */
96
+ .gp {
97
+ -webkit-user-select: none;
98
+ -moz-user-select: none;
99
+ user-select: none;
100
+ }
101
+ } /* .highlight */
102
+
103
+ code {
104
+ -webkit-hyphens: none;
105
+ hyphens: none;
106
+
107
+ &.highlighter-rouge {
108
+ font-size: $code-font-size;
109
+ padding: 3px 5px;
110
+ word-break: break-word;
111
+ border-radius: 4px;
112
+ background-color: var(--inline-code-bg);
113
+ }
114
+
115
+ &.filepath {
116
+ background-color: inherit;
117
+ color: var(--filepath-text-color);
118
+ font-weight: 600;
119
+ padding: 0;
120
+ }
121
+
122
+ a > &.highlighter-rouge {
123
+ padding-bottom: 0; /* show link's underlinke */
124
+ color: inherit;
125
+ }
126
+
127
+ a:hover > &.highlighter-rouge {
128
+ border-bottom: none;
129
+ }
130
+
131
+ blockquote & {
132
+ color: inherit;
133
+ }
134
+
135
+ .highlight > & {
136
+ color: transparent;
137
+ }
138
+ }
139
+
140
+ td.rouge-code {
141
+ @extend %code-snippet-padding;
142
+
143
+ /*
144
+ Prevent some browser extends from
145
+ changing the URL string of code block.
146
+ */
147
+ a {
148
+ color: inherit !important;
149
+ border-bottom: none !important;
150
+ pointer-events: none;
151
+ }
152
+ }
153
+
154
+ /* Hide line numbers for default, console, and terminal code snippets */
155
+ div {
156
+ &[class^="highlighter-rouge"],
157
+ &.nolineno,
158
+ &.language-plaintext.highlighter-rouge,
159
+ &.language-console.highlighter-rouge,
160
+ &.language-terminal.highlighter-rouge {
161
+ pre.lineno {
162
+ display: none;
163
+ }
164
+
165
+ td.rouge-code {
166
+ padding-left: 1.5rem;
167
+ }
168
+ }
169
+ }
170
+
171
+ .code-header {
172
+ @extend %no-cursor;
173
+
174
+ $code-header-height: 2.25rem;
175
+
176
+ border-top-left-radius: $code-radius;
177
+ border-top-right-radius: $code-radius;
178
+ display: flex;
179
+ justify-content: space-between;
180
+ align-items: center;
181
+ height: $code-header-height;
182
+
183
+ &::before {
184
+ $dot-size: 0.75rem;
185
+ $dot-margin: 0.5rem;
186
+
187
+ content: "";
188
+ display: inline-block;
189
+ margin-left: 1rem;
190
+ width: $dot-size;
191
+ height: $dot-size;
192
+ border-radius: 50%;
193
+ background-color: var(--code-header-muted-color);
194
+ box-shadow:
195
+ ($dot-size + $dot-margin) 0 0 var(--code-header-muted-color),
196
+ ($dot-size + $dot-margin) * 2 0 0 var(--code-header-muted-color);
197
+ }
198
+
199
+ /* the label block */
200
+ span {
201
+ /* label icon */
202
+ i {
203
+ font-size: 1rem;
204
+ margin-right: 0.4rem;
205
+ color: var(--code-header-icon-color);
206
+
207
+ &.small {
208
+ font-size: 70%;
209
+ }
210
+ }
211
+
212
+ @at-root [file] #{&} > i {
213
+ position: relative;
214
+ top: 1px; /* center the file icon */
215
+ }
216
+
217
+ /* label text */
218
+ &::after {
219
+ content: attr(data-label-text);
220
+ font-size: 0.85rem;
221
+ font-weight: 600;
222
+ color: var(--code-header-text-color);
223
+ }
224
+ }
225
+
226
+ /* clipboard */
227
+ button {
228
+ @extend %cursor-pointer;
229
+
230
+ border: 1px solid transparent;
231
+ border-radius: $code-radius;
232
+ height: $code-header-height;
233
+ width: $code-header-height;
234
+ padding: 0;
235
+ background-color: inherit;
236
+
237
+ i {
238
+ color: var(--code-header-icon-color);
239
+ }
240
+
241
+ &[timeout] {
242
+ &:hover {
243
+ border-color: var(--clipboard-checked-color);
244
+ }
245
+
246
+ i {
247
+ color: var(--clipboard-checked-color);
248
+ }
249
+ }
250
+
251
+ &:focus {
252
+ outline: none;
253
+ }
254
+
255
+ &:not([timeout]):hover {
256
+ background-color: rgba(128, 128, 128, 0.37);
257
+
258
+ i {
259
+ color: white;
260
+ }
261
+ }
262
+ }
263
+ }
264
+
265
+ @media all and (max-width: 576px) {
266
+ .post-content {
267
+ > div[class^="language-"] {
268
+ @include ml-mr(-1.25rem);
269
+
270
+ border-radius: 0;
271
+
272
+ .highlight {
273
+ padding-left: 0.25rem;
274
+ }
275
+
276
+ .code-header {
277
+ border-radius: 0;
278
+ padding-left: 0.4rem;
279
+ padding-right: 0.5rem;
280
+ }
281
+ }
282
+ }
283
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * The SCSS variables
3
+ */
4
+
5
+ /* sidebar */
6
+
7
+ $sidebar-width: 260px !default; /* the basic width */
8
+ $sidebar-width-small: 210px !default; /* screen width: >= 850px, <= 1199px (iPad landscape) */
9
+ $sidebar-width-large: 350px !default; /* screen width: >= 1650px */
10
+
11
+ /* tabs of sidebar */
12
+
13
+ $tab-count: 5 !default; /* backward compatible (version <= 4.0.2) */
14
+ $tab-height: 3rem !default;
15
+ $tab-cursor-height: 1.6rem !default;
16
+ $cursor-width: 2px !default; /* the cursor width of the selected tab */
17
+
18
+ /* other framework sizes */
19
+
20
+ $topbar-height: 3rem !default;
21
+ $search-max-width: 210px !default;
22
+ $footer-height: 5rem !default;
23
+ $footer-height-mobile: 6rem !default; /* screen width: <= 576px */
24
+
25
+ $main-content-max-width: 1250px !default;
26
+ $bottom-min-height: 35rem !default;
27
+
28
+ /* syntax highlight */
29
+
30
+ $code-font-size: 0.85rem !default;
@@ -0,0 +1,87 @@
1
+ /*
2
+ * The syntax dark mode styles.
3
+ */
4
+
5
+ @mixin dark-syntax {
6
+ --highlight-bg-color: #252525;
7
+ --highlighter-rouge-color: #de6b18;
8
+ --highlight-lineno-color: #6c6c6d;
9
+ --inline-code-bg: #272822;
10
+ --code-header-text-color: #6a6a6a;
11
+ --code-header-muted-color: rgb(60, 60, 60);
12
+ --code-header-icon-color: rgb(86, 86, 86);
13
+ --clipboard-checked-color: #2bcc2b;
14
+ --filepath-text-color: #bdbdbd;
15
+
16
+ pre { color: #bfbfbf; } /* override Bootstrap */
17
+
18
+ .highlight {
19
+ .gp { color: #818c96; }
20
+ }
21
+
22
+ /* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
23
+
24
+ .highlight pre { background-color: var(--highlight-bg-color); }
25
+ .highlight .hll { background-color: var(--highlight-bg-color); }
26
+ .highlight .c { color: #75715e; } /* Comment */
27
+ .highlight .err { color: #960050; background-color: #1e0010; } /* Error */
28
+ .highlight .k { color: #66d9ef; } /* Keyword */
29
+ .highlight .l { color: #ae81ff; } /* Literal */
30
+ .highlight .n { color: #f8f8f2; } /* Name */
31
+ .highlight .o { color: #f92672; } /* Operator */
32
+ .highlight .p { color: #f8f8f2; } /* Punctuation */
33
+ .highlight .cm { color: #75715e; } /* Comment.Multiline */
34
+ .highlight .cp { color: #75715e; } /* Comment.Preproc */
35
+ .highlight .c1 { color: #75715e; } /* Comment.Single */
36
+ .highlight .cs { color: #75715e; } /* Comment.Special */
37
+ .highlight .ge { color: inherit; font-style: italic; } /* Generic.Emph */
38
+ .highlight .gs { font-weight: bold; } /* Generic.Strong */
39
+ .highlight .kc { color: #66d9ef; } /* Keyword.Constant */
40
+ .highlight .kd { color: #66d9ef; } /* Keyword.Declaration */
41
+ .highlight .kn { color: #f92672; } /* Keyword.Namespace */
42
+ .highlight .kp { color: #66d9ef; } /* Keyword.Pseudo */
43
+ .highlight .kr { color: #66d9ef; } /* Keyword.Reserved */
44
+ .highlight .kt { color: #66d9ef; } /* Keyword.Type */
45
+ .highlight .ld { color: #e6db74; } /* Literal.Date */
46
+ .highlight .m { color: #ae81ff; } /* Literal.Number */
47
+ .highlight .s { color: #e6db74; } /* Literal.String */
48
+ .highlight .na { color: #a6e22e; } /* Name.Attribute */
49
+ .highlight .nb { color: #f8f8f2; } /* Name.Builtin */
50
+ .highlight .nc { color: #a6e22e; } /* Name.Class */
51
+ .highlight .no { color: #66d9ef; } /* Name.Constant */
52
+ .highlight .nd { color: #a6e22e; } /* Name.Decorator */
53
+ .highlight .ni { color: #f8f8f2; } /* Name.Entity */
54
+ .highlight .ne { color: #a6e22e; } /* Name.Exception */
55
+ .highlight .nf { color: #a6e22e; } /* Name.Function */
56
+ .highlight .nl { color: #f8f8f2; } /* Name.Label */
57
+ .highlight .nn { color: #f8f8f2; } /* Name.Namespace */
58
+ .highlight .nx { color: #a6e22e; } /* Name.Other */
59
+ .highlight .py { color: #f8f8f2; } /* Name.Property */
60
+ .highlight .nt { color: #f92672; } /* Name.Tag */
61
+ .highlight .nv { color: #f8f8f2; } /* Name.Variable */
62
+ .highlight .ow { color: #f92672; } /* Operator.Word */
63
+ .highlight .w { color: #f8f8f2; } /* Text.Whitespace */
64
+ .highlight .mf { color: #ae81ff; } /* Literal.Number.Float */
65
+ .highlight .mh { color: #ae81ff; } /* Literal.Number.Hex */
66
+ .highlight .mi { color: #ae81ff; } /* Literal.Number.Integer */
67
+ .highlight .mo { color: #ae81ff; } /* Literal.Number.Oct */
68
+ .highlight .sb { color: #e6db74; } /* Literal.String.Backtick */
69
+ .highlight .sc { color: #e6db74; } /* Literal.String.Char */
70
+ .highlight .sd { color: #e6db74; } /* Literal.String.Doc */
71
+ .highlight .s2 { color: #e6db74; } /* Literal.String.Double */
72
+ .highlight .se { color: #ae81ff; } /* Literal.String.Escape */
73
+ .highlight .sh { color: #e6db74; } /* Literal.String.Heredoc */
74
+ .highlight .si { color: #e6db74; } /* Literal.String.Interpol */
75
+ .highlight .sx { color: #e6db74; } /* Literal.String.Other */
76
+ .highlight .sr { color: #e6db74; } /* Literal.String.Regex */
77
+ .highlight .s1 { color: #e6db74; } /* Literal.String.Single */
78
+ .highlight .ss { color: #e6db74; } /* Literal.String.Symbol */
79
+ .highlight .bp { color: #f8f8f2; } /* Name.Builtin.Pseudo */
80
+ .highlight .vc { color: #f8f8f2; } /* Name.Variable.Class */
81
+ .highlight .vg { color: #f8f8f2; } /* Name.Variable.Global */
82
+ .highlight .vi { color: #f8f8f2; } /* Name.Variable.Instance */
83
+ .highlight .il { color: #ae81ff; } /* Literal.Number.Integer.Long */
84
+ .highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
85
+ .highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
86
+ .highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
87
+ }
@@ -0,0 +1,157 @@
1
+ /*
2
+ * The main dark mode styles
3
+ */
4
+
5
+ @mixin dark-scheme {
6
+ /* Framework color */
7
+ --body-bg: var(--main-bg);
8
+ --mask-bg: rgb(68, 69, 70);
9
+ --main-bg: rgb(27, 27, 30);
10
+ --main-border-color: rgb(44, 45, 45);
11
+
12
+ /* Common color */
13
+ --text-color: rgb(175, 176, 177);
14
+ --text-muted-color: rgb(107, 116, 124);
15
+ --heading-color: #cccccc;
16
+ --blockquote-border-color: rgb(66, 66, 66);
17
+ --blockquote-text-color: rgb(117, 117, 117);
18
+ --link-color: rgb(138, 180, 248);
19
+ --link-underline-color: rgb(82, 108, 150);
20
+ --button-bg: rgb(39, 40, 43);
21
+ --btn-border-color: rgb(63, 65, 68);
22
+ --btn-backtotop-color: var(--text-color);
23
+ --btn-backtotop-border-color: var(--btn-border-color);
24
+ --btn-box-shadow: var(--main-bg);
25
+ --card-header-bg: rgb(51, 50, 50);
26
+ --label-color: rgb(108, 117, 125);
27
+ --checkbox-color: rgb(118, 120, 121);
28
+ --checkbox-checked-color: var(--link-color);
29
+
30
+ /* Sidebar */
31
+ --sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
32
+ --sidebar-muted-color: #6d6c6b;
33
+ --sidebar-active-color: rgb(255, 255, 255, 0.8);
34
+ --nav-cursor-color: rgb(183, 182, 182);
35
+ --sidebar-btn-bg: rgb(117, 116, 116, 0.2);
36
+
37
+ /* Topbar */
38
+ --topbar-text-color: var(--text-color);
39
+ --topbar-wrapper-bg: rgb(39, 40, 43);
40
+ --search-wrapper-bg: rgb(34, 34, 39);
41
+ --search-wrapper-border-color: rgb(34, 34, 39);
42
+ --search-icon-color: rgb(100, 102, 105);
43
+ --input-focus-border-color: rgb(112, 114, 115);
44
+
45
+ /* Home page */
46
+ --post-list-text-color: rgb(175, 176, 177);
47
+ --btn-patinator-text-color: var(--text-color);
48
+ --btn-paginator-hover-color: rgb(64, 65, 66);
49
+ --btn-paginator-border-color: var(--btn-border-color);
50
+ --btn-text-color: var(--text-color);
51
+ --pin-bg: rgb(34, 35, 37);
52
+ --pin-color: inherit;
53
+
54
+ /* Posts */
55
+ --toc-highlight: rgb(116, 178, 243);
56
+ --tag-bg: rgb(41, 40, 40);
57
+ --tag-hover: rgb(43, 56, 62);
58
+ --tb-odd-bg: rgba(42, 47, 53, 0.52); /* odd rows of the posts' table */
59
+ --tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
60
+ --tb-border-color: var(--tb-odd-bg);
61
+ --footnote-target-bg: rgb(63, 81, 181);
62
+ --btn-share-color: #6c757d;
63
+ --btn-share-hover-color: #bfc1ca;
64
+ --relate-post-date: var(--text-muted-color);
65
+ --card-bg: rgb(39, 40, 43);
66
+ --card-border-color: rgb(53, 53, 60);
67
+ --card-box-shadow: var(--main-bg);
68
+ --preview-img-bg: radial-gradient(circle, rgb(22, 22, 24) 0%, rgb(32, 32, 32) 100%);
69
+ --kbd-wrap-color: #6a6a6a;
70
+ --kbd-text-color: #d3d3d3;
71
+ --kbd-bg-color: #242424;
72
+ --prompt-text-color: rgb(216, 212, 212, 0.75);
73
+ --prompt-tip-bg: rgba(77, 187, 95, 0.2);
74
+ --prompt-tip-icon-color: rgb(5, 223, 5, 0.68);
75
+ --prompt-info-bg: rgb(7, 59, 104, 0.8);
76
+ --prompt-info-icon-color: #0075d1;
77
+ --prompt-warning-bg: rgb(90, 69, 3, 0.95);
78
+ --prompt-warning-icon-color: rgb(255, 165, 0, 0.8);
79
+ --prompt-danger-bg: rgb(86, 28, 8, 0.8);
80
+ --prompt-danger-icon-color: #cd0202;
81
+
82
+ /* tags */
83
+ --tag-border: rgb(59, 79, 88);
84
+ --tag-shadow: rgb(32, 33, 33);
85
+ --search-tag-bg: var(--tag-bg);
86
+ --dash-color: rgb(63, 65, 68);
87
+
88
+ /* categories */
89
+ --categories-border: rgb(64, 66, 69);
90
+ --categories-hover-bg: rgb(73, 75, 76);
91
+ --categories-icon-hover-color: white;
92
+
93
+ /* archives */
94
+ --timeline-node-bg: rgb(150, 152, 156);
95
+ --timeline-color: rgb(63, 65, 68);
96
+ --timeline-year-dot-color: var(--timeline-color);
97
+
98
+ .post img[data-src] {
99
+ -webkit-filter: brightness(95%);
100
+ filter: brightness(95%);
101
+ }
102
+
103
+ hr {
104
+ border-color: var(--main-border-color);
105
+ }
106
+
107
+ /* posts' toc, override BS */
108
+ nav[data-toggle="toc"] .nav-link.active,
109
+ nav[data-toggle="toc"] .nav-link.active:focus,
110
+ nav[data-toggle="toc"] .nav-link.active:hover,
111
+ nav[data-toggle="toc"] .nav > li > a:focus,
112
+ nav[data-toggle="toc"] .nav > li > a:hover {
113
+ color: var(--toc-highlight) !important;
114
+ border-left-color: var(--toc-highlight) !important;
115
+ }
116
+
117
+ /* categories */
118
+ .categories.card,
119
+ .list-group-item {
120
+ background-color: var(--card-bg);
121
+ }
122
+
123
+ .categories {
124
+ .card-header {
125
+ background-color: var(--card-header-bg);
126
+ }
127
+
128
+ .list-group-item {
129
+ border-left: none;
130
+ border-right: none;
131
+ padding-left: 2rem;
132
+ border-color: var(--categories-border);
133
+
134
+ &:last-child {
135
+ border-bottom-color: var(--card-bg);
136
+ }
137
+ }
138
+ }
139
+
140
+ #archives li:nth-child(odd) {
141
+ background-image:
142
+ linear-gradient(
143
+ to left,
144
+ rgb(26, 26, 30),
145
+ rgb(39, 39, 45),
146
+ rgb(39, 39, 45),
147
+ rgb(39, 39, 45),
148
+ rgb(26, 26, 30)
149
+ );
150
+ }
151
+
152
+ color-scheme: dark;
153
+
154
+ #disqus_thread { /* stylelint-disable-line selector-id-pattern */
155
+ color-scheme: none;
156
+ }
157
+ } /* dark-scheme */