steve-for-jekyll 0.1.0
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/_config.yml +51 -0
- data/_includes/blog/custom-widgets.html +0 -0
- data/_includes/blog/post.html +47 -0
- data/_includes/blog/sidebar.html +39 -0
- data/_includes/footer.html +13 -0
- data/_includes/footer/custom-text.html +3 -0
- data/_includes/footer/links.html +11 -0
- data/_includes/head.html +17 -0
- data/_includes/header.html +17 -0
- data/_includes/header/menu.html +12 -0
- data/_includes/search-form.html +17 -0
- data/_layouts/archive.html +25 -0
- data/_layouts/blog.html +9 -0
- data/_layouts/default.html +18 -0
- data/_layouts/page.html +15 -0
- data/_layouts/post.html +96 -0
- data/_sass/steve.scss +51 -0
- data/_sass/steve/_base.scss +248 -0
- data/_sass/steve/_layout.scss +380 -0
- data/_sass/steve/_syntax.scss +252 -0
- data/assets/css/screen.scss +34 -0
- data/assets/js/responsive-videos.js +79 -0
- metadata +109 -0
@@ -0,0 +1,252 @@
|
|
1
|
+
// Code
|
2
|
+
//
|
3
|
+
// Inline and block-level code snippets. Includes tweaks to syntax highlighted
|
4
|
+
// snippets from Pygments/Rouge and Gist embeds.
|
5
|
+
|
6
|
+
code,
|
7
|
+
pre {
|
8
|
+
font-family: var(--font-code);
|
9
|
+
}
|
10
|
+
|
11
|
+
code {
|
12
|
+
font-size: 85%;
|
13
|
+
}
|
14
|
+
|
15
|
+
pre {
|
16
|
+
display: block;
|
17
|
+
margin-top: 0;
|
18
|
+
margin-bottom: var(--spacer-3);
|
19
|
+
overflow: auto;
|
20
|
+
}
|
21
|
+
|
22
|
+
.highlight {
|
23
|
+
padding: var(--spacer);
|
24
|
+
margin-bottom: var(--spacer);
|
25
|
+
background-color: var(--code-bg);
|
26
|
+
border-radius: var(--border-radius);
|
27
|
+
|
28
|
+
pre {
|
29
|
+
margin-bottom: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
// Triple backticks (code fencing) doubles the .highlight elements
|
33
|
+
.highlight {
|
34
|
+
padding: 0;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.rouge-table {
|
39
|
+
margin-bottom: 0;
|
40
|
+
font-size: 100%;
|
41
|
+
|
42
|
+
&,
|
43
|
+
td,
|
44
|
+
th {
|
45
|
+
border: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
.gutter {
|
49
|
+
vertical-align: top;
|
50
|
+
user-select: none;
|
51
|
+
opacity: 0.25;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
// Gist via GitHub Pages
|
56
|
+
.gist .markdown-body {
|
57
|
+
padding: 15px !important;
|
58
|
+
}
|
59
|
+
|
60
|
+
.highlight .hll {
|
61
|
+
background-color: #ffc;
|
62
|
+
}
|
63
|
+
.highlight .c {
|
64
|
+
color: #999;
|
65
|
+
} /* Comment */
|
66
|
+
.highlight .err {
|
67
|
+
color: #a00;
|
68
|
+
background-color: #faa;
|
69
|
+
} /* Error */
|
70
|
+
.highlight .k {
|
71
|
+
color: #069;
|
72
|
+
} /* Keyword */
|
73
|
+
.highlight .o {
|
74
|
+
color: #555;
|
75
|
+
} /* Operator */
|
76
|
+
.highlight .cm {
|
77
|
+
color: #09f;
|
78
|
+
font-style: italic;
|
79
|
+
} /* Comment.Multiline */
|
80
|
+
.highlight .cp {
|
81
|
+
color: #099;
|
82
|
+
} /* Comment.Preproc */
|
83
|
+
.highlight .c1 {
|
84
|
+
color: #999;
|
85
|
+
} /* Comment.Single */
|
86
|
+
.highlight .cs {
|
87
|
+
color: #999;
|
88
|
+
} /* Comment.Special */
|
89
|
+
.highlight .gd {
|
90
|
+
background-color: #fcc;
|
91
|
+
border: 1px solid #c00;
|
92
|
+
} /* Generic.Deleted */
|
93
|
+
.highlight .ge {
|
94
|
+
font-style: italic;
|
95
|
+
} /* Generic.Emph */
|
96
|
+
.highlight .gr {
|
97
|
+
color: #f00;
|
98
|
+
} /* Generic.Error */
|
99
|
+
.highlight .gh {
|
100
|
+
color: #030;
|
101
|
+
} /* Generic.Heading */
|
102
|
+
.highlight .gi {
|
103
|
+
background-color: #cfc;
|
104
|
+
border: 1px solid #0c0;
|
105
|
+
} /* Generic.Inserted */
|
106
|
+
.highlight .go {
|
107
|
+
color: #aaa;
|
108
|
+
} /* Generic.Output */
|
109
|
+
.highlight .gp {
|
110
|
+
color: #009;
|
111
|
+
} /* Generic.Prompt */
|
112
|
+
.highlight .gs {
|
113
|
+
} /* Generic.Strong */
|
114
|
+
.highlight .gu {
|
115
|
+
color: #030;
|
116
|
+
} /* Generic.Subheading */
|
117
|
+
.highlight .gt {
|
118
|
+
color: #9c6;
|
119
|
+
} /* Generic.Traceback */
|
120
|
+
.highlight .kc {
|
121
|
+
color: #069;
|
122
|
+
} /* Keyword.Constant */
|
123
|
+
.highlight .kd {
|
124
|
+
color: #069;
|
125
|
+
} /* Keyword.Declaration */
|
126
|
+
.highlight .kn {
|
127
|
+
color: #069;
|
128
|
+
} /* Keyword.Namespace */
|
129
|
+
.highlight .kp {
|
130
|
+
color: #069;
|
131
|
+
} /* Keyword.Pseudo */
|
132
|
+
.highlight .kr {
|
133
|
+
color: #069;
|
134
|
+
} /* Keyword.Reserved */
|
135
|
+
.highlight .kt {
|
136
|
+
color: #078;
|
137
|
+
} /* Keyword.Type */
|
138
|
+
.highlight .m {
|
139
|
+
color: #f60;
|
140
|
+
} /* Literal.Number */
|
141
|
+
.highlight .s {
|
142
|
+
color: #d44950;
|
143
|
+
} /* Literal.String */
|
144
|
+
.highlight .na {
|
145
|
+
color: #4f9fcf;
|
146
|
+
} /* Name.Attribute */
|
147
|
+
.highlight .nb {
|
148
|
+
color: #366;
|
149
|
+
} /* Name.Builtin */
|
150
|
+
.highlight .nc {
|
151
|
+
color: #0a8;
|
152
|
+
} /* Name.Class */
|
153
|
+
.highlight .no {
|
154
|
+
color: #360;
|
155
|
+
} /* Name.Constant */
|
156
|
+
.highlight .nd {
|
157
|
+
color: #99f;
|
158
|
+
} /* Name.Decorator */
|
159
|
+
.highlight .ni {
|
160
|
+
color: #999;
|
161
|
+
} /* Name.Entity */
|
162
|
+
.highlight .ne {
|
163
|
+
color: #c00;
|
164
|
+
} /* Name.Exception */
|
165
|
+
.highlight .nf {
|
166
|
+
color: #c0f;
|
167
|
+
} /* Name.Function */
|
168
|
+
.highlight .nl {
|
169
|
+
color: #99f;
|
170
|
+
} /* Name.Label */
|
171
|
+
.highlight .nn {
|
172
|
+
color: #0cf;
|
173
|
+
} /* Name.Namespace */
|
174
|
+
.highlight .nt {
|
175
|
+
color: #2f6f9f;
|
176
|
+
} /* Name.Tag */
|
177
|
+
.highlight .nv {
|
178
|
+
color: #033;
|
179
|
+
} /* Name.Variable */
|
180
|
+
.highlight .ow {
|
181
|
+
color: #000;
|
182
|
+
} /* Operator.Word */
|
183
|
+
.highlight .w {
|
184
|
+
color: #bbb;
|
185
|
+
} /* Text.Whitespace */
|
186
|
+
.highlight .mf {
|
187
|
+
color: #f60;
|
188
|
+
} /* Literal.Number.Float */
|
189
|
+
.highlight .mh {
|
190
|
+
color: #f60;
|
191
|
+
} /* Literal.Number.Hex */
|
192
|
+
.highlight .mi {
|
193
|
+
color: #f60;
|
194
|
+
} /* Literal.Number.Integer */
|
195
|
+
.highlight .mo {
|
196
|
+
color: #f60;
|
197
|
+
} /* Literal.Number.Oct */
|
198
|
+
.highlight .sb {
|
199
|
+
color: #c30;
|
200
|
+
} /* Literal.String.Backtick */
|
201
|
+
.highlight .sc {
|
202
|
+
color: #c30;
|
203
|
+
} /* Literal.String.Char */
|
204
|
+
.highlight .sd {
|
205
|
+
color: #c30;
|
206
|
+
font-style: italic;
|
207
|
+
} /* Literal.String.Doc */
|
208
|
+
.highlight .s2 {
|
209
|
+
color: #c30;
|
210
|
+
} /* Literal.String.Double */
|
211
|
+
.highlight .se {
|
212
|
+
color: #c30;
|
213
|
+
} /* Literal.String.Escape */
|
214
|
+
.highlight .sh {
|
215
|
+
color: #c30;
|
216
|
+
} /* Literal.String.Heredoc */
|
217
|
+
.highlight .si {
|
218
|
+
color: #a00;
|
219
|
+
} /* Literal.String.Interpol */
|
220
|
+
.highlight .sx {
|
221
|
+
color: #c30;
|
222
|
+
} /* Literal.String.Other */
|
223
|
+
.highlight .sr {
|
224
|
+
color: #3aa;
|
225
|
+
} /* Literal.String.Regex */
|
226
|
+
.highlight .s1 {
|
227
|
+
color: #c30;
|
228
|
+
} /* Literal.String.Single */
|
229
|
+
.highlight .ss {
|
230
|
+
color: #fc3;
|
231
|
+
} /* Literal.String.Symbol */
|
232
|
+
.highlight .bp {
|
233
|
+
color: #366;
|
234
|
+
} /* Name.Builtin.Pseudo */
|
235
|
+
.highlight .vc {
|
236
|
+
color: #033;
|
237
|
+
} /* Name.Variable.Class */
|
238
|
+
.highlight .vg {
|
239
|
+
color: #033;
|
240
|
+
} /* Name.Variable.Global */
|
241
|
+
.highlight .vi {
|
242
|
+
color: #033;
|
243
|
+
} /* Name.Variable.Instance */
|
244
|
+
.highlight .il {
|
245
|
+
color: #f60;
|
246
|
+
} /* Literal.Number.Integer.Long */
|
247
|
+
|
248
|
+
.css .o,
|
249
|
+
.css .o + .nt,
|
250
|
+
.css .nt + .nt {
|
251
|
+
color: #999;
|
252
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
/*
|
5
|
+
Color Scheme
|
6
|
+
/*
|
7
|
+
|
8
|
+
// $color__background-content: #fff; // posts, pages and sidebar background color.
|
9
|
+
// $color__background-body: #e4f0f6; // body background color
|
10
|
+
// $color__text: #000112; // body text color
|
11
|
+
//
|
12
|
+
// $color__link: #4e9dd8; // color for links and accents
|
13
|
+
// $color__link-hover: #2361a7; // alternate color for active or focused links and accents
|
14
|
+
//
|
15
|
+
// $color__details: #939496; // color for details such as borders and shadows
|
16
|
+
// $color__details-lighter: #f0f1f4; // lighter alternative for details
|
17
|
+
// $color__details-darker: #6d6e70; // darker alternative for details
|
18
|
+
|
19
|
+
/*
|
20
|
+
Typography
|
21
|
+
*/
|
22
|
+
|
23
|
+
// $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif; // used for the main, body typography
|
24
|
+
// $font__headings: $font__body; // used for headings and feature elements
|
25
|
+
// $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace; // used for pre-formatted text and code.
|
26
|
+
|
27
|
+
/*
|
28
|
+
Layout
|
29
|
+
*/
|
30
|
+
|
31
|
+
// $layout__container-width: 1180px; // the width of the main content (content + sidebar)
|
32
|
+
// $layout__gutter: 2rem; // the spacing unit between elements.
|
33
|
+
|
34
|
+
@import "steve";
|
@@ -0,0 +1,79 @@
|
|
1
|
+
/*
|
2
|
+
Responsive videos.
|
3
|
+
*/
|
4
|
+
(function() {
|
5
|
+
var _debounce, _each, _filter, _resize, iframes, isVideo, resizeVideos, videos;
|
6
|
+
|
7
|
+
resizeVideos = function() {
|
8
|
+
_each(videos, function(video) {
|
9
|
+
var newWidth;
|
10
|
+
newWidth = video.parentElement.offsetWidth;
|
11
|
+
_resize(video, newWidth);
|
12
|
+
});
|
13
|
+
};
|
14
|
+
|
15
|
+
_each = function(items, action) {
|
16
|
+
var i, len;
|
17
|
+
i = 0;
|
18
|
+
len = items.length;
|
19
|
+
while (i < len) {
|
20
|
+
action(items[i], i);
|
21
|
+
i++;
|
22
|
+
}
|
23
|
+
};
|
24
|
+
|
25
|
+
_filter = function(items, test) {
|
26
|
+
var filtered, i, item;
|
27
|
+
filtered = [];
|
28
|
+
i = 0;
|
29
|
+
while (i < items.length) {
|
30
|
+
item = items[i];
|
31
|
+
if (test(item, i)) {
|
32
|
+
filtered.push(item);
|
33
|
+
}
|
34
|
+
i++;
|
35
|
+
}
|
36
|
+
return filtered;
|
37
|
+
};
|
38
|
+
|
39
|
+
_resize = function(video, newWidth) {
|
40
|
+
var ASPECT_RATIO, newHeight;
|
41
|
+
ASPECT_RATIO = 9 / 16;
|
42
|
+
newHeight = ASPECT_RATIO * newWidth;
|
43
|
+
video.setAttribute('width', newWidth.toString());
|
44
|
+
video.setAttribute('height', newHeight.toString());
|
45
|
+
};
|
46
|
+
|
47
|
+
_debounce = function(func, wait, immediate) {
|
48
|
+
var timeout;
|
49
|
+
timeout = void 0;
|
50
|
+
return function() {
|
51
|
+
var args, callNow, context, later;
|
52
|
+
context = this;
|
53
|
+
args = arguments;
|
54
|
+
later = function() {
|
55
|
+
timeout = null;
|
56
|
+
if (!immediate) {
|
57
|
+
func.apply(context, args);
|
58
|
+
}
|
59
|
+
};
|
60
|
+
callNow = immediate && !timeout;
|
61
|
+
clearTimeout(timeout);
|
62
|
+
timeout = setTimeout(later, wait);
|
63
|
+
if (callNow) {
|
64
|
+
func.apply(context, args);
|
65
|
+
}
|
66
|
+
};
|
67
|
+
};
|
68
|
+
|
69
|
+
iframes = document.getElementsByTagName('iframe');
|
70
|
+
|
71
|
+
isVideo = /(youtube)|(vimeo)|(cloudup)|(spotify)|(twitch)/i;
|
72
|
+
|
73
|
+
videos = _filter(iframes, function(iframe) {
|
74
|
+
return isVideo.test(iframe.getAttribute('src'));
|
75
|
+
});
|
76
|
+
|
77
|
+
resizeVideos();
|
78
|
+
|
79
|
+
}).call(this);
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: steve-for-jekyll
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arthur Freitas
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-05-08 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: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.2'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: webrick
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- email@arthr.me
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- _config.yml
|
65
|
+
- _includes/blog/custom-widgets.html
|
66
|
+
- _includes/blog/post.html
|
67
|
+
- _includes/blog/sidebar.html
|
68
|
+
- _includes/footer.html
|
69
|
+
- _includes/footer/custom-text.html
|
70
|
+
- _includes/footer/links.html
|
71
|
+
- _includes/head.html
|
72
|
+
- _includes/header.html
|
73
|
+
- _includes/header/menu.html
|
74
|
+
- _includes/search-form.html
|
75
|
+
- _layouts/archive.html
|
76
|
+
- _layouts/blog.html
|
77
|
+
- _layouts/default.html
|
78
|
+
- _layouts/page.html
|
79
|
+
- _layouts/post.html
|
80
|
+
- _sass/steve.scss
|
81
|
+
- _sass/steve/_base.scss
|
82
|
+
- _sass/steve/_layout.scss
|
83
|
+
- _sass/steve/_syntax.scss
|
84
|
+
- assets/css/screen.scss
|
85
|
+
- assets/js/responsive-videos.js
|
86
|
+
homepage: https://github.com/esporo/steve
|
87
|
+
licenses:
|
88
|
+
- MIT
|
89
|
+
metadata: {}
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubygems_version: 3.2.16
|
106
|
+
signing_key:
|
107
|
+
specification_version: 4
|
108
|
+
summary: A charming, fun blogging theme for Jekyll.
|
109
|
+
test_files: []
|