jekyll-theme-recipe 0.5.0 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f03a3f5a21b2a5fd769d9d2cc459e104e9bedabd0d031168f86e49dee8a4deb
4
- data.tar.gz: 268835a92ae4cf44028266e5f75a3ed6fc92f6332b801a9fc74491b2d9877e6a
3
+ metadata.gz: 0f8742ee3d8b82fef6b1bb4abb790946696faa64f7b4042f181b2ea0af1a81e5
4
+ data.tar.gz: c23c7524b6e9c83aa9b1037845867f56b7ec973e97e3b8ac0b9dcee65b5ba20d
5
5
  SHA512:
6
- metadata.gz: 4d7b60d511533e2a0bb292fc9e7e62781b4f8e606722d37cb7c0a82501a5633af86dda9de52a39100146287cb352b2ff2a9611ae9ea592e429624a06bf5e0167
7
- data.tar.gz: 82c3b4421957e859e878e7a6c83ff7447d88d71f68a26d4f1c3e79df7931122fc86e2ab08ba00e81a8c85e68456790ad04b829025097b968f4be52c7eff78e5d
6
+ metadata.gz: 8682c89ac1fc8b544c93e6cf2eeb321af3393d0b998821500f2add711319d4c7937b1e454aefbb198d27203dc2d37e97f20c7f1cfd593da32ed1168689947b3f
7
+ data.tar.gz: c3dbbdbc221f2fc7ef92f2a99edce3b2cb3b8c024776bc66fa0953d624b1bd9041a0a3c52533a32c919cfb5f05ef23cff7a7797a04ac69024da90a69217e6f23
@@ -0,0 +1,66 @@
1
+
2
+ // prefers-color-scheme: light
3
+ .light-mode-hide {
4
+ display: none;
5
+ }
6
+
7
+ @media (prefers-color-scheme: dark) {
8
+ .dark-mode-hide {
9
+ display: none;
10
+ }
11
+ .light-mode-hide {
12
+ display:initial;
13
+ }
14
+ }
15
+
16
+
17
+ input#color-mode, input#color-mode + label{
18
+ position: absolute;
19
+ top: 100px;
20
+ left: 30px;
21
+ }
22
+
23
+ input#color-mode {
24
+ appearance: none;
25
+ }
26
+
27
+ input#color-mode + label{
28
+ margin: 0;
29
+ line-height: 1.4em;
30
+ cursor: pointer;
31
+ padding: 2px 4px;
32
+
33
+ border: 1px solid var(--primary-highlight);
34
+ color: var(--primary-highlight);
35
+
36
+ &:hover, &:focus {
37
+ border: 1px solid var(--common);
38
+ color: var(--common);
39
+ background-color: var(--primary-highlight);
40
+
41
+ &:after{
42
+ border-left: solid 1px var(--common);
43
+
44
+ }
45
+ }
46
+
47
+ &:after {
48
+ content: "✔\FE0E";
49
+ display: inline-block;
50
+ width: 1.4rem;
51
+ margin-left: 0.2rem;
52
+ border-left: solid 1px var(--primary-highlight);
53
+ text-align: center;
54
+ color: transparent;
55
+
56
+ }
57
+ }
58
+ input#color-mode:checked + label:after{
59
+ color: var(--primary-highlight);
60
+ }
61
+
62
+ @media (min-width: 1160px) {
63
+ input#color-mode, input#color-mode + label {
64
+ left: calc(calc(calc(100vw - 1160px) / 2) + 30px);
65
+ }
66
+ }
@@ -1,9 +1,9 @@
1
1
  ---
2
- title: CSS-Stylesheet for screens
2
+ //title: CSS-Stylesheet for screens
3
3
  ---
4
4
 
5
5
  // doesnt work :(, page.color seems to be nil, but actually exists
6
- $recipe_color: "{% if page.color and page.color != '' %}{{ page.color }}{% else %}{{'#ff4e4e'}}{% endif %}";
6
+ //$recipe_color: "{% if page.color and page.color != '' %}{{ page.color }}{% else %}{{'#ff4e4e'}}{% endif %}";
7
7
 
8
8
  @import "fonts";
9
9
  @import "variables";
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanno Witzleb
@@ -145,6 +145,7 @@ files:
145
145
  - _layouts/default.html
146
146
  - _layouts/post.html
147
147
  - _sass/blog.scss
148
+ - _sass/color-mode.scss
148
149
  - _sass/elements.scss
149
150
  - _sass/fonts.scss
150
151
  - _sass/forms.scss