jekyll-theme-apollo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +43 -43
- data/README.md +109 -92
- data/_includes/mixins/paginator.pug +26 -26
- data/_includes/mixins/post.pug +80 -88
- data/_includes/partial/comment.pug +16 -16
- data/_includes/partial/copyright.pug +12 -10
- data/_includes/partial/head.pug +14 -14
- data/_includes/partial/layout.pug +18 -18
- data/_includes/partial/nav.pug +16 -16
- data/_includes/partial/scripts.pug +12 -12
- data/_layouts/archive.pug +12 -12
- data/_layouts/home.pug +12 -12
- data/_layouts/page.pug +19 -19
- data/_layouts/post.pug +19 -19
- data/_sass/_partial/archive-post-list.scss +26 -26
- data/_sass/_partial/base.scss +79 -79
- data/_sass/_partial/copyright.scss +16 -16
- data/_sass/_partial/footer.scss +21 -21
- data/_sass/_partial/header.scss +25 -25
- data/_sass/_partial/highlight.scss +66 -66
- data/_sass/_partial/home-post-list.scss +23 -23
- data/_sass/_partial/mq.scss +48 -48
- data/_sass/_partial/normalize.scss +424 -424
- data/_sass/_partial/post.scss +265 -265
- data/_sass/apollo.scss +20 -20
- data/assets/fonts/sourcesanspro.woff +0 -0
- data/assets/fonts/sourcesanspro.woff2 +0 -0
- data/assets/styles/apollo.scss +4 -4
- metadata +4 -4
data/_sass/_partial/post.scss
CHANGED
@@ -1,265 +1,265 @@
|
|
1
|
-
.post {
|
2
|
-
padding-top: 1em;
|
3
|
-
}
|
4
|
-
|
5
|
-
.post-block {
|
6
|
-
.post-title {
|
7
|
-
margin: 0.65em 0;
|
8
|
-
color: #2c3e50;
|
9
|
-
font-size: 1.5em;
|
10
|
-
}
|
11
|
-
|
12
|
-
.post-info {
|
13
|
-
color: #7f8c8d;
|
14
|
-
margin: 1.2em 0;
|
15
|
-
span {
|
16
|
-
margin-left: 0.5rem;
|
17
|
-
}
|
18
|
-
a.post-from {
|
19
|
-
margin-left: 0.5rem;
|
20
|
-
padding: 3px 6px;
|
21
|
-
border-radius: 5px;
|
22
|
-
font-size: 12px;
|
23
|
-
color: white;
|
24
|
-
background-color: #E36B6B;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
.post-content {
|
30
|
-
h2, h3, h4, h5, h6 {
|
31
|
-
position: relative;
|
32
|
-
margin: 1em 0;
|
33
|
-
}
|
34
|
-
|
35
|
-
h2:before, h3:before {
|
36
|
-
content: "#";
|
37
|
-
color: #42b983;
|
38
|
-
position: absolute;
|
39
|
-
left: -0.7em;
|
40
|
-
top: -4px;
|
41
|
-
font-size: 1.2em;
|
42
|
-
font-weight: bold;
|
43
|
-
}
|
44
|
-
|
45
|
-
h2, h3 {
|
46
|
-
font-size: 22px;
|
47
|
-
}
|
48
|
-
|
49
|
-
h4, h5, h6 {
|
50
|
-
font-size: 18px;
|
51
|
-
}
|
52
|
-
a {
|
53
|
-
color: #42b983;
|
54
|
-
word-break: break-all;
|
55
|
-
}
|
56
|
-
blockquote {
|
57
|
-
margin: 2em 0;
|
58
|
-
padding-left: 20px;
|
59
|
-
border-left: 4px solid #42b983;
|
60
|
-
}
|
61
|
-
img {
|
62
|
-
display: block;
|
63
|
-
max-width: 100%;
|
64
|
-
margin: 1em auto;
|
65
|
-
}
|
66
|
-
& > table,
|
67
|
-
& > figure.highlight {
|
68
|
-
box-shadow: 0 1px 2px rgba(0,0,0,0.125);
|
69
|
-
}
|
70
|
-
.tip {
|
71
|
-
position: relative;
|
72
|
-
margin: 2em 0;
|
73
|
-
padding: 12px 24px 12px 30px;
|
74
|
-
border-left: 4px solid #f66;
|
75
|
-
border-top-right-radius: 2px;
|
76
|
-
border-bottom-right-radius: 2px;
|
77
|
-
background-color: #f8f8f8;
|
78
|
-
br {
|
79
|
-
display: none;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
.tip:before {
|
83
|
-
position: absolute;
|
84
|
-
top: 14px;
|
85
|
-
left: -12px;
|
86
|
-
content: "!";
|
87
|
-
width: 20px;
|
88
|
-
height: 20px;
|
89
|
-
border-radius: 100%;
|
90
|
-
color: #fff;
|
91
|
-
font-size: 14px;
|
92
|
-
line-height: 20px;
|
93
|
-
font-weight: bold;
|
94
|
-
text-align: center;
|
95
|
-
background-color: #f66;
|
96
|
-
font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
#mask {
|
101
|
-
position: fixed;
|
102
|
-
overflow: scroll;
|
103
|
-
width: 100%;
|
104
|
-
height: 100%;
|
105
|
-
padding: 1em 0;
|
106
|
-
background-color: rgba(0, 0, 0, 0.5);
|
107
|
-
z-index: 10;
|
108
|
-
#mask-image {
|
109
|
-
max-width: 95%;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
code,
|
114
|
-
pre {
|
115
|
-
font-size: 0.8em;
|
116
|
-
background-color: #f8f8f8;
|
117
|
-
font-family: 'Roboto Mono', Monaco, courier, monospace;
|
118
|
-
}
|
119
|
-
|
120
|
-
.highlight {
|
121
|
-
position: relative;
|
122
|
-
margin: 1em 0;
|
123
|
-
border-radius: 2px;
|
124
|
-
line-height: 1.1em;
|
125
|
-
background-color: #f8f8f8;
|
126
|
-
overflow-x: auto;
|
127
|
-
table, tr, td {
|
128
|
-
width: 100%;
|
129
|
-
border-collapse: collapse;
|
130
|
-
padding: 0;
|
131
|
-
margin: 0;
|
132
|
-
}
|
133
|
-
.gutter {
|
134
|
-
display: none;
|
135
|
-
}
|
136
|
-
pre {
|
137
|
-
padding: 1.2em 1.4em;
|
138
|
-
line-height: 1.5em;
|
139
|
-
margin: 0;
|
140
|
-
code {
|
141
|
-
color: #525252;
|
142
|
-
font-size: inherit; // different strcuts
|
143
|
-
padding: 0;
|
144
|
-
margin: 0;
|
145
|
-
}
|
146
|
-
}
|
147
|
-
}
|
148
|
-
|
149
|
-
%code-base {
|
150
|
-
position: absolute;
|
151
|
-
top: 0;
|
152
|
-
right: 0;
|
153
|
-
color: #ccc;
|
154
|
-
text-align: right;
|
155
|
-
// font-size: 0.75em; // todo
|
156
|
-
font-size: 11.25px;
|
157
|
-
font-family: 'sourcesanspro', 'Helvetica Neue', Arial, sans-serif;
|
158
|
-
padding: 5px 10px 0;
|
159
|
-
line-height: 15px;
|
160
|
-
height: 15px;
|
161
|
-
font-weight: 600;
|
162
|
-
}
|
163
|
-
|
164
|
-
@mixin code-signs($keys) {
|
165
|
-
@each $key in $keys {
|
166
|
-
.highlight .language-#{$key}:after {
|
167
|
-
content: to-upper-case($key);
|
168
|
-
@extend %code-base;
|
169
|
-
}
|
170
|
-
}
|
171
|
-
}
|
172
|
-
|
173
|
-
$signs: ("html", "js", "bash", "css", "scss","diff", "java", "xml", "python", "json", "swift", "ruby", "perl", "php", "c", "java", "cpp", "ts");
|
174
|
-
@include code-signs($signs);
|
175
|
-
|
176
|
-
.highlight .language-cpp:after {
|
177
|
-
content: 'C++';
|
178
|
-
}
|
179
|
-
|
180
|
-
/* Long-term todo, currently using highlight.scss instead
|
181
|
-
.highlight code {
|
182
|
-
color: #525252;
|
183
|
-
.function .keyword,
|
184
|
-
.constant {
|
185
|
-
color: #0092db;
|
186
|
-
}
|
187
|
-
.keyword,
|
188
|
-
.attribute {
|
189
|
-
color: #e96900;
|
190
|
-
}
|
191
|
-
.number,
|
192
|
-
.literal {
|
193
|
-
color: #ae81ff;
|
194
|
-
}
|
195
|
-
.tag,
|
196
|
-
.tag .title,
|
197
|
-
.change,
|
198
|
-
.winutils,
|
199
|
-
.flow,
|
200
|
-
.lisp .title,
|
201
|
-
.clojure .built_in,
|
202
|
-
.nginx .title,
|
203
|
-
.tex .special {
|
204
|
-
color: #2973b7;
|
205
|
-
}
|
206
|
-
.symbol,
|
207
|
-
.symbol .string,
|
208
|
-
.value,
|
209
|
-
.regexp {
|
210
|
-
color: #42b983;
|
211
|
-
}
|
212
|
-
.title {
|
213
|
-
color: #83B917;
|
214
|
-
}
|
215
|
-
.tag .value,
|
216
|
-
.string,
|
217
|
-
.subst,
|
218
|
-
.haskell .type,
|
219
|
-
.preprocessor,
|
220
|
-
.ruby .class .parent,
|
221
|
-
.built_in,
|
222
|
-
.sql .aggregate,
|
223
|
-
.django .template_tag,
|
224
|
-
.django .variable,
|
225
|
-
.smalltalk .class,
|
226
|
-
.javadoc,
|
227
|
-
.django .filter .argument,
|
228
|
-
.smalltalk .localvars,
|
229
|
-
.smalltalk .array,
|
230
|
-
.attr_selector,
|
231
|
-
.pseudo,
|
232
|
-
.addition,
|
233
|
-
.stream,
|
234
|
-
.envvar,
|
235
|
-
.apache .tag,
|
236
|
-
.apache .cbracket,
|
237
|
-
.tex .command,
|
238
|
-
.prompt {
|
239
|
-
color: #42b983;
|
240
|
-
}
|
241
|
-
.comment,
|
242
|
-
.java .annotation,
|
243
|
-
.python .decorator,
|
244
|
-
.template_comment,
|
245
|
-
.pi,
|
246
|
-
.doctype,
|
247
|
-
.shebang,
|
248
|
-
.apache .sqbracket,
|
249
|
-
.tex .formula {
|
250
|
-
color: #b3b3b3;
|
251
|
-
}
|
252
|
-
.deletion {
|
253
|
-
color: #BA4545;
|
254
|
-
}
|
255
|
-
.coffeescript .javascript,
|
256
|
-
.javascript .xml,
|
257
|
-
.tex .formula,
|
258
|
-
.xml .javascript,
|
259
|
-
.xml .vbscript,
|
260
|
-
.xml .css,
|
261
|
-
.xml .cdata {
|
262
|
-
opacity: 0.5;
|
263
|
-
}
|
264
|
-
}
|
265
|
-
*/
|
1
|
+
.post {
|
2
|
+
padding-top: 1em;
|
3
|
+
}
|
4
|
+
|
5
|
+
.post-block {
|
6
|
+
.post-title {
|
7
|
+
margin: 0.65em 0;
|
8
|
+
color: #2c3e50;
|
9
|
+
font-size: 1.5em;
|
10
|
+
}
|
11
|
+
|
12
|
+
.post-info {
|
13
|
+
color: #7f8c8d;
|
14
|
+
margin: 1.2em 0;
|
15
|
+
span {
|
16
|
+
margin-left: 0.5rem;
|
17
|
+
}
|
18
|
+
a.post-from {
|
19
|
+
margin-left: 0.5rem;
|
20
|
+
padding: 3px 6px;
|
21
|
+
border-radius: 5px;
|
22
|
+
font-size: 12px;
|
23
|
+
color: white;
|
24
|
+
background-color: #E36B6B;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.post-content {
|
30
|
+
h2, h3, h4, h5, h6 {
|
31
|
+
position: relative;
|
32
|
+
margin: 1em 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
h2:before, h3:before {
|
36
|
+
content: "#";
|
37
|
+
color: #42b983;
|
38
|
+
position: absolute;
|
39
|
+
left: -0.7em;
|
40
|
+
top: -4px;
|
41
|
+
font-size: 1.2em;
|
42
|
+
font-weight: bold;
|
43
|
+
}
|
44
|
+
|
45
|
+
h2, h3 {
|
46
|
+
font-size: 22px;
|
47
|
+
}
|
48
|
+
|
49
|
+
h4, h5, h6 {
|
50
|
+
font-size: 18px;
|
51
|
+
}
|
52
|
+
a {
|
53
|
+
color: #42b983;
|
54
|
+
word-break: break-all;
|
55
|
+
}
|
56
|
+
blockquote {
|
57
|
+
margin: 2em 0;
|
58
|
+
padding-left: 20px;
|
59
|
+
border-left: 4px solid #42b983;
|
60
|
+
}
|
61
|
+
img {
|
62
|
+
display: block;
|
63
|
+
max-width: 100%;
|
64
|
+
margin: 1em auto;
|
65
|
+
}
|
66
|
+
& > table,
|
67
|
+
& > figure.highlight {
|
68
|
+
box-shadow: 0 1px 2px rgba(0,0,0,0.125);
|
69
|
+
}
|
70
|
+
.tip {
|
71
|
+
position: relative;
|
72
|
+
margin: 2em 0;
|
73
|
+
padding: 12px 24px 12px 30px;
|
74
|
+
border-left: 4px solid #f66;
|
75
|
+
border-top-right-radius: 2px;
|
76
|
+
border-bottom-right-radius: 2px;
|
77
|
+
background-color: #f8f8f8;
|
78
|
+
br {
|
79
|
+
display: none;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
.tip:before {
|
83
|
+
position: absolute;
|
84
|
+
top: 14px;
|
85
|
+
left: -12px;
|
86
|
+
content: "!";
|
87
|
+
width: 20px;
|
88
|
+
height: 20px;
|
89
|
+
border-radius: 100%;
|
90
|
+
color: #fff;
|
91
|
+
font-size: 14px;
|
92
|
+
line-height: 20px;
|
93
|
+
font-weight: bold;
|
94
|
+
text-align: center;
|
95
|
+
background-color: #f66;
|
96
|
+
font-family: 'Dosis', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
#mask {
|
101
|
+
position: fixed;
|
102
|
+
overflow: scroll;
|
103
|
+
width: 100%;
|
104
|
+
height: 100%;
|
105
|
+
padding: 1em 0;
|
106
|
+
background-color: rgba(0, 0, 0, 0.5);
|
107
|
+
z-index: 10;
|
108
|
+
#mask-image {
|
109
|
+
max-width: 95%;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
code,
|
114
|
+
pre {
|
115
|
+
font-size: 0.8em;
|
116
|
+
background-color: #f8f8f8;
|
117
|
+
font-family: 'Roboto Mono', Monaco, courier, monospace;
|
118
|
+
}
|
119
|
+
|
120
|
+
.highlight {
|
121
|
+
position: relative;
|
122
|
+
margin: 1em 0;
|
123
|
+
border-radius: 2px;
|
124
|
+
line-height: 1.1em;
|
125
|
+
background-color: #f8f8f8;
|
126
|
+
overflow-x: auto;
|
127
|
+
table, tr, td {
|
128
|
+
width: 100%;
|
129
|
+
border-collapse: collapse;
|
130
|
+
padding: 0;
|
131
|
+
margin: 0;
|
132
|
+
}
|
133
|
+
.gutter {
|
134
|
+
display: none;
|
135
|
+
}
|
136
|
+
pre {
|
137
|
+
padding: 1.2em 1.4em;
|
138
|
+
line-height: 1.5em;
|
139
|
+
margin: 0;
|
140
|
+
code {
|
141
|
+
color: #525252;
|
142
|
+
font-size: inherit; // different strcuts
|
143
|
+
padding: 0;
|
144
|
+
margin: 0;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
%code-base {
|
150
|
+
position: absolute;
|
151
|
+
top: 0;
|
152
|
+
right: 0;
|
153
|
+
color: #ccc;
|
154
|
+
text-align: right;
|
155
|
+
// font-size: 0.75em; // todo
|
156
|
+
font-size: 11.25px;
|
157
|
+
font-family: 'sourcesanspro', 'Helvetica Neue', Arial, sans-serif;
|
158
|
+
padding: 5px 10px 0;
|
159
|
+
line-height: 15px;
|
160
|
+
height: 15px;
|
161
|
+
font-weight: 600;
|
162
|
+
}
|
163
|
+
|
164
|
+
@mixin code-signs($keys) {
|
165
|
+
@each $key in $keys {
|
166
|
+
.highlight .language-#{$key}:after {
|
167
|
+
content: to-upper-case($key);
|
168
|
+
@extend %code-base;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
$signs: ("html", "js", "bash", "css", "scss","diff", "java", "xml", "python", "json", "swift", "ruby", "perl", "php", "c", "java", "cpp", "ts");
|
174
|
+
@include code-signs($signs);
|
175
|
+
|
176
|
+
.highlight .language-cpp:after {
|
177
|
+
content: 'C++';
|
178
|
+
}
|
179
|
+
|
180
|
+
/* Long-term todo, currently using highlight.scss instead
|
181
|
+
.highlight code {
|
182
|
+
color: #525252;
|
183
|
+
.function .keyword,
|
184
|
+
.constant {
|
185
|
+
color: #0092db;
|
186
|
+
}
|
187
|
+
.keyword,
|
188
|
+
.attribute {
|
189
|
+
color: #e96900;
|
190
|
+
}
|
191
|
+
.number,
|
192
|
+
.literal {
|
193
|
+
color: #ae81ff;
|
194
|
+
}
|
195
|
+
.tag,
|
196
|
+
.tag .title,
|
197
|
+
.change,
|
198
|
+
.winutils,
|
199
|
+
.flow,
|
200
|
+
.lisp .title,
|
201
|
+
.clojure .built_in,
|
202
|
+
.nginx .title,
|
203
|
+
.tex .special {
|
204
|
+
color: #2973b7;
|
205
|
+
}
|
206
|
+
.symbol,
|
207
|
+
.symbol .string,
|
208
|
+
.value,
|
209
|
+
.regexp {
|
210
|
+
color: #42b983;
|
211
|
+
}
|
212
|
+
.title {
|
213
|
+
color: #83B917;
|
214
|
+
}
|
215
|
+
.tag .value,
|
216
|
+
.string,
|
217
|
+
.subst,
|
218
|
+
.haskell .type,
|
219
|
+
.preprocessor,
|
220
|
+
.ruby .class .parent,
|
221
|
+
.built_in,
|
222
|
+
.sql .aggregate,
|
223
|
+
.django .template_tag,
|
224
|
+
.django .variable,
|
225
|
+
.smalltalk .class,
|
226
|
+
.javadoc,
|
227
|
+
.django .filter .argument,
|
228
|
+
.smalltalk .localvars,
|
229
|
+
.smalltalk .array,
|
230
|
+
.attr_selector,
|
231
|
+
.pseudo,
|
232
|
+
.addition,
|
233
|
+
.stream,
|
234
|
+
.envvar,
|
235
|
+
.apache .tag,
|
236
|
+
.apache .cbracket,
|
237
|
+
.tex .command,
|
238
|
+
.prompt {
|
239
|
+
color: #42b983;
|
240
|
+
}
|
241
|
+
.comment,
|
242
|
+
.java .annotation,
|
243
|
+
.python .decorator,
|
244
|
+
.template_comment,
|
245
|
+
.pi,
|
246
|
+
.doctype,
|
247
|
+
.shebang,
|
248
|
+
.apache .sqbracket,
|
249
|
+
.tex .formula {
|
250
|
+
color: #b3b3b3;
|
251
|
+
}
|
252
|
+
.deletion {
|
253
|
+
color: #BA4545;
|
254
|
+
}
|
255
|
+
.coffeescript .javascript,
|
256
|
+
.javascript .xml,
|
257
|
+
.tex .formula,
|
258
|
+
.xml .javascript,
|
259
|
+
.xml .vbscript,
|
260
|
+
.xml .css,
|
261
|
+
.xml .cdata {
|
262
|
+
opacity: 0.5;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
*/
|