jekyll-theme-recipe 0.8.2 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df6cce1e1b7aed0c3f82ed1153e6cbfcbfe07580164ca8b9e72eee1389538e08
4
- data.tar.gz: d646c3e05132726af19e5c997cd93b70affef2bbd53c2d44d7588ac2c0c5125f
3
+ metadata.gz: af6fe714e2dffd69763f1b3042ad76442630963c79e297471b306ce51af06453
4
+ data.tar.gz: d69085ea7cb380f62eb2607644e3d88f9dfc26e999a4aa924b705f05485b9375
5
5
  SHA512:
6
- metadata.gz: ae6f0a79b0480c9f1d4f3b27a8e55a4b64993be73fc45e92a9d3068eb0c16d903b76cac61c75f76031ef69ee5c820afb48a48ccf5504561ac7958144efc44211
7
- data.tar.gz: 7597127389a9399643ed450c3e2e04ad31f8220af3f0ac532d683ba1cbd40c0b4ee62a0e120001a5c3a19b7561f9ba5d2f1f06a3505aa7a06b87dc69a9709d52
6
+ metadata.gz: 9faf49ad9b5cbf4be47e1734548b2ac0f5196b99f6dfffc633a7abf27777801f7de71b0a970da474a04073c6f975fda30c8661d1826d9707aa07a16a09ac47a8
7
+ data.tar.gz: ad64859bba8585fbb6f733182df9fa9ba77d97e6367f0304ea7363ec1d5ebb818a3e99ab077751dd60e0648c11d190ccb30c7e48d62ccf84d903e8d82b994477
@@ -88,7 +88,25 @@ input:checked + .color-slider-wrapper .color-slider:after {
88
88
 
89
89
  }
90
90
 
91
+
91
92
  // change icon according to :checked and prefers
93
+
94
+ /// Replace `$search` with `$replace` in `$string`
95
+ /// @author Hugo Giraudel
96
+ /// @param {String} $string - Initial string
97
+ /// @param {String} $search - Substring to replace
98
+ /// @param {String} $replace ('') - New value
99
+ /// @return {String} - Updated string
100
+ @function str-replace($string, $search, $replace: '') {
101
+ $index: str-index($string, $search);
102
+
103
+ @if $index {
104
+ @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
105
+ }
106
+
107
+ @return $string;
108
+ }
109
+
92
110
  $to-light-in-prefers-dark-icon: url(str-replace("data:image/svg+xml,%3Csvg fill='#{$dark-secondary-highlight}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d='M375.7 19.7c-1.5-8-6.9-14.7-14.4-17.8s-16.1-2.2-22.8 2.4L256 61.1 173.5 4.2c-6.7-4.6-15.3-5.5-22.8-2.4s-12.9 9.8-14.4 17.8l-18.1 98.5L19.7 136.3c-8 1.5-14.7 6.9-17.8 14.4s-2.2 16.1 2.4 22.8L61.1 256 4.2 338.5c-4.6 6.7-5.5 15.3-2.4 22.8s9.8 13 17.8 14.4l98.5 18.1 18.1 98.5c1.5 8 6.9 14.7 14.4 17.8s16.1 2.2 22.8-2.4L256 450.9l82.5 56.9c6.7 4.6 15.3 5.5 22.8 2.4s12.9-9.8 14.4-17.8l18.1-98.5 98.5-18.1c8-1.5 14.7-6.9 17.8-14.4s2.2-16.1-2.4-22.8L450.9 256l56.9-82.5c4.6-6.7 5.5-15.3 2.4-22.8s-9.8-12.9-17.8-14.4l-98.5-18.1L375.7 19.7zM269.6 110l65.6-45.2 14.4 78.3c1.8 9.8 9.5 17.5 19.3 19.3l78.3 14.4L402 242.4c-5.7 8.2-5.7 19 0 27.2l45.2 65.6-78.3 14.4c-9.8 1.8-17.5 9.5-19.3 19.3l-14.4 78.3L269.6 402c-8.2-5.7-19-5.7-27.2 0l-65.6 45.2-14.4-78.3c-1.8-9.8-9.5-17.5-19.3-19.3L64.8 335.2 110 269.6c5.7-8.2 5.7-19 0-27.2L64.8 176.8l78.3-14.4c9.8-1.8 17.5-9.5 19.3-19.3l14.4-78.3L242.4 110c8.2 5.7 19 5.7 27.2 0zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zM192 256a64 64 0 1 1 128 0 64 64 0 1 1 -128 0z'/%3E%3C/svg%3E", "#", '%23'));
