jekyll-theme-resuchirp 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +94 -0
- data/_data/authors.yml +17 -0
- data/_data/contact.yml +28 -0
- data/_data/locales/ar.yml +91 -0
- data/_data/locales/bg-BG.yml +81 -0
- data/_data/locales/cs-CZ.yml +89 -0
- data/_data/locales/de-DE.yml +80 -0
- data/_data/locales/el-GR.yml +91 -0
- data/_data/locales/en.yml +91 -0
- data/_data/locales/es-ES.yml +77 -0
- data/_data/locales/fi-FI.yml +90 -0
- data/_data/locales/fr-FR.yml +77 -0
- data/_data/locales/hu-HU.yml +79 -0
- data/_data/locales/id-ID.yml +77 -0
- data/_data/locales/it-IT.yml +90 -0
- data/_data/locales/ko-KR.yml +84 -0
- data/_data/locales/my-MM.yml +77 -0
- data/_data/locales/pt-BR.yml +77 -0
- data/_data/locales/ru-RU.yml +77 -0
- data/_data/locales/sl-SI.yml +91 -0
- data/_data/locales/sv-SE.yml +91 -0
- data/_data/locales/th.yml +91 -0
- data/_data/locales/tr-TR.yml +77 -0
- data/_data/locales/uk-UA.yml +77 -0
- data/_data/locales/vi-VN.yml +76 -0
- data/_data/locales/zh-CN.yml +83 -0
- data/_data/locales/zh-TW.yml +83 -0
- data/_data/origin/basic.yml +48 -0
- data/_data/origin/cors.yml +59 -0
- data/_data/share.yml +25 -0
- data/_includes/comments/disqus.html +49 -0
- data/_includes/comments/giscus.html +64 -0
- data/_includes/comments/utterances.html +51 -0
- data/_includes/comments.html +5 -0
- data/_includes/datetime.html +19 -0
- data/_includes/embed/twitch.html +4 -0
- data/_includes/embed/youtube.html +6 -0
- data/_includes/favicons.html +17 -0
- data/_includes/footer.html +34 -0
- data/_includes/google-analytics.html +14 -0
- data/_includes/head.html +95 -0
- data/_includes/js-selector.html +106 -0
- data/_includes/jsdelivr-combine.html +26 -0
- data/_includes/lang.html +8 -0
- data/_includes/language-alias.html +70 -0
- data/_includes/mermaid.html +58 -0
- data/_includes/metadata-hook.html +1 -0
- data/_includes/mode-toggle.html +143 -0
- data/_includes/no-linenos.html +10 -0
- data/_includes/origin-type.html +13 -0
- data/_includes/post-nav.html +37 -0
- data/_includes/post-paginator.html +89 -0
- data/_includes/post-sharing.html +37 -0
- data/_includes/read-time.html +37 -0
- data/_includes/refactor-content.html +286 -0
- data/_includes/related-posts.html +97 -0
- data/_includes/search-loader.html +45 -0
- data/_includes/search-results.html +10 -0
- data/_includes/sidebar.html +104 -0
- data/_includes/toc.html +13 -0
- data/_includes/topbar.html +70 -0
- data/_includes/trending-tags.html +46 -0
- data/_includes/update-list.html +39 -0
- data/_layouts/archives.html +36 -0
- data/_layouts/categories.html +138 -0
- data/_layouts/category.html +24 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +76 -0
- data/_layouts/home.html +110 -0
- data/_layouts/page.html +68 -0
- data/_layouts/post.html +133 -0
- data/_layouts/tag.html +23 -0
- data/_layouts/tags.html +22 -0
- data/_sass/addon/commons.scss +1578 -0
- data/_sass/addon/module.scss +178 -0
- data/_sass/addon/syntax.scss +271 -0
- data/_sass/addon/variables.scss +27 -0
- data/_sass/colors/dark-syntax.scss +87 -0
- data/_sass/colors/dark-typography.scss +151 -0
- data/_sass/colors/light-syntax.scss +84 -0
- data/_sass/colors/light-typography.scss +109 -0
- data/_sass/jekyll-theme-chirpy.scss +19 -0
- data/_sass/layout/archives.scss +144 -0
- data/_sass/layout/categories.scss +83 -0
- data/_sass/layout/category-tag.scss +77 -0
- data/_sass/layout/home.scss +219 -0
- data/_sass/layout/post.scss +414 -0
- data/_sass/layout/tags.scss +19 -0
- data/_sass/variables-hook.scss +3 -0
- data/assets/404.html +16 -0
- data/assets/css/style.scss +6 -0
- data/assets/feed.xml +61 -0
- data/assets/img/favicons/android-chrome-192x192.png +0 -0
- data/assets/img/favicons/android-chrome-512x512.png +0 -0
- data/assets/img/favicons/apple-touch-icon.png +0 -0
- data/assets/img/favicons/browserconfig.xml +13 -0
- data/assets/img/favicons/favicon-16x16.png +0 -0
- data/assets/img/favicons/favicon-32x32.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/mstile-150x150.png +0 -0
- data/assets/img/favicons/site.webmanifest +26 -0
- data/assets/js/data/search.json +20 -0
- data/assets/js/data/swcache.js +50 -0
- data/assets/js/pwa/app.js +47 -0
- data/assets/js/pwa/sw.js +90 -0
- data/assets/js/pwa/unregister.js +12 -0
- data/assets/robots.txt +10 -0
- metadata +255 -0
@@ -0,0 +1,178 @@
|
|
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: $font-family-heading;
|
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: all 0.3s ease-in-out;
|
73
|
+
}
|
74
|
+
|
75
|
+
%no-cursor {
|
76
|
+
-webkit-user-select: none;
|
77
|
+
-moz-user-select: none;
|
78
|
+
-ms-user-select: none;
|
79
|
+
user-select: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
%no-bottom-border {
|
83
|
+
border-bottom: none;
|
84
|
+
}
|
85
|
+
|
86
|
+
%cursor-pointer {
|
87
|
+
cursor: pointer;
|
88
|
+
}
|
89
|
+
|
90
|
+
%normal-font-style {
|
91
|
+
font-style: normal;
|
92
|
+
}
|
93
|
+
|
94
|
+
%rounded {
|
95
|
+
border-radius: $base-radius;
|
96
|
+
}
|
97
|
+
|
98
|
+
%img-caption {
|
99
|
+
+ em {
|
100
|
+
display: block;
|
101
|
+
text-align: center;
|
102
|
+
font-style: normal;
|
103
|
+
font-size: 80%;
|
104
|
+
padding: 0;
|
105
|
+
color: #6d6c6c;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
%sidebar-links {
|
110
|
+
color: var(--sidebar-muted-color);
|
111
|
+
-webkit-user-select: none;
|
112
|
+
-moz-user-select: none;
|
113
|
+
-ms-user-select: none;
|
114
|
+
user-select: none;
|
115
|
+
}
|
116
|
+
|
117
|
+
%text-clip {
|
118
|
+
display: -webkit-box;
|
119
|
+
overflow: hidden;
|
120
|
+
text-overflow: ellipsis;
|
121
|
+
-webkit-line-clamp: 2;
|
122
|
+
-webkit-box-orient: vertical;
|
123
|
+
}
|
124
|
+
|
125
|
+
%text-highlight {
|
126
|
+
color: inherit;
|
127
|
+
font-weight: 600;
|
128
|
+
}
|
129
|
+
|
130
|
+
/* ---------- scss mixin --------- */
|
131
|
+
|
132
|
+
@mixin mt-mb($value) {
|
133
|
+
margin-top: $value;
|
134
|
+
margin-bottom: $value;
|
135
|
+
}
|
136
|
+
|
137
|
+
@mixin ml-mr($value) {
|
138
|
+
margin-left: $value;
|
139
|
+
margin-right: $value;
|
140
|
+
}
|
141
|
+
|
142
|
+
@mixin pt-pb($val) {
|
143
|
+
padding-top: $val;
|
144
|
+
padding-bottom: $val;
|
145
|
+
}
|
146
|
+
|
147
|
+
@mixin pl-pr($val) {
|
148
|
+
padding-left: $val;
|
149
|
+
padding-right: $val;
|
150
|
+
}
|
151
|
+
|
152
|
+
@mixin input-placeholder {
|
153
|
+
opacity: 0.6;
|
154
|
+
}
|
155
|
+
|
156
|
+
@mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) {
|
157
|
+
color: $color;
|
158
|
+
font-size: $font-size;
|
159
|
+
font-weight: $font-weight;
|
160
|
+
}
|
161
|
+
|
162
|
+
@mixin align-center {
|
163
|
+
position: relative;
|
164
|
+
left: 50%;
|
165
|
+
transform: translateX(-50%);
|
166
|
+
}
|
167
|
+
|
168
|
+
@mixin prompt($type, $fa-content, $fa-style: 'solid') {
|
169
|
+
&.prompt-#{$type} {
|
170
|
+
background-color: var(--prompt-#{$type}-bg);
|
171
|
+
|
172
|
+
&::before {
|
173
|
+
content: $fa-content;
|
174
|
+
color: var(--prompt-#{$type}-icon-color);
|
175
|
+
font: var(--fa-font-#{$fa-style});
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
@@ -0,0 +1,271 @@
|
|
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
|
+
/* -- code snippets -- */
|
33
|
+
|
34
|
+
%code-snippet-bg {
|
35
|
+
background-color: var(--highlight-bg-color);
|
36
|
+
}
|
37
|
+
|
38
|
+
%code-snippet-padding {
|
39
|
+
padding-left: 1rem;
|
40
|
+
padding-right: 1.5rem;
|
41
|
+
}
|
42
|
+
|
43
|
+
.highlighter-rouge {
|
44
|
+
color: var(--highlighter-rouge-color);
|
45
|
+
margin-top: 0.5rem;
|
46
|
+
margin-bottom: 1.2em; /* Override BS Inline-code style */
|
47
|
+
}
|
48
|
+
|
49
|
+
.highlight {
|
50
|
+
@extend %rounded;
|
51
|
+
@extend %code-snippet-bg;
|
52
|
+
|
53
|
+
@at-root figure#{&} {
|
54
|
+
@extend %code-snippet-bg;
|
55
|
+
}
|
56
|
+
|
57
|
+
overflow: auto;
|
58
|
+
padding-top: 0.5rem;
|
59
|
+
padding-bottom: 1rem;
|
60
|
+
|
61
|
+
pre {
|
62
|
+
margin-bottom: 0;
|
63
|
+
font-size: $code-font-size;
|
64
|
+
line-height: 1.4rem;
|
65
|
+
word-wrap: normal; /* Fixed Safari overflow-x */
|
66
|
+
color: var(--code-snippets-color);
|
67
|
+
}
|
68
|
+
|
69
|
+
table {
|
70
|
+
td pre {
|
71
|
+
overflow: visible; /* Fixed iOS safari overflow-x */
|
72
|
+
word-break: normal; /* Fixed iOS safari linenos code break */
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.lineno {
|
77
|
+
padding-right: 0.5rem;
|
78
|
+
min-width: 2.2rem;
|
79
|
+
text-align: right;
|
80
|
+
color: var(--highlight-lineno-color);
|
81
|
+
-webkit-user-select: none;
|
82
|
+
-moz-user-select: none;
|
83
|
+
-o-user-select: none;
|
84
|
+
-ms-user-select: none;
|
85
|
+
user-select: none;
|
86
|
+
}
|
87
|
+
} /* .highlight */
|
88
|
+
|
89
|
+
code {
|
90
|
+
-webkit-hyphens: none;
|
91
|
+
-ms-hyphens: none;
|
92
|
+
hyphens: none;
|
93
|
+
|
94
|
+
&.highlighter-rouge {
|
95
|
+
font-size: $code-font-size;
|
96
|
+
padding: 3px 5px;
|
97
|
+
word-break: break-word;
|
98
|
+
border-radius: 4px;
|
99
|
+
background-color: var(--inline-code-bg);
|
100
|
+
}
|
101
|
+
|
102
|
+
&.filepath {
|
103
|
+
background-color: inherit;
|
104
|
+
color: var(--filepath-text-color);
|
105
|
+
font-weight: 600;
|
106
|
+
padding: 0;
|
107
|
+
}
|
108
|
+
|
109
|
+
a > &.highlighter-rouge {
|
110
|
+
padding-bottom: 0; /* show link's underlinke */
|
111
|
+
color: inherit;
|
112
|
+
}
|
113
|
+
|
114
|
+
a:hover > &.highlighter-rouge {
|
115
|
+
border-bottom: none;
|
116
|
+
}
|
117
|
+
|
118
|
+
blockquote & {
|
119
|
+
color: inherit;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
td.rouge-code {
|
124
|
+
@extend %code-snippet-padding;
|
125
|
+
|
126
|
+
/*
|
127
|
+
Prevent some browser extends from
|
128
|
+
changing the URL string of code block.
|
129
|
+
*/
|
130
|
+
a {
|
131
|
+
color: inherit !important;
|
132
|
+
border-bottom: none !important;
|
133
|
+
pointer-events: none;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
div[class^='language-'] {
|
138
|
+
@extend %rounded;
|
139
|
+
@extend %code-snippet-bg;
|
140
|
+
|
141
|
+
box-shadow: var(--language-border-color) 0 0 0 1px;
|
142
|
+
|
143
|
+
.post-content > & {
|
144
|
+
@include ml-mr(-1.25rem);
|
145
|
+
|
146
|
+
border-radius: 0;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
/* Hide line numbers for default, console, and terminal code snippets */
|
151
|
+
div {
|
152
|
+
&.nolineno,
|
153
|
+
&.language-plaintext,
|
154
|
+
&.language-console,
|
155
|
+
&.language-terminal {
|
156
|
+
pre.lineno {
|
157
|
+
display: none;
|
158
|
+
}
|
159
|
+
|
160
|
+
td.rouge-code {
|
161
|
+
padding-left: 1.5rem;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
.code-header {
|
167
|
+
@extend %no-cursor;
|
168
|
+
|
169
|
+
$code-header-height: 2.25rem;
|
170
|
+
|
171
|
+
display: flex;
|
172
|
+
justify-content: space-between;
|
173
|
+
align-items: center;
|
174
|
+
height: $code-header-height;
|
175
|
+
margin-left: 1rem;
|
176
|
+
margin-right: 0.5rem;
|
177
|
+
|
178
|
+
/* the label block */
|
179
|
+
span {
|
180
|
+
/* label icon */
|
181
|
+
i {
|
182
|
+
font-size: 1rem;
|
183
|
+
margin-right: 0.5rem;
|
184
|
+
color: var(--code-header-icon-color);
|
185
|
+
|
186
|
+
&.small {
|
187
|
+
font-size: 70%;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
@at-root [file] #{&} > i {
|
192
|
+
position: relative;
|
193
|
+
top: 1px; /* center the file icon */
|
194
|
+
}
|
195
|
+
|
196
|
+
/* label text */
|
197
|
+
&::after {
|
198
|
+
content: attr(data-label-text);
|
199
|
+
font-size: 0.85rem;
|
200
|
+
font-weight: 600;
|
201
|
+
color: var(--code-header-text-color);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
/* clipboard */
|
206
|
+
button {
|
207
|
+
@extend %cursor-pointer;
|
208
|
+
@extend %rounded;
|
209
|
+
|
210
|
+
border: 1px solid transparent;
|
211
|
+
height: $code-header-height;
|
212
|
+
width: $code-header-height;
|
213
|
+
padding: 0;
|
214
|
+
background-color: inherit;
|
215
|
+
|
216
|
+
i {
|
217
|
+
color: var(--code-header-icon-color);
|
218
|
+
}
|
219
|
+
|
220
|
+
&[timeout] {
|
221
|
+
&:hover {
|
222
|
+
border-color: var(--clipboard-checked-color);
|
223
|
+
}
|
224
|
+
|
225
|
+
i {
|
226
|
+
color: var(--clipboard-checked-color);
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
&:focus {
|
231
|
+
outline: none;
|
232
|
+
}
|
233
|
+
|
234
|
+
&:not([timeout]):hover {
|
235
|
+
background-color: rgba(128, 128, 128, 0.37);
|
236
|
+
|
237
|
+
i {
|
238
|
+
color: white;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
@media all and (min-width: 576px) {
|
245
|
+
div[class^='language-'] {
|
246
|
+
.post-content > & {
|
247
|
+
@include ml-mr(0);
|
248
|
+
|
249
|
+
border-radius: $base-radius;
|
250
|
+
}
|
251
|
+
|
252
|
+
.code-header {
|
253
|
+
@include ml-mr(0);
|
254
|
+
|
255
|
+
&::before {
|
256
|
+
$dot-size: 0.75rem;
|
257
|
+
$dot-margin: 0.5rem;
|
258
|
+
|
259
|
+
content: '';
|
260
|
+
display: inline-block;
|
261
|
+
margin-left: 1rem;
|
262
|
+
width: $dot-size;
|
263
|
+
height: $dot-size;
|
264
|
+
border-radius: 50%;
|
265
|
+
background-color: var(--code-header-muted-color);
|
266
|
+
box-shadow: ($dot-size + $dot-margin) 0 0 var(--code-header-muted-color),
|
267
|
+
($dot-size + $dot-margin) * 2 0 0 var(--code-header-muted-color);
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/*
|
2
|
+
* The SCSS variables
|
3
|
+
*/
|
4
|
+
|
5
|
+
/* sidebar */
|
6
|
+
|
7
|
+
$sidebar-width: 260px !default; /* the basic width */
|
8
|
+
$sidebar-width-large: 300px !default; /* screen width: >= 1650px */
|
9
|
+
|
10
|
+
/* other framework sizes */
|
11
|
+
|
12
|
+
$topbar-height: 3rem !default;
|
13
|
+
$search-max-width: 210px !default;
|
14
|
+
$footer-height: 5rem !default;
|
15
|
+
$footer-height-mobile: 6rem !default; /* screen width: < 850px */
|
16
|
+
$main-content-max-width: 1250px !default;
|
17
|
+
$bottom-min-height: 35rem !default;
|
18
|
+
$base-radius: 0.5rem;
|
19
|
+
|
20
|
+
/* syntax highlight */
|
21
|
+
|
22
|
+
$code-font-size: 0.85rem !default;
|
23
|
+
|
24
|
+
/* fonts */
|
25
|
+
|
26
|
+
$font-family-base: 'Source Sans Pro', 'Microsoft Yahei', sans-serif;
|
27
|
+
$font-family-heading: Lato, 'Microsoft Yahei', sans-serif;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
/*
|
2
|
+
* The syntax dark mode styles.
|
3
|
+
*/
|
4
|
+
|
5
|
+
@mixin dark-syntax {
|
6
|
+
--language-border-color: rgba(84, 83, 83, 0.27);
|
7
|
+
--highlight-bg-color: #252525;
|
8
|
+
--highlighter-rouge-color: #ff6e4e;
|
9
|
+
--highlight-lineno-color: #666666;
|
10
|
+
--inline-code-bg: #272822;
|
11
|
+
--code-header-text-color: #6a6a6a;
|
12
|
+
--code-header-muted-color: rgb(60, 60, 60);
|
13
|
+
--code-header-icon-color: rgb(86, 86, 86);
|
14
|
+
--clipboard-checked-color: #2bcc2b;
|
15
|
+
--filepath-text-color: #cacaca;
|
16
|
+
--code-snippets-color: #c2c2c2;
|
17
|
+
|
18
|
+
.highlight .gp {
|
19
|
+
color: #87939d;
|
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: #938d75; } /* 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: #ff329c; } /* Operator */
|
32
|
+
.highlight .p { color: #f8f8f2; } /* Punctuation */
|
33
|
+
.highlight .cm { color: #938d75; } /* Comment.Multiline */
|
34
|
+
.highlight .cp { color: #938d75; } /* Comment.Preproc */
|
35
|
+
.highlight .c1 { color: #938d75; } /* Comment.Single */
|
36
|
+
.highlight .cs { color: #938d75; } /* 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: #ff329c; } /* 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: #ff329c; } /* Name.Tag */
|
61
|
+
.highlight .nv { color: #f8f8f2; } /* Name.Variable */
|
62
|
+
.highlight .ow { color: #ff329c; } /* 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: #938d75; } /* Generic.Subheading & Diff Unified/Comment? */
|
85
|
+
.highlight .gd { color: #ff329c; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
|
86
|
+
.highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
|
87
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
/*
|
2
|
+
* The main dark mode styles
|
3
|
+
*/
|
4
|
+
|
5
|
+
@mixin dark-scheme {
|
6
|
+
/* Framework color */
|
7
|
+
--main-bg: rgb(27, 27, 30);
|
8
|
+
--mask-bg: rgb(68, 69, 70);
|
9
|
+
--main-border-color: rgb(44, 45, 45);
|
10
|
+
|
11
|
+
/* Common color */
|
12
|
+
--text-color: rgb(175, 176, 177);
|
13
|
+
--text-muted-color: rgb(125, 136, 146);
|
14
|
+
--heading-color: #cccccc;
|
15
|
+
--label-color: #a4a4c2;
|
16
|
+
--blockquote-border-color: rgb(66, 66, 66);
|
17
|
+
--blockquote-text-color: #868686;
|
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(48, 48, 48);
|
26
|
+
--checkbox-color: rgb(118, 120, 121);
|
27
|
+
--checkbox-checked-color: var(--link-color);
|
28
|
+
--img-bg: radial-gradient(circle, rgb(22, 22, 24) 0%, rgb(32, 32, 32) 100%);
|
29
|
+
--shimmer-bg: linear-gradient(
|
30
|
+
90deg,
|
31
|
+
rgba(255, 255, 255, 0) 0%,
|
32
|
+
rgba(58, 55, 55, 0.4) 50%,
|
33
|
+
rgba(255, 255, 255, 0) 100%
|
34
|
+
);
|
35
|
+
|
36
|
+
/* Sidebar */
|
37
|
+
--site-title-color: #717070;
|
38
|
+
--site-subtitle-color: #6d6c6b;
|
39
|
+
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
|
40
|
+
--sidebar-muted-color: #6d6c6b;
|
41
|
+
--sidebar-active-color: rgb(255, 255, 255, 0.95);
|
42
|
+
--sidebar-hover-bg: rgb(54, 54, 54, 0.33);
|
43
|
+
--sidebar-btn-bg: rgb(84, 83, 83, 0.3);
|
44
|
+
--sidebar-btn-color: #787878;
|
45
|
+
--avatar-border-color: rgb(206, 206, 206, 0.9);
|
46
|
+
|
47
|
+
/* Topbar */
|
48
|
+
--topbar-bg: rgb(27, 27, 30, 0.64);
|
49
|
+
--topbar-text-color: var(--text-color);
|
50
|
+
--search-wrapper-border-color: rgb(55, 55, 55);
|
51
|
+
--search-icon-color: rgb(100, 102, 105);
|
52
|
+
--input-focus-border-color: rgb(112, 114, 115);
|
53
|
+
|
54
|
+
/* Home page */
|
55
|
+
--post-list-text-color: rgb(175, 176, 177);
|
56
|
+
--btn-patinator-text-color: var(--text-color);
|
57
|
+
--btn-paginator-hover-color: rgb(64, 65, 66);
|
58
|
+
--btn-paginator-border-color: var(--btn-border-color);
|
59
|
+
--btn-text-color: var(--text-color);
|
60
|
+
|
61
|
+
/* Posts */
|
62
|
+
--toc-highlight: rgb(116, 178, 243);
|
63
|
+
--tag-hover: rgb(43, 56, 62);
|
64
|
+
--tb-odd-bg: rgba(42, 47, 53, 0.52); /* odd rows of the posts' table */
|
65
|
+
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
|
66
|
+
--tb-border-color: var(--tb-odd-bg);
|
67
|
+
--footnote-target-bg: rgb(63, 81, 181);
|
68
|
+
--btn-share-color: #6c757d;
|
69
|
+
--btn-share-hover-color: #bfc1ca;
|
70
|
+
--card-bg: #1e1e1e;
|
71
|
+
--card-hovor-bg: #464d51;
|
72
|
+
--card-shadow: rgb(21, 21, 21, 0.72) 0 6px 18px 0,
|
73
|
+
rgb(137, 135, 135, 0.24) 0 0 0 1px;
|
74
|
+
--kbd-wrap-color: #6a6a6a;
|
75
|
+
--kbd-text-color: #d3d3d3;
|
76
|
+
--kbd-bg-color: #242424;
|
77
|
+
--prompt-text-color: rgb(216, 212, 212, 0.75);
|
78
|
+
--prompt-tip-bg: rgb(22, 60, 36, 0.64);
|
79
|
+
--prompt-tip-icon-color: rgb(15, 164, 15, 0.81);
|
80
|
+
--prompt-info-bg: rgb(7, 59, 104, 0.8);
|
81
|
+
--prompt-info-icon-color: #0075d1;
|
82
|
+
--prompt-warning-bg: rgb(90, 69, 3, 0.88);
|
83
|
+
--prompt-warning-icon-color: rgb(255, 165, 0, 0.8);
|
84
|
+
--prompt-danger-bg: rgb(86, 28, 8, 0.8);
|
85
|
+
--prompt-danger-icon-color: #cd0202;
|
86
|
+
|
87
|
+
/* tags */
|
88
|
+
--tag-border: rgb(59, 79, 88);
|
89
|
+
--tag-shadow: rgb(32, 33, 33);
|
90
|
+
--search-tag-bg: var(--tag-bg);
|
91
|
+
--dash-color: rgb(63, 65, 68);
|
92
|
+
|
93
|
+
/* categories */
|
94
|
+
--categories-border: rgb(64, 66, 69, 0.5);
|
95
|
+
--categories-hover-bg: rgb(73, 75, 76);
|
96
|
+
--categories-icon-hover-color: white;
|
97
|
+
|
98
|
+
/* archives */
|
99
|
+
--timeline-node-bg: rgb(150, 152, 156);
|
100
|
+
--timeline-color: rgb(63, 65, 68);
|
101
|
+
--timeline-year-dot-color: var(--timeline-color);
|
102
|
+
|
103
|
+
.light {
|
104
|
+
display: none;
|
105
|
+
}
|
106
|
+
|
107
|
+
hr {
|
108
|
+
border-color: var(--main-border-color);
|
109
|
+
}
|
110
|
+
|
111
|
+
/* categories */
|
112
|
+
.categories.card,
|
113
|
+
.list-group-item {
|
114
|
+
background-color: var(--card-bg);
|
115
|
+
}
|
116
|
+
|
117
|
+
.categories {
|
118
|
+
.card-header {
|
119
|
+
background-color: var(--card-header-bg);
|
120
|
+
}
|
121
|
+
|
122
|
+
.list-group-item {
|
123
|
+
border-left: none;
|
124
|
+
border-right: none;
|
125
|
+
padding-left: 2rem;
|
126
|
+
border-color: var(--categories-border);
|
127
|
+
|
128
|
+
&:last-child {
|
129
|
+
border-bottom-color: var(--card-bg);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
#archives li:nth-child(odd) {
|
135
|
+
background-image: linear-gradient(
|
136
|
+
to left,
|
137
|
+
rgb(26, 26, 30),
|
138
|
+
rgb(39, 39, 45),
|
139
|
+
rgb(39, 39, 45),
|
140
|
+
rgb(39, 39, 45),
|
141
|
+
rgb(26, 26, 30)
|
142
|
+
);
|
143
|
+
}
|
144
|
+
|
145
|
+
color-scheme: dark;
|
146
|
+
|
147
|
+
/* stylelint-disable-next-line selector-id-pattern */
|
148
|
+
#disqus_thread {
|
149
|
+
color-scheme: none;
|
150
|
+
}
|
151
|
+
} /* dark-scheme */
|