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