93
111
  $to-light-in-prefers-light-icon: url(str-replace("data:image/svg+xml,%3Csvg fill='#{$light-secondary-highlight}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d='M375.7 19.7c-1.5-8-6.9-14.7-14.4-17.8s-16.1-2.2-22.8 2.4L256 61.1 173.5 4.2c-6.7-4.6-15.3-5.5-22.8-2.4s-12.9 9.8-14.4 17.8l-18.1 98.5L19.7 136.3c-8 1.5-14.7 6.9-17.8 14.4s-2.2 16.1 2.4 22.8L61.1 256 4.2 338.5c-4.6 6.7-5.5 15.3-2.4 22.8s9.8 13 17.8 14.4l98.5 18.1 18.1 98.5c1.5 8 6.9 14.7 14.4 17.8s16.1 2.2 22.8-2.4L256 450.9l82.5 56.9c6.7 4.6 15.3 5.5 22.8 2.4s12.9-9.8 14.4-17.8l18.1-98.5 98.5-18.1c8-1.5 14.7-6.9 17.8-14.4s2.2-16.1-2.4-22.8L450.9 256l56.9-82.5c4.6-6.7 5.5-15.3 2.4-22.8s-9.8-12.9-17.8-14.4l-98.5-18.1L375.7 19.7zM269.6 110l65.6-45.2 14.4 78.3c1.8 9.8 9.5 17.5 19.3 19.3l78.3 14.4L402 242.4c-5.7 8.2-5.7 19 0 27.2l45.2 65.6-78.3 14.4c-9.8 1.8-17.5 9.5-19.3 19.3l-14.4 78.3L269.6 402c-8.2-5.7-19-5.7-27.2 0l-65.6 45.2-14.4-78.3c-1.8-9.8-9.5-17.5-19.3-19.3L64.8 335.2 110 269.6c5.7-8.2 5.7-19 0-27.2L64.8 176.8l78.3-14.4c9.8-1.8 17.5-9.5 19.3-19.3l14.4-78.3L242.4 110c8.2 5.7 19 5.7 27.2 0zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zM192 256a64 64 0 1 1 128 0 64 64 0 1 1 -128 0z'/%3E%3C/svg%3E", "#", '%23'));
94
112
  $to-dark-in-prefers-light-icon: url(str-replace("data:image/svg+xml,%3Csvg fill='#{$light-secondary-highlight}' xmlns='http://www.w3.org/2000/svg' viewBox='-64 0 512 512'%3E%3C!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d='M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z'/%3E%3C/svg%3E%0A", "#", '%23'));
@@ -1,18 +1,18 @@
1
1
  ---
2
- title: CSS-Stylesheet for screens
2
+ # CSS-Stylesheet for screens
3
3
  ---
4
4
 
5
5
  // doesnt work :(, page.color seems to be nil, but actually exists
6
6
  $recipe_color: "{% if page.color and page.color != '' %}{{ page.color }}{% else %}{{'#ff4e4e'}}{% endif %}";
7
7
 
8
- @import "fonts";
9
- @import "variables";
10
- @import "functions";
11
- @import "color-mode";
12
- @import "elements";
13
- @import "layout";
14
- @import "blog";
15
- @import "forms";
16
- @import "navigation";
17
- @import "sidebar";
18
- @import "recipes";
8
+ @import
9
+ "variables",
10
+ "functions",
11
+ "color-mode",
12
+ "elements",
13
+ "layout",
14
+ "blog",
15
+ "forms",
16
+ "navigation",
17
+ "sidebar",
18
+ "recipes";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanno Witzleb