jekyll-theme-coo 6.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +29 -0
- data/README.md +24 -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 +87 -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 +87 -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 +46 -0
- data/_data/origin/cors.yml +57 -0
- data/_includes/comments/disqus.html +50 -0
- data/_includes/comments/giscus.html +65 -0
- data/_includes/comments/utterances.html +50 -0
- data/_includes/comments.html +5 -0
- data/_includes/datetime.html +20 -0
- data/_includes/embed/twitch.html +8 -0
- data/_includes/embed/youtube.html +9 -0
- data/_includes/favicons.html +17 -0
- data/_includes/footer.html +36 -0
- data/_includes/google-analytics.html +14 -0
- data/_includes/head.html +99 -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/notification.html +24 -0
- data/_includes/origin-type.html +13 -0
- data/_includes/post-nav.html +34 -0
- data/_includes/post-paginator.html +91 -0
- data/_includes/post-sharing.html +52 -0
- data/_includes/read-time.html +37 -0
- data/_includes/refactor-content.html +266 -0
- data/_includes/related-posts.html +96 -0
- data/_includes/search-loader.html +47 -0
- data/_includes/search-results.html +10 -0
- data/_includes/sidebar.html +106 -0
- data/_includes/toc.html +13 -0
- data/_includes/topbar.html +82 -0
- data/_includes/trending-tags.html +46 -0
- data/_includes/update-list.html +39 -0
- data/_layouts/archives.html +35 -0
- data/_layouts/categories.html +138 -0
- data/_layouts/category.html +24 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +87 -0
- data/_layouts/home.html +16 -0
- data/_layouts/page.html +22 -0
- data/_layouts/post.html +24 -0
- data/_layouts/tag.html +23 -0
- data/_layouts/tags.html +22 -0
- data/_sass/addon/commons.scss +1537 -0
- data/_sass/addon/module.scss +200 -0
- data/_sass/addon/syntax.scss +292 -0
- data/_sass/addon/variables.scss +33 -0
- data/_sass/colors/syntax-dark.scss +164 -0
- data/_sass/colors/syntax-light.scss +214 -0
- data/_sass/colors/typography-dark.scss +151 -0
- data/_sass/colors/typography-light.scss +112 -0
- data/_sass/layout/archives.scss +144 -0
- data/_sass/layout/categories.scss +83 -0
- data/_sass/layout/category-tag.scss +72 -0
- data/_sass/layout/home.scss +189 -0
- data/_sass/layout/post.scss +357 -0
- data/_sass/layout/tags.scss +19 -0
- data/_sass/main.scss +13 -0
- data/_sass/variables-hook.scss +3 -0
- data/assets/404.html +14 -0
- data/assets/css/jekyll-theme-coo.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 +49 -0
- data/assets/js/dist/categories.min.js +4 -0
- data/assets/js/dist/commons.min.js +4 -0
- data/assets/js/dist/home.min.js +4 -0
- data/assets/js/dist/misc.min.js +4 -0
- data/assets/js/dist/page.min.js +4 -0
- data/assets/js/dist/post.min.js +4 -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
- metadata +261 -0
@@ -0,0 +1,200 @@
|
|
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
|
+
main & {
|
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: var(--text-muted-hightlight-color);
|
127
|
+
font-weight: 600;
|
128
|
+
}
|
129
|
+
|
130
|
+
%text-sm {
|
131
|
+
font-size: 0.85rem;
|
132
|
+
}
|
133
|
+
|
134
|
+
%text-xs {
|
135
|
+
font-size: 0.8rem;
|
136
|
+
}
|
137
|
+
|
138
|
+
%sup-fn-target {
|
139
|
+
&:target {
|
140
|
+
background-color: var(--footnote-target-bg);
|
141
|
+
width: -moz-fit-content;
|
142
|
+
width: -webkit-fit-content;
|
143
|
+
width: fit-content;
|
144
|
+
transition: background-color 1.75s ease-in-out;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
/* ---------- scss mixin --------- */
|
149
|
+
|
150
|
+
@mixin mt-mb($value) {
|
151
|
+
margin-top: $value;
|
152
|
+
margin-bottom: $value;
|
153
|
+
}
|
154
|
+
|
155
|
+
@mixin ml-mr($value) {
|
156
|
+
margin-left: $value;
|
157
|
+
margin-right: $value;
|
158
|
+
}
|
159
|
+
|
160
|
+
@mixin pt-pb($val) {
|
161
|
+
padding-top: $val;
|
162
|
+
padding-bottom: $val;
|
163
|
+
}
|
164
|
+
|
165
|
+
@mixin pl-pr($val) {
|
166
|
+
padding-left: $val;
|
167
|
+
padding-right: $val;
|
168
|
+
}
|
169
|
+
|
170
|
+
@mixin placeholder {
|
171
|
+
color: var(--text-muted-color) !important;
|
172
|
+
}
|
173
|
+
|
174
|
+
@mixin placeholder-focus {
|
175
|
+
opacity: 0.6;
|
176
|
+
}
|
177
|
+
|
178
|
+
@mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) {
|
179
|
+
color: $color;
|
180
|
+
font-size: $font-size;
|
181
|
+
font-weight: $font-weight;
|
182
|
+
}
|
183
|
+
|
184
|
+
@mixin align-center {
|
185
|
+
position: relative;
|
186
|
+
left: 50%;
|
187
|
+
transform: translateX(-50%);
|
188
|
+
}
|
189
|
+
|
190
|
+
@mixin prompt($type, $fa-content, $fa-style: 'solid') {
|
191
|
+
&.prompt-#{$type} {
|
192
|
+
background-color: var(--prompt-#{$type}-bg);
|
193
|
+
|
194
|
+
&::before {
|
195
|
+
content: $fa-content;
|
196
|
+
color: var(--prompt-#{$type}-icon-color);
|
197
|
+
font: var(--fa-font-#{$fa-style});
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
@@ -0,0 +1,292 @@
|
|
1
|
+
/*
|
2
|
+
* The syntax highlight.
|
3
|
+
*/
|
4
|
+
|
5
|
+
@import 'colors/syntax-light';
|
6
|
+
@import 'colors/syntax-dark';
|
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-bottom: 0.75rem;
|
59
|
+
|
60
|
+
pre {
|
61
|
+
margin-bottom: 0;
|
62
|
+
font-size: $code-font-size;
|
63
|
+
line-height: 1.4rem;
|
64
|
+
word-wrap: normal; /* Fixed Safari overflow-x */
|
65
|
+
}
|
66
|
+
|
67
|
+
table {
|
68
|
+
td {
|
69
|
+
&:first-child {
|
70
|
+
display: inline-block;
|
71
|
+
margin-left: 1rem;
|
72
|
+
margin-right: 0.75rem;
|
73
|
+
}
|
74
|
+
|
75
|
+
&:last-child {
|
76
|
+
padding-right: 2rem !important;
|
77
|
+
}
|
78
|
+
|
79
|
+
pre {
|
80
|
+
overflow: visible; /* Fixed iOS safari overflow-x */
|
81
|
+
word-break: normal; /* Fixed iOS safari linenos code break */
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.lineno {
|
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
|
+
-ms-user-select: none;
|
93
|
+
user-select: none;
|
94
|
+
}
|
95
|
+
} /* .highlight */
|
96
|
+
|
97
|
+
code {
|
98
|
+
-webkit-hyphens: none;
|
99
|
+
-ms-hyphens: none;
|
100
|
+
hyphens: none;
|
101
|
+
color: var(--code-color);
|
102
|
+
|
103
|
+
&.highlighter-rouge {
|
104
|
+
font-size: $code-font-size;
|
105
|
+
padding: 3px 5px;
|
106
|
+
word-break: break-word;
|
107
|
+
border-radius: 4px;
|
108
|
+
background-color: var(--inline-code-bg);
|
109
|
+
}
|
110
|
+
|
111
|
+
&.filepath {
|
112
|
+
background-color: inherit;
|
113
|
+
color: var(--filepath-text-color);
|
114
|
+
font-weight: 600;
|
115
|
+
padding: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
a > &.highlighter-rouge {
|
119
|
+
padding-bottom: 0; /* show link's underlinke */
|
120
|
+
color: inherit;
|
121
|
+
}
|
122
|
+
|
123
|
+
a:hover > &.highlighter-rouge {
|
124
|
+
border-bottom: none;
|
125
|
+
}
|
126
|
+
|
127
|
+
blockquote & {
|
128
|
+
color: inherit;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
td.rouge-code {
|
133
|
+
@extend %code-snippet-padding;
|
134
|
+
|
135
|
+
/*
|
136
|
+
Prevent some browser extends from
|
137
|
+
changing the URL string of code block.
|
138
|
+
*/
|
139
|
+
a {
|
140
|
+
color: inherit !important;
|
141
|
+
border-bottom: none !important;
|
142
|
+
pointer-events: none;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
div[class^='language-'] {
|
147
|
+
@extend %rounded;
|
148
|
+
@extend %code-snippet-bg;
|
149
|
+
|
150
|
+
box-shadow: var(--language-border-color) 0 0 0 1px;
|
151
|
+
|
152
|
+
.content > & {
|
153
|
+
@include ml-mr(-1rem);
|
154
|
+
|
155
|
+
border-radius: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
.highlight {
|
159
|
+
border-top-left-radius: 0;
|
160
|
+
border-top-right-radius: 0;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
/* Hide line numbers for default, console, and terminal code snippets */
|
165
|
+
div {
|
166
|
+
&.nolineno,
|
167
|
+
&.language-plaintext,
|
168
|
+
&.language-console,
|
169
|
+
&.language-terminal {
|
170
|
+
td:first-child {
|
171
|
+
padding: 0 !important;
|
172
|
+
margin-right: 0;
|
173
|
+
|
174
|
+
.lineno {
|
175
|
+
display: none;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
.code-header {
|
182
|
+
@extend %no-cursor;
|
183
|
+
|
184
|
+
display: flex;
|
185
|
+
justify-content: space-between;
|
186
|
+
align-items: center;
|
187
|
+
height: $code-header-height;
|
188
|
+
margin-left: 0.75rem;
|
189
|
+
margin-right: 0.25rem;
|
190
|
+
|
191
|
+
/* the label block */
|
192
|
+
span {
|
193
|
+
line-height: $code-header-height;
|
194
|
+
|
195
|
+
/* label icon */
|
196
|
+
i {
|
197
|
+
font-size: 1rem;
|
198
|
+
width: $code-icon-width;
|
199
|
+
color: var(--code-header-icon-color);
|
200
|
+
|
201
|
+
&.small {
|
202
|
+
font-size: 70%;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
@at-root [file] #{&} > i {
|
207
|
+
position: relative;
|
208
|
+
top: 1px; /* center the file icon */
|
209
|
+
}
|
210
|
+
|
211
|
+
/* label text */
|
212
|
+
&::after {
|
213
|
+
content: attr(data-label-text);
|
214
|
+
font-size: 0.85rem;
|
215
|
+
font-weight: 600;
|
216
|
+
color: var(--code-header-text-color);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
/* clipboard */
|
221
|
+
button {
|
222
|
+
@extend %cursor-pointer;
|
223
|
+
@extend %rounded;
|
224
|
+
|
225
|
+
border: 1px solid transparent;
|
226
|
+
height: $code-header-height;
|
227
|
+
width: $code-header-height;
|
228
|
+
padding: 0;
|
229
|
+
background-color: inherit;
|
230
|
+
|
231
|
+
i {
|
232
|
+
color: var(--code-header-icon-color);
|
233
|
+
}
|
234
|
+
|
235
|
+
&[timeout] {
|
236
|
+
&:hover {
|
237
|
+
border-color: var(--clipboard-checked-color);
|
238
|
+
}
|
239
|
+
|
240
|
+
i {
|
241
|
+
color: var(--clipboard-checked-color);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
&:focus {
|
246
|
+
outline: none;
|
247
|
+
}
|
248
|
+
|
249
|
+
&:not([timeout]):hover {
|
250
|
+
background-color: rgba(128, 128, 128, 0.37);
|
251
|
+
|
252
|
+
i {
|
253
|
+
color: white;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
@media all and (min-width: 576px) {
|
260
|
+
div[class^='language-'] {
|
261
|
+
.content > & {
|
262
|
+
@include ml-mr(0);
|
263
|
+
|
264
|
+
border-radius: $base-radius;
|
265
|
+
}
|
266
|
+
|
267
|
+
.code-header {
|
268
|
+
@include ml-mr(0);
|
269
|
+
|
270
|
+
$dot-margin: 1rem;
|
271
|
+
|
272
|
+
&::before {
|
273
|
+
content: '';
|
274
|
+
display: inline-block;
|
275
|
+
margin-left: $dot-margin;
|
276
|
+
width: $code-dot-size;
|
277
|
+
height: $code-dot-size;
|
278
|
+
border-radius: 50%;
|
279
|
+
background-color: var(--code-header-muted-color);
|
280
|
+
box-shadow: ($code-dot-size + $code-dot-gap) 0 0
|
281
|
+
var(--code-header-muted-color),
|
282
|
+
($code-dot-size + $code-dot-gap) * 2 0 0
|
283
|
+
var(--code-header-muted-color);
|
284
|
+
}
|
285
|
+
|
286
|
+
span {
|
287
|
+
// center the text of label
|
288
|
+
margin-left: calc(($dot-margin + $code-dot-size) / 2 * -1);
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
}
|
@@ -0,0 +1,33 @@
|
|
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
|
+
$sb-btn-gap: 0.8rem !default;
|
10
|
+
$sb-btn-gap-lg: 1rem !default;
|
11
|
+
|
12
|
+
/* other framework sizes */
|
13
|
+
|
14
|
+
$topbar-height: 3rem !default;
|
15
|
+
$search-max-width: 200px !default;
|
16
|
+
$footer-height: 5rem !default;
|
17
|
+
$footer-height-large: 6rem !default; /* screen width: < 850px */
|
18
|
+
$main-content-max-width: 1250px !default;
|
19
|
+
$base-radius: 0.625rem !default;
|
20
|
+
$back2top-size: 2.75rem !default;
|
21
|
+
|
22
|
+
/* syntax highlight */
|
23
|
+
|
24
|
+
$code-font-size: 0.85rem !default;
|
25
|
+
$code-header-height: 2.25rem !default;
|
26
|
+
$code-dot-size: 0.75rem !default;
|
27
|
+
$code-dot-gap: 0.5rem !default;
|
28
|
+
$code-icon-width: 1.75rem !default;
|
29
|
+
|
30
|
+
/* fonts */
|
31
|
+
|
32
|
+
$font-family-base: 'Source Sans Pro', 'Microsoft Yahei', sans-serif !default;
|
33
|
+
$font-family-heading: Lato, 'Microsoft Yahei', sans-serif !default;
|
@@ -0,0 +1,164 @@
|
|
1
|
+
/*
|
2
|
+
* The syntax dark mode styles.
|
3
|
+
*/
|
4
|
+
|
5
|
+
@mixin dark-syntax {
|
6
|
+
--language-border-color: #2d2d2d;
|
7
|
+
--highlight-bg-color: #151515;
|
8
|
+
--highlighter-rouge-color: #c9def1;
|
9
|
+
--highlight-lineno-color: #808080;
|
10
|
+
--inline-code-bg: #323238;
|
11
|
+
--code-color: #b0b0b0;
|
12
|
+
--code-header-text-color: #6a6a6a;
|
13
|
+
--code-header-muted-color: #353535;
|
14
|
+
--code-header-icon-color: #565656;
|
15
|
+
--clipboard-checked-color: #2bcc2b;
|
16
|
+
--filepath-text-color: #cacaca;
|
17
|
+
|
18
|
+
.highlight .gp {
|
19
|
+
color: #87939d;
|
20
|
+
}
|
21
|
+
|
22
|
+
/* --- Syntax highlight theme from `rougify style base16.dark` --- */
|
23
|
+
|
24
|
+
.highlight table td {
|
25
|
+
padding: 5px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.highlight table pre {
|
29
|
+
margin: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
.highlight,
|
33
|
+
.highlight .w {
|
34
|
+
color: #d0d0d0;
|
35
|
+
background-color: #151515;
|
36
|
+
}
|
37
|
+
|
38
|
+
.highlight .err {
|
39
|
+
color: #151515;
|
40
|
+
background-color: #ac4142;
|
41
|
+
}
|
42
|
+
|
43
|
+
.highlight .c,
|
44
|
+
.highlight .ch,
|
45
|
+
.highlight .cd,
|
46
|
+
.highlight .cm,
|
47
|
+
.highlight .cpf,
|
48
|
+
.highlight .c1,
|
49
|
+
.highlight .cs {
|
50
|
+
color: #848484;
|
51
|
+
}
|
52
|
+
|
53
|
+
.highlight .cp {
|
54
|
+
color: #f4bf75;
|
55
|
+
}
|
56
|
+
|
57
|
+
.highlight .nt {
|
58
|
+
color: #f4bf75;
|
59
|
+
}
|
60
|
+
|
61
|
+
.highlight .o,
|
62
|
+
.highlight .ow {
|
63
|
+
color: #d0d0d0;
|
64
|
+
}
|
65
|
+
|
66
|
+
.highlight .p,
|
67
|
+
.highlight .pi {
|
68
|
+
color: #d0d0d0;
|
69
|
+
}
|
70
|
+
|
71
|
+
.highlight .gi {
|
72
|
+
color: #90a959;
|
73
|
+
}
|
74
|
+
|
75
|
+
.highlight .gd {
|
76
|
+
color: #f08a8b;
|
77
|
+
background-color: #320000;
|
78
|
+
}
|
79
|
+
|
80
|
+
.highlight .gh {
|
81
|
+
color: #6a9fb5;
|
82
|
+
background-color: #151515;
|
83
|
+
font-weight: bold;
|
84
|
+
}
|
85
|
+
|
86
|
+
.highlight .k,
|
87
|
+
.highlight .kn,
|
88
|
+
.highlight .kp,
|
89
|
+
.highlight .kr,
|
90
|
+
.highlight .kv {
|
91
|
+
color: #aa759f;
|
92
|
+
}
|
93
|
+
|
94
|
+
.highlight .kc {
|
95
|
+
color: #d28445;
|
96
|
+
}
|
97
|
+
|
98
|
+
.highlight .kt {
|
99
|
+
color: #d28445;
|
100
|
+
}
|
101
|
+
|
102
|
+
.highlight .kd {
|
103
|
+
color: #d28445;
|
104
|
+
}
|
105
|
+
|
106
|
+
.highlight .s,
|
107
|
+
.highlight .sb,
|
108
|
+
.highlight .sc,
|
109
|
+
.highlight .dl,
|
110
|
+
.highlight .sd,
|
111
|
+
.highlight .s2,
|
112
|
+
.highlight .sh,
|
113
|
+
.highlight .sx,
|
114
|
+
.highlight .s1 {
|
115
|
+
color: #90a959;
|
116
|
+
}
|
117
|
+
|
118
|
+
.highlight .sa {
|
119
|
+
color: #aa759f;
|
120
|
+
}
|
121
|
+
|
122
|
+
.highlight .sr {
|
123
|
+
color: #75b5aa;
|
124
|
+
}
|
125
|
+
|
126
|
+
.highlight .si {
|
127
|
+
color: #b76d45;
|
128
|
+
}
|
129
|
+
|
130
|
+
.highlight .se {
|
131
|
+
color: #b76d45;
|
132
|
+
}
|
133
|
+
|
134
|
+
.highlight .nn {
|
135
|
+
color: #f4bf75;
|
136
|
+
}
|
137
|
+
|
138
|
+
.highlight .nc {
|
139
|
+
color: #f4bf75;
|
140
|
+
}
|
141
|
+
|
142
|
+
.highlight .no {
|
143
|
+
color: #f4bf75;
|
144
|
+
}
|
145
|
+
|
146
|
+
.highlight .na {
|
147
|
+
color: #6a9fb5;
|
148
|
+
}
|
149
|
+
|
150
|
+
.highlight .m,
|
151
|
+
.highlight .mb,
|
152
|
+
.highlight .mf,
|
153
|
+
.highlight .mh,
|
154
|
+
.highlight .mi,
|
155
|
+
.highlight .il,
|
156
|
+
.highlight .mo,
|
157
|
+
.highlight .mx {
|
158
|
+
color: #90a959;
|
159
|
+
}
|
160
|
+
|
161
|
+
.highlight .ss {
|
162
|
+
color: #90a959;
|
163
|
+
}
|
164
|
+
}
|