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
data/_sass/_index.scss ADDED
@@ -0,0 +1,133 @@
1
+ @import "common";
2
+
3
+ body {
4
+ @include flex(column);
5
+ -webkit-box-align: center;
6
+ -ms-flex-align: center;
7
+ align-items: center;
8
+ -webkit-box-pack: end;
9
+ -ms-flex-pack: end;
10
+ justify-content: flex-end;
11
+
12
+ min-height: 100vh;
13
+ margin: 0;
14
+
15
+ background: #f0f0f0;
16
+ }
17
+
18
+ a {
19
+ -webkit-tap-highlight-color: transparent;
20
+ }
21
+
22
+ .index-avatar {
23
+ position: relative;
24
+ bottom: -95px;
25
+
26
+ border: #f0f0f0 solid 20px;
27
+ border-radius: 50%;
28
+ width: 150px;
29
+ height: 150px;
30
+
31
+ &::before{
32
+ -webkit-animation: pulse 1s linear infinite;
33
+ animation: pulse 1s linear infinite;
34
+ border: #ffffff solid 10px;
35
+ border-radius: 50%;
36
+ -webkit-box-sizing: border-box;
37
+ box-sizing: border-box;
38
+ content: ' ';
39
+ height: 140%;
40
+ left: -20%;
41
+ opacity: .9;
42
+ position: absolute;
43
+ top: -20%;
44
+ -webkit-transform: scale(0.714);
45
+ transform: scale(0.714);
46
+ width: 140%;
47
+ z-index: 1;
48
+ }
49
+ }
50
+
51
+ .index-avatar img {
52
+ position: relative;
53
+ z-index: 2;
54
+
55
+ width: 100%;
56
+ @include border-radius(50%);
57
+ @include material-box-shadow();
58
+ }
59
+
60
+ @media (min-width: 769px) {
61
+ .index-avatar img {
62
+ &:hover {
63
+ @include material-box-shadow(3);
64
+ }
65
+ }
66
+ }
67
+
68
+ .index-content {
69
+ width: 100%;
70
+ min-height: 70vh;
71
+ height: auto;
72
+
73
+ @include material-box-shadow(1);
74
+
75
+ background: #fff;
76
+ }
77
+
78
+ .index-content h1, p {
79
+ position: relative;
80
+ text-align: center;
81
+ }
82
+
83
+ .index-content h1 {
84
+ padding-top: 115px;
85
+ font-size: 2em;
86
+ }
87
+
88
+ .index-content p {
89
+ font-size: 1em;
90
+ padding-top: 10px;
91
+ }
92
+
93
+ .index-contact {
94
+ padding-top: 20px;
95
+ }
96
+
97
+ .index-contact span a {
98
+ font-size: 2em;
99
+ color: #f0f0f0;
100
+ text-decoration: none;
101
+ margin: 0 10px;
102
+ @include material-transition();
103
+ }
104
+
105
+ @media (min-width: 769px) {
106
+ .index-contact span a {
107
+ &:hover {
108
+ color: #000000;
109
+ }
110
+ }
111
+ }
112
+
113
+ @media (max-width: 415px) {
114
+ .index-avatar {
115
+ width: 100px;
116
+ height: 100px;
117
+ bottom: -70px;
118
+ border: #f0f0f0 solid 15px;
119
+ }
120
+
121
+ .index-content h1 {
122
+ padding-top: 95px;
123
+ font-size: 1em;
124
+ }
125
+
126
+ .index-content p {
127
+ font-size: 0.9em;
128
+ }
129
+
130
+ .index-contact span a {
131
+ font-size: 1.5em;
132
+ }
133
+ }
@@ -0,0 +1,219 @@
1
+ h1, h2, h3, h4, h5, h6 {
2
+ color: #111;
3
+ margin: 1em 0 15px;
4
+ padding: 0;
5
+ font-weight: bold;
6
+ line-height: 1.7;
7
+ text-rendering: optimizeLegibility;
8
+ }
9
+
10
+ h1 {
11
+ font-size: 2.5em;
12
+ border-bottom: 1px solid #ddd;
13
+ }
14
+
15
+ h2 {
16
+ font-size: 2em;
17
+ border-bottom: 1px solid #eee;
18
+ }
19
+
20
+ h3 {
21
+ font-size: 1.5em;
22
+ }
23
+
24
+ h4 {
25
+ font-size: 1.2em;
26
+ }
27
+
28
+ h5 {
29
+ font-size: 1em;
30
+ }
31
+
32
+ h6 {
33
+ color: #777;
34
+ font-size: 1em;
35
+ }
36
+
37
+ @media (max-width: 415px) {
38
+ h1 {
39
+ font-size: 1.7em;
40
+ }
41
+
42
+ h2 {
43
+ font-size: 1.5em;
44
+ }
45
+
46
+ h3 {
47
+ font-size: 1.2em;
48
+ }
49
+
50
+ h4 {
51
+ font-size: 1.1em;
52
+ }
53
+ }
54
+
55
+ blockquote, ul, ol, dl, table, pre {
56
+ margin: 0 0 1.46em;
57
+ }
58
+
59
+ blockquote {
60
+ padding: 0 1em;
61
+ color: #666;
62
+ border-left: .25em solid #dfe2e5;
63
+ }
64
+
65
+ blockquote p {
66
+ text-indent: 0;
67
+ padding-left: .5em;
68
+ margin: 0 0 !important;
69
+ }
70
+
71
+ hr {
72
+ margin: 2em 0;
73
+ border: 0;
74
+ border-top: 1px solid rgba(128, 128, 128, .1);
75
+ }
76
+
77
+ pre {
78
+ font-size: .96em;
79
+ margin: 0 0 1.1em;
80
+
81
+ code {
82
+ border: none;
83
+ }
84
+ }
85
+
86
+ @media (max-width: 415px) {
87
+ pre {
88
+ code {
89
+ font-size: .9em;
90
+ }
91
+ }
92
+
93
+ blockquote p {
94
+ font-size: .9em !important;
95
+ }
96
+ }
97
+
98
+ code[class="highlighter-rouge"] {
99
+ color: #2C3E50;
100
+ background-color: #D6DBDF;
101
+ border: 1px solid #dadada;
102
+ padding: 2px 4px;
103
+ border-radius: 4px;
104
+ }
105
+
106
+ pre[class="highlight"] {
107
+ border-width: 0;
108
+ border-radius: 4px;
109
+ padding: 10px 15px;
110
+ margin: 0 0 30px;
111
+ background: none repeat scroll 0 0 rgba(102, 128, 153, .05);
112
+
113
+ word-break: break-word;
114
+ word-wrap: break-word;
115
+ white-space: pre;
116
+ white-space: pre-wrap;
117
+
118
+ code {
119
+ background: none !important;
120
+ color: #444;
121
+ font-size: 14px;
122
+ line-height: 1.7;
123
+ }
124
+ }
125
+
126
+ ul {
127
+ margin-left: -5px;
128
+ }
129
+
130
+ li {
131
+ margin-left: 0;
132
+ width: 100%;
133
+ }
134
+
135
+ ul li, ol li {
136
+ color: #666;
137
+ font-size: 18px;
138
+ line-height: 1.7;
139
+ }
140
+
141
+ @media (max-width: 415px) {
142
+ ul li, ol li {
143
+ font-size: 1em;
144
+ }
145
+ }
146
+
147
+ ul li p, ol li p {
148
+ margin: 0 0 !important;
149
+ font-size: 94% !important;
150
+ }
151
+
152
+ ul[class="task-list"] {
153
+ list-style-type: none;
154
+ }
155
+
156
+ table {
157
+ width: 100%;
158
+ overflow: auto;
159
+ display: block;
160
+ border-spacing: 0;
161
+ border-collapse: collapse;
162
+ line-height: 1.7;
163
+ color: #444;
164
+ }
165
+
166
+ table > tbody > tr:nth-of-type(odd) {
167
+ background-color: #f8f8f8;
168
+ }
169
+
170
+ table tr {
171
+ border-top: 1px solid #ccc;
172
+ background-color: #fff;
173
+ }
174
+
175
+
176
+ table th, td {
177
+ border: 1px solid #ddd;
178
+ padding: 6px 13px;
179
+ }
180
+
181
+ table th {
182
+ font-weight: bold;
183
+ }
184
+
185
+ table td {
186
+ text-align: left;
187
+ }
188
+
189
+ dl {
190
+ margin: 0 0 30px;
191
+ }
192
+
193
+ dt, dd {
194
+ font-size: 18px;
195
+ line-height: 1.7;
196
+ }
197
+
198
+ @media (max-width: 415px) {
199
+ dt, dd {
200
+ font-size: 1em;
201
+ }
202
+ }
203
+
204
+ dt {
205
+ color: #111;
206
+ font-weight: bold;
207
+ }
208
+
209
+ dd {
210
+ color: #666;
211
+ }
212
+
213
+ .emoji {
214
+ -webkit-box-shadow: none;
215
+ box-shadow: none;
216
+ margin: 0;
217
+ display: inline-block;
218
+ vertical-align: middle;
219
+ }
data/_sass/_post.scss ADDED
@@ -0,0 +1,51 @@
1
+ @import "common";
2
+
3
+ body {
4
+ @include flex(column);
5
+
6
+ min-height: 100vh;
7
+ margin: 0;
8
+
9
+ background: #ffffff;
10
+
11
+ word-break: break-word;
12
+ word-wrap: break-word;
13
+ }
14
+
15
+ img {
16
+ display: block;
17
+
18
+ max-width: 100%;
19
+ max-height: 600px;
20
+ margin: 40px auto;
21
+ }
22
+
23
+ a {
24
+ -webkit-tap-highlight-color: transparent;
25
+ }
26
+
27
+ header {
28
+ margin: 30px 0 !important;
29
+
30
+ a::before {
31
+ -webkit-animation: twinkle 2s linear infinite !important;
32
+ animation: twinkle 2s linear infinite !important;
33
+ }
34
+ }
35
+
36
+ .title {
37
+ margin: 30px auto 10px !important;
38
+ }
39
+
40
+ .title .title-tip {
41
+ right: 105% !important;
42
+ }
43
+
44
+ .article-title-description {
45
+ margin: 0 auto;
46
+ padding: 0 30px;
47
+ color: #999;
48
+ font-size: 100%;
49
+ line-height: 1.7;
50
+ text-align: center;
51
+ }
@@ -0,0 +1,43 @@
1
+ @media (min-width: 767px) {
2
+ pre.line-numbers {
3
+ position: relative;
4
+ padding-left: 3.8em;
5
+ counter-reset: linenumber;
6
+ }
7
+
8
+ pre.line-numbers > code {
9
+ position: relative;
10
+ white-space: inherit;
11
+ }
12
+
13
+ .line-numbers .line-numbers-rows {
14
+ position: absolute;
15
+ pointer-events: none;
16
+ top: 0;
17
+ font-size: 100%;
18
+ left: -3.8em;
19
+ width: 3em; /* works for line-numbers below 1000 lines */
20
+ letter-spacing: -1px;
21
+ border-right: 1px solid #999;
22
+
23
+ -webkit-user-select: none;
24
+ -moz-user-select: none;
25
+ -ms-user-select: none;
26
+ user-select: none;
27
+
28
+ }
29
+
30
+ .line-numbers-rows > span {
31
+ pointer-events: none;
32
+ display: block;
33
+ counter-increment: linenumber;
34
+ }
35
+
36
+ .line-numbers-rows > span:before {
37
+ content: counter(linenumber);
38
+ color: #999;
39
+ display: block;
40
+ padding-right: 0.8em;
41
+ text-align: right;
42
+ }
43
+ }