jekyll-theme-apollo 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +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
+ */
data/_sass/apollo.scss ADDED
@@ -0,0 +1,20 @@
1
+ @charset "utf-8";
2
+
3
+ @import "_partial/normalize";
4
+ @import "_partial/base";
5
+ @import "_partial/header";
6
+ @import "_partial/home-post-list";
7
+ @import "_partial/archive-post-list";
8
+ @import "_partial/post";
9
+ @import "_partial/highlight";
10
+ @import "_partial/footer";
11
+ @import "_partial/mq";
12
+ @import "_partial/copyright";
13
+
14
+ @font-face {
15
+ font-family: 'sourcesanspro';
16
+ src: url('../fonts/sourcesanspro.woff2') format('woff2'),
17
+ url('../fonts/sourcesanspro.woff') format('woff');
18
+ font-weight: normal;
19
+ font-style: normal;
20
+ }
Binary file
Binary file
Binary file
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "apollo";
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-apollo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - zebibyte
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-pug
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.5.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.5.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '12.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '12.0'
69
+ description:
70
+ email:
71
+ - 1@zebibyte.cn
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - LICENSE
77
+ - README.md
78
+ - _includes/mixins/paginator.pug
79
+ - _includes/mixins/post.pug
80
+ - _includes/partial/comment.pug
81
+ - _includes/partial/copyright.pug
82
+ - _includes/partial/head.pug
83
+ - _includes/partial/layout.pug
84
+ - _includes/partial/nav.pug
85
+ - _includes/partial/scripts.pug
86
+ - _layouts/archive.pug
87
+ - _layouts/home.pug
88
+ - _layouts/page.pug
89
+ - _layouts/post.pug
90
+ - _sass/_partial/archive-post-list.scss
91
+ - _sass/_partial/base.scss
92
+ - _sass/_partial/copyright.scss
93
+ - _sass/_partial/footer.scss
94
+ - _sass/_partial/header.scss
95
+ - _sass/_partial/highlight.scss
96
+ - _sass/_partial/home-post-list.scss
97
+ - _sass/_partial/mq.scss
98
+ - _sass/_partial/normalize.scss
99
+ - _sass/_partial/post.scss
100
+ - _sass/apollo.scss
101
+ - assets/favicon.png
102
+ - assets/fonts/sourcesanspro.woff
103
+ - assets/fonts/sourcesanspro.woff2
104
+ - assets/styles/apollo.scss
105
+ homepage: https://github.com/2-70/jekyll-theme-apollo
106
+ licenses:
107
+ - MIT
108
+ metadata: {}
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubyforge_project:
125
+ rubygems_version: 2.5.2.1
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: Port hexo-theme-apollo to Jekyll.
129
+ test_files: []