jekyll-theme-minimalism 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +74 -0
  4. data/_includes/baidu.html +11 -0
  5. data/_includes/cnzz.html +6 -0
  6. data/_includes/content.html +132 -0
  7. data/_includes/copyright.html +7 -0
  8. data/_includes/favicon.html +12 -0
  9. data/_includes/footer.html +1 -0
  10. data/_includes/google.html +11 -0
  11. data/_includes/header.html +3 -0
  12. data/_includes/header_title.html +10 -0
  13. data/_includes/statistics_body.html +3 -0
  14. data/_includes/statistics_head.html +4 -0
  15. data/_layouts/about.html +47 -0
  16. data/_layouts/archive.html +64 -0
  17. data/_layouts/articles.html +55 -0
  18. data/_layouts/categories.html +79 -0
  19. data/_layouts/index.html +64 -0
  20. data/_layouts/post.html +69 -0
  21. data/_sass/_about.scss +17 -0
  22. data/_sass/_archive.scss +312 -0
  23. data/_sass/_articles.scss +136 -0
  24. data/_sass/_categories.scss +104 -0
  25. data/_sass/_common.scss +408 -0
  26. data/_sass/_index.scss +133 -0
  27. data/_sass/_markdown.scss +219 -0
  28. data/_sass/_post.scss +51 -0
  29. data/_sass/_prism-line-numbers.scss +43 -0
  30. data/assets/css/about.scss +4 -0
  31. data/assets/css/archive.scss +4 -0
  32. data/assets/css/articles.scss +4 -0
  33. data/assets/css/categories.scss +4 -0
  34. data/assets/css/index.scss +4 -0
  35. data/assets/css/markdown.scss +4 -0
  36. data/assets/css/post.scss +4 -0
  37. data/assets/css/prism-line-numbers.scss +4 -0
  38. data/assets/css/prism.css +124 -0
  39. data/assets/img/avatar.webp +0 -0
  40. data/assets/img/favicon.ico +0 -0
  41. data/assets/js/copy_with_declaration.js +33 -0
  42. data/assets/js/link_target.js +6 -0
  43. data/assets/js/lock_copy.js +1 -0
  44. data/assets/js/lock_menu.js +1 -0
  45. data/assets/js/prism-line-numbers.js +117 -0
  46. data/assets/js/prism.js +50 -0
  47. data/assets/js/timeline.js +33 -0
  48. metadata +48 -2
