steve-for-jekyll 1.0.2 → 1.0.3
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 +4 -4
- data/404.html +9 -0
- data/LICENSE.txt +21 -21
- data/README.md +21 -21
- data/_config.yml +70 -70
- data/_includes/blog/custom-widgets.html +3 -3
- data/_includes/blog/post.html +43 -43
- data/_includes/blog/sidebar.html +42 -42
- data/_includes/footer.html +11 -11
- data/_includes/footer/custom-text.html +5 -5
- data/_includes/header.html +17 -17
- data/_includes/header/menu.html +12 -12
- data/_includes/search-form.html +13 -13
- data/_layouts/archive.html +21 -21
- data/_layouts/default.html +18 -18
- data/_layouts/home.html +23 -23
- data/_layouts/page.html +15 -15
- data/_layouts/post.html +92 -92
- data/_sass/steve-for-jekyll.scss +51 -51
- data/_sass/steve/_base.scss +222 -222
- data/_sass/steve/_layout.scss +397 -397
- data/assets/css/screen.scss +34 -34
- data/assets/js/responsive-videos.js +79 -79
- metadata +5 -4
data/assets/css/screen.scss
CHANGED
@@ -1,34 +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 "{{ site.theme }}";
|
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 "{{ site.theme }}";
|
@@ -1,79 +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);
|
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
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steve-for-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arthur Freitas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- 404.html
|
132
133
|
- LICENSE.txt
|
133
134
|
- README.md
|
134
135
|
- _config.yml
|
@@ -173,8 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
174
|
- !ruby/object:Gem::Version
|
174
175
|
version: '0'
|
175
176
|
requirements: []
|
176
|
-
rubygems_version: 3.2.
|
177
|
+
rubygems_version: 3.2.15
|
177
178
|
signing_key:
|
178
179
|
specification_version: 4
|
179
|
-
summary: A charming
|
180
|
+
summary: A charming and fun Jekyll theme for blogs.
|
180
181
|
test_files: []
|