steve-for-jekyll 1.1.1 → 1.2.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.
@@ -1,51 +1,51 @@
1
- /*
2
- Color Scheme
3
- */
4
-
5
- $color__background-content: #fff !default; // posts, pages and sidebar background color.
6
- $color__background-body: #e4f0f6 !default; // body background color
7
- $color__text: #000112 !default; // body text color
8
-
9
- $color__link: #4e9dd8 !default; // color for links and accents
10
- $color__link-hover: #2361a7 !default; // alternate color for active or focused links and accents
11
-
12
- $color__details: #939496 !default; // color for details such as borders and shadows
13
- $color__details-lighter: #f0f1f4 !default; // lighter alternative for details
14
- $color__details-darker: #6d6e70 !default; // darker alternative for details
15
-
16
- /*
17
- Typography
18
- */
19
-
20
- $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif !default; // used for the main, body typography
21
- $font__headings: $font__body !default; // used for headings and feature elements
22
- $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace !default; // used for pre-formatted text and code.
23
-
24
-
25
- /*
26
- Layout
27
- */
28
- $layout__container-width: 1180px !default; // the width of the main content (content + sidebar)
29
- $layout__gutter: 2rem !default; // the spacing unit between elements.
30
-
31
- :root {
32
- --color-bg: #{$color__background-content};
33
- --color-body: #{$color__background-body};
34
- --color-text: #{$color__text};
35
-
36
- --color-link: #{$color__link};
37
- --color-link-hover: #{$color__link-hover};
38
-
39
- --color-details: #{$color__details};
40
- --color-details-lighter: #{$color__details-lighter};
41
- --color-details-darker: #{$color__details-darker};
42
-
43
- --font: #{$font__body};
44
- --font-headings: #{$font__headings};
45
- --font-code: #{$font__code};
46
-
47
- --container: #{$layout__container-width};
48
- --gap: #{$layout__gutter};
49
- }
50
-
51
- @import "steve/base", "steve/layout", "steve/syntax";
1
+ /*
2
+ Color Scheme
3
+ */
4
+
5
+ $color__background-content: #fff !default; // posts, pages and sidebar background color.
6
+ $color__background-body: #e4f0f6 !default; // body background color
7
+ $color__text: #000112 !default; // body text color
8
+
9
+ $color__link: #4e9dd8 !default; // color for links and accents
10
+ $color__link-hover: #2361a7 !default; // alternate color for active or focused links and accents
11
+
12
+ $color__details: #939496 !default; // color for details such as borders and shadows
13
+ $color__details-lighter: #f0f1f4 !default; // lighter alternative for details
14
+ $color__details-darker: #6d6e70 !default; // darker alternative for details
15
+
16
+ /*
17
+ Typography
18
+ */
19
+
20
+ $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif !default; // used for the main, body typography
21
+ $font__headings: $font__body !default; // used for headings and feature elements
22
+ $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace !default; // used for pre-formatted text and code.
23
+
24
+
25
+ /*
26
+ Layout
27
+ */
28
+ $layout__container-width: 1180px !default; // the width of the main content (content + sidebar)
29
+ $layout__gutter: 2rem !default; // the spacing unit between elements.
30
+
31
+ :root {
32
+ --color-bg: #{$color__background-content};
33
+ --color-body: #{$color__background-body};
34
+ --color-text: #{$color__text};
35
+
36
+ --color-link: #{$color__link};
37
+ --color-link-hover: #{$color__link-hover};
38
+
39
+ --color-details: #{$color__details};
40
+ --color-details-lighter: #{$color__details-lighter};
41
+ --color-details-darker: #{$color__details-darker};
42
+
43
+ --font: #{$font__body};
44
+ --font-headings: #{$font__headings};
45
+ --font-code: #{$font__code};
46
+
47
+ --container: #{$layout__container-width};
48
+ --gap: #{$layout__gutter};
49
+ }
50
+
51
+ @import "steve/base", "steve/layout", "steve/syntax";
@@ -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.1.1
4
+ version: 1.2.1
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-13 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.15'
47
+ version: '0.16'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.15'
54
+ version: '0.16'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jekyll-seo-tag
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.7'
61
+ version: '2.8'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.7'
68
+ version: '2.8'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jekyll-sitemap
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: jekyll-loading-lazy
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.1'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.1'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: bundler
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -177,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
191
  - !ruby/object:Gem::Version
178
192
  version: '0'
179
193
  requirements: []
180
- rubygems_version: 3.2.15
194
+ rubygems_version: 3.3.7
181
195
  signing_key:
182
196
  specification_version: 4
183
197
  summary: A charming and fun Jekyll theme for blogs.