@@ -0,0 +1,136 @@
1
+ @import "common";
2
+
3
+ html {
4
+ text-rendering: optimizeLegibility;
5
+ text-align: justify;
6
+ }
7
+
8
+ body {
9
+ @include flex(column);
10
+
11
+ max-width: 840px;
12
+ min-height: 100vh;
13
+ height: auto;
14
+ margin: 0 auto;
15
+
16
+ background: #ffffff;
17
+ }
18
+
19
+ a {
20
+ text-decoration: none;
21
+ -webkit-tap-highlight-color: transparent;
22
+ }
23
+
24
+ .header {
25
+ @include flex();
26
+ -webkit-box-pack: space-evenly;
27
+ -ms-flex-pack: space-evenly;
28
+ justify-content: space-evenly;
29
+ -ms-flex-wrap: wrap;
30
+ flex-wrap: wrap;
31
+
32
+ padding: 20px;
33
+ margin: 40px 0 60px;
34
+
35
+ a {
36
+ color: #111;
37
+ font-size: 1.5em;
38
+ border-bottom: 2px dashed #111;
39
+ @include material-transition();
40
+ }
41
+ }
42
+
43
+ .article-content {
44
+ -webkit-box-flex: 1;
45
+ -ms-flex: 1;
46
+ flex: 1;
47
+ }
48
+
49
+ .article-block {
50
+ padding: 0 20px;
51
+ @include material-transition();
52
+ }
53
+
54
+ .article-header {
55
+ @include flex();
56
+ -webkit-box-align: center;
57
+ -ms-flex-align: center;
58
+ align-items: center;
59
+ -webkit-box-pack: justify;
60
+ -ms-flex-pack: justify;
61
+ justify-content: space-between;
62
+ }
63
+
64
+ @media (min-width: 769px) {
65
+ .header {
66
+ a:hover {
67
+ color: #111;
68
+ -webkit-transform: scale(1.05);
69
+ transform: scale(1.05);
70
+ border-bottom: 2px solid #ffea00;
71
+ }
72
+ }
73
+
74
+ .article-header {
75
+ &:hover {
76
+ .article-title {
77
+ border-bottom: 2px solid #ffea00;
78
+ }
79
+ }
80
+ }
81
+ }
82
+
83
+ .article-title {
84
+ color: #111;
85
+ font-size: 1.3em;
86
+ border-bottom: 2px solid #ffffff;
87
+ }
88
+
89
+ .article-date {
90
+ color: #666;
91
+ font-size: 0.9em;
92
+ }
93
+
94
+ .article-excerpt {
95
+ margin-bottom: 40px;
96
+
97
+ p {
98
+ margin: 0;
99
+ color: #666;
100
+ font-size: 1em;
101
+ line-height: 1.6em;
102
+ }
103
+ }
104
+
105
+ @media (max-width: 415px) {
106
+ .header {
107
+ margin: 0 0 20px 0;
108
+ -webkit-box-pack: justify;
109
+ -ms-flex-pack: justify;
110
+ justify-content: space-between;
111
+
112
+ a {
113
+ font-size: .88em;
114
+ }
115
+ }
116
+
117
+ .article-header {
118
+ @include flex(column);
119
+ -webkit-box-align: start;
120
+ -ms-flex-align: start;
121
+ align-items: flex-start;
122
+ }
123
+
124
+ .article-title {
125
+ font-size: 1.2em;
126
+ margin: auto auto 0 0;
127
+ }
128
+
129
+ .article-date {
130
+ font-size: .9em;
131
+ }
132
+
133
+ .article-excerpt p {
134
+ font-size: .9em;
135
+ }
136
+ }
@@ -0,0 +1,104 @@
1
+ @import "common";
2
+
3
+ hr {
4
+ margin: 0 2em;
5
+ border: 0;
6
+ border-right: 1px solid rgba(128, 128, 128, .1);
7
+ }
8
+
9
+ body {
10
+ min-height: 100vh;
11
+ @include flex(column);
12
+ background: #fff;
13
+ margin: 0;
14
+ }
15
+
16
+ a {
17
+ -webkit-tap-highlight-color: transparent;
18
+ }
19
+
20
+ .tags-content {
21
+ width: 100%;
22
+ text-align: justify;
23
+
24
+ margin: 30px 0;
25
+
26
+ -webkit-box-flex: 1;
27
+ -ms-flex: 1;
28
+ flex: 1;
29
+ }
30
+
31
+ .content {
32
+ max-width: 840px;
33
+ margin: 0 auto;
34
+ padding: 0 30px;
35
+
36
+ @include flex();
37
+ -ms-flex-wrap: nowrap;
38
+ flex-wrap: nowrap;
39
+
40
+ h2 {
41
+ margin-bottom: 40px;
42
+ }
43
+
44
+ i {
45
+ font-weight: bold;
46
+ }
47
+
48
+ p {
49
+ font-weight: bold;
50
+ }
51
+
52
+ a {
53
+ text-decoration: none;
54
+ color: #666;
55
+ line-height: 1.7;
56
+ }
57
+ }
58
+
59
+ .articles {
60
+ @include flex(column);
61
+ -webkit-box-align: start;
62
+ -ms-flex-align: start;
63
+ align-items: flex-start;
64
+
65
+ a {
66
+ margin-bottom: 20px;
67
+ }
68
+ }
69
+
70
+ @media (min-width: 769px) {
71
+ .articles {
72
+ a:hover {
73
+ color: #111;
74
+ }
75
+ }
76
+ }
77
+
78
+ .categories {
79
+ width: 50%;
80
+ }
81
+
82
+ .tags {
83
+ width: 50%;
84
+ }
85
+
86
+ @media (max-width: 415px) {
87
+ hr {
88
+ margin: 2em 0;
89
+ border: 0;
90
+ border-bottom: 1px solid rgba(128, 128, 128, .1);
91
+ }
92
+
93
+ .content {
94
+ @include flex(column);
95
+ }
96
+
97
+ .categories {
98
+ width: 100%;
99
+ }
100
+
101
+ .tags {
102
+ width: 100%;
103
+ }
104
+ }
@@ -0,0 +1,408 @@
1
+ html {
2
+ font-family: Monaco, Helvetica, Tahoma, Arial, STXihei, "华文细黑",
3
+ "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
4
+ }
5
+
6
+ ::-webkit-selection {
7
+ background: #fffac4;
8
+ color: #111;
9
+ text-shadow: none;
10
+ }
11
+
12
+ ::-moz-selection {
13
+ background: #fffac4;
14
+ color: #111;
15
+ text-shadow: none;
16
+ }
17
+
18
+ ::-ms-selection {
19
+ background: #fffac4;
20
+ color: #111;
21
+ text-shadow: none;
22
+ }
23
+
24
+ ::selection {
25
+ background: #fffac4;
26
+ color: #111;
27
+ text-shadow: none;
28
+ }
29
+
30
+ @mixin border-radius($radius) {
31
+ border-radius: $radius;
32
+ }
33
+
34
+ @mixin box-shadow($h-shadow, $v-shadow, $blur, $spread, $color) {
35
+ -webkit-box-shadow: $h-shadow $v-shadow $blur $spread $color;
36
+ -ms-box-shadow: $h-shadow $v-shadow $blur $spread $color;
37
+ box-shadow: $h-shadow $v-shadow $blur $spread $color;
38
+ }
39
+
40
+ @mixin material-transition() {
41
+ -webkit-transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
42
+ transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
43
+ }
44
+
45
+ @mixin material-box-shadow($depth:1) {
46
+ @if $depth==1 {
47
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
48
+ -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
49
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
50
+ }
51
+ @else if $depth==2 {
52
+ -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
53
+ -ms-box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
54
+ box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
55
+ }
56
+ @else if $depth==3 {
57
+ -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
58
+ -ms-box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
59
+ box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
60
+ }
61
+ @else if $depth==4 {
62
+ -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
63
+ -ms-box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
64
+ box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
65
+ }
66
+ @else if $depth==5 {
67
+ -webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, .30), 0 15px 12px rgba(0, 0, 0, .22);
68
+ -ms-box-shadow: 0 19px 38px rgba(0, 0, 0, .30), 0 15px 12px rgba(0, 0, 0, .22);
69
+ box-shadow: 0 19px 38px rgba(0, 0, 0, .30), 0 15px 12px rgba(0, 0, 0, .22);
70
+ }
71
+ @include material-transition();
72
+ }
73
+
74
+ @mixin flex($direction:row) {
75
+ display: -webkit-box;
76
+ display: -ms-flexbox;
77
+ display: flex;
78
+ display: -webkit-flex;
79
+ -webkit-box-orient: vertical;
80
+ -webkit-box-direction: normal;
81
+ -ms-flex-direction: $direction;
82
+ flex-direction: $direction;
83
+ }
84
+
85
+ @-webkit-keyframes pulse {
86
+ to {
87
+ opacity: 0;
88
+ -webkit-transform: scale(1);
89
+ transform: scale(1);
90
+ }
91
+ }
92
+
93
+ @keyframes pulse {
94
+ to {
95
+ opacity: 0;
96
+ -webkit-transform: scale(1);
97
+ transform: scale(1);
98
+ }
99
+ }
100
+
101
+ @-webkit-keyframes twinkle {
102
+ to {
103
+ opacity: 0;
104
+ }
105
+ }
106
+
107
+ @keyframes twinkle {
108
+ to {
109
+ opacity: 0;
110
+ }
111
+ }
112
+
113
+ /* (header.html) CSS start */
114
+ header {
115
+ @include flex(column);
116
+ -webkit-box-pack: center;
117
+ -ms-flex-pack: center;
118
+ justify-content: center;
119
+
120
+ margin: 30px 0 0;
121
+ padding: 0 30px;
122
+
123
+ a {
124
+ color: #111;
125
+ text-decoration: none;
126
+ @include material-transition();
127
+ font-size: 2em;
128
+ font-weight: bold;
129
+ }
130
+
131
+ a::before {
132
+ -webkit-animation: twinkle 1s linear infinite;
133
+ animation: twinkle 1s linear infinite;
134
+ content: "";
135
+ display: block;
136
+ position: absolute;
137
+ bottom: 0;
138
+ left: 0;
139
+ width: 100%;
140
+ height: 2px;
141
+ background: #ffea00;
142
+ }
143
+ }
144
+
145
+ .title {
146
+ position: relative;
147
+ display: inline-block;
148
+ margin: 30px auto 30px;
149
+ padding: 0;
150
+ color: #111;
151
+ font-size: 112.5%;
152
+ text-align: center;
153
+ }
154
+
155
+ .title .title-tip {
156
+ visibility: hidden;
157
+ width: 85px;
158
+ background-color: #555;
159
+ color: #fff;
160
+ text-align: center;
161
+ border-radius: 6px;
162
+ padding: 5px 0;
163
+
164
+ position: absolute;
165
+ z-index: 1;
166
+ top: 5px;
167
+ right: 120%;
168
+ opacity: 0;
169
+ -webkit-transition: opacity 0.3s;
170
+ transition: opacity 0.3s;
171
+ }
172
+
173
+ @media (max-width: 415px) {
174
+ header {
175
+ a {
176
+ font-size: 1.7em;
177
+ }
178
+ }
179
+ }
180
+
181
+ @media (min-width: 769px) {
182
+ .title .title-tip::after {
183
+ content: "";
184
+ position: absolute;
185
+ top: 50%;
186
+ left: 100%;
187
+ margin-top: -5px;
188
+ border-width: 5px;
189
+ border-style: solid;
190
+ border-color: transparent transparent transparent #555;
191
+ }
192
+
193
+ .title:hover .title-tip {
194
+ visibility: visible;
195
+ opacity: 1;
196
+ }
197
+ }
198
+ /* (header.html) CSS end */
199
+
200
+ /* (content.html) CSS start */
201
+ .page-content {
202
+ width: 100%;
203
+ text-align: justify;
204
+
205
+ -webkit-box-flex: 1;
206
+ -ms-flex: 1;
207
+ flex: 1;
208
+
209
+ p {
210
+ color: #666;
211
+ font-size: 18px;
212
+ line-height: 1.8;
213
+ margin: 0 0 30px;
214
+ }
215
+
216
+ a {
217
+ text-decoration: none;
218
+ color: #1976D2;
219
+ border-bottom: 1px dashed #1976D2;
220
+ @include material-transition();
221
+ }
222
+
223
+ a:hover {
224
+ color: #111;
225
+ border-bottom: 2px solid #ffea00;
226
+ }
227
+ }
228
+
229
+ .content {
230
+ max-width: 840px;
231
+ margin: 0 auto;
232
+ padding: 0 30px;
233
+ }
234
+
235
+ .licenses {
236
+ margin-top: 60px;
237
+
238
+ p {
239
+ text-align: center;
240
+ }
241
+ }
242
+
243
+ a[class="gitment-header-issue-link"],
244
+ a[class="gitment-editor-avatar"],
245
+ a[class="gitment-editor-login-link"],
246
+ a[class="gitment-editor-footer-tip"],
247
+ a[class="gitment-footer-project-link"] {
248
+ border-bottom: none !important;
249
+
250
+ &:hover {
251
+ border-bottom: none !important;
252
+ }
253
+ }
254
+
255
+ .reward {
256
+ text-align: center;
257
+
258
+ p {
259
+ color: #999;
260
+ margin: 30px 0 10px 0;
261
+ }
262
+ }
263
+
264
+ .reward-qr-code {
265
+ @include flex();
266
+
267
+ img {
268
+ width: 200px;
269
+ height: 200px;
270
+ margin: 0 40px;
271
+ }
272
+ }
273
+
274
+ .alipay {
275
+ display: inline-block;
276
+
277
+ span {
278
+ display: block;
279
+ font-size: 18px;
280
+ font-weight: bold;
281
+ color: #1CA9E6;
282
+ margin: 20px 0;
283
+ }
284
+ }
285
+
286
+ .wechat {
287
+ @extend .alipay;
288
+
289
+ span {
290
+ color: #1BB823;
291
+ }
292
+ }
293
+
294
+ #btn-show-reward {
295
+ text-align: center;
296
+
297
+ div {
298
+ display: inline-block;
299
+ width: 60px;
300
+ height: 60px;
301
+ border-radius: 50%;
302
+ color: #fff;
303
+ cursor: pointer;
304
+ font-size: 2em;
305
+ line-height: 60px;
306
+ text-align: center;
307
+ background: #FFD740;
308
+ }
309
+ }
310
+
311
+ #btn-show-comment {
312
+ text-align: center;
313
+
314
+ div {
315
+ display: inline-block;
316
+ padding: 5px 10px;
317
+ color: #999;
318
+ cursor: pointer;
319
+ font-size: 18px;
320
+ border: 2px solid #999;
321
+ border-radius: 4px;
322
+ }
323
+
324
+ div:hover {
325
+ color: #666;
326
+ border: 2px solid #666;
327
+ }
328
+ }
329
+
330
+ @media (max-width: 415px) {
331
+ .page-content {
332
+ p {
333
+ font-size: 1em;
334
+ line-height: 1.7;
335
+ }
336
+ }
337
+
338
+ .content {
339
+ padding: 0 20px;
340
+ }
341
+
342
+ .alipay, .wechat {
343
+
344
+ span {
345
+ font-size: 1em;
346
+ }
347
+ }
348
+
349
+ #btn-show-reward {
350
+ div {
351
+ width: 50px;
352
+ height: 50px;
353
+ font-size: 1.5em;
354
+ line-height: 50px;
355
+ }
356
+ }
357
+
358
+ #btn-show-comment {
359
+ div {
360
+ font-size: 1em;
361
+ border: 1px solid #999;
362
+ }
363
+ }
364
+ }
365
+ /* (content.html) CSS end */
366
+
367
+ /* (footer.html) CSS start */
368
+ footer {
369
+ a {
370
+ text-decoration: none;
371
+ }
372
+ }
373
+ /* (footer.html) CSS end */
374
+
375
+
376
+ /* (copyright.html) CSS start */
377
+ .copyright {
378
+ text-align: center;
379
+ padding: 50px 20px 20px 20px;
380
+
381
+ p {
382
+ color: #999;
383
+ font-size: 1em;
384
+ }
385
+
386
+ a {
387
+ color: #999;
388
+ border-bottom: 1px dashed #999;
389
+ @include material-transition();
390
+ }
391
+
392
+ a:hover {
393
+ color: #111;
394
+ border-bottom: 2px solid #ffea00;
395
+ }
396
+ }
397
+
398
+ @media (max-width:415px) {
399
+ .copyright {
400
+ padding: 20px;
401
+
402
+ p {
403
+ font-size: 0.7em;
404
+ line-height: 1.7;
405
+ }
406
+ }
407
+ }
408
+ /* (copyright.html) CSS end */