jekyll-swift-theme 0.3.0 → 0.3.1

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: 3c6042d1f2fa9618661de3faf92961ada9f0afd1b2c574ff14d292323a8d0002
4
- data.tar.gz: 7a8073a192a04428aaef7bacbaa10e781a30cbe0ff46f52700b7a2428278f436
3
+ metadata.gz: bbe53d3a05e9fd4533a23835e1432a1c4d76259f770d8f74f45f89bc23108b76
4
+ data.tar.gz: fedbe7aa4d6abfbab9ce831cc7f78d5d7219aaff8c2f92c7197d146ee945ba44
5
5
  SHA512:
6
- metadata.gz: 4378c3cb266a96c591cf6365e0284c308256e8ee68ee6a641f38fa3f0f83d90ad6cfb21c3c064ed96f393322639759669ee5a18ddda5666958592be89e5d0154
7
- data.tar.gz: 93486a53817626e6b13f96ac1f8d656921e93098fcaf015873d0fe01831c6eea8c760730a57e52ea1e43e02837e8111883e41dfab7616048832d63a259779916
6
+ metadata.gz: 05d6565d08381a747c7096a3f6c297632acd523a4a27925a04844bf2534719a2e54fe3439fb00444d839712868095a80c38edd183c5c538f1722a370019f850e
7
+ data.tar.gz: 67967ab47314dd299af3a344537336ee64d1e3950a705905a24254b74dfa70e972aba281542102af5dec140119215895572829eda2c706aaa8041057072f494f
data/README.md CHANGED
@@ -15,7 +15,7 @@ This Theme is a port of [Hugo Swift Theme](https://github.com/onweru/hugo-swift-
15
15
 
16
16
  * Blog
17
17
  * Pagination
18
- * Dark Mode
18
+ * Dark Mode only
19
19
  * Native lazy loading of images
20
20
  * Picture & [Gallery](https://galleriajs.github.io) Support
21
21
  * Flickr Album Support
@@ -29,10 +29,10 @@ This Theme is a port of [Hugo Swift Theme](https://github.com/onweru/hugo-swift-
29
29
 
30
30
  ### Pictures
31
31
 
32
- You can include pictures very simple. You want to use darkmode images when darkmode is enabled on a device and a regular image on lightmode? It takes 3 include parameters
32
+ You can include pictures very simple.
33
33
 
34
34
  ```ruby
35
- {% include shorts/picture.html normalPath="images/read.jpg" darkPath="images/speakers.jpg" alt="reading" %}
35
+ {% include shorts/picture.html normalPath="images/read.jpg" alt="reading" %}
36
36
  ```
37
37
 
38
38
  ### Gallery
@@ -1,11 +1,5 @@
1
1
  {% assign image = "/assets/images/" | append: include.normalPath %}
2
- {% assign darkImage = "/assets/images/" | append: include.normalPath %}
3
-
4
- {% if include.darkPath %}
5
- {% assign darkImage = "/assets/images/" | append: include.darkPath %}
6
- {% endif %}
7
2
 
8
3
  <picture class="nav-logo">
9
- <source srcset="{{ darkImage | relativePath }}" media="(prefers-color-scheme: dark)">
10
4
  <img srcset="{{ image | relativePath }}" alt="{{ include.alt }}">
11
5
  </picture>
@@ -114,7 +114,6 @@
114
114
  justify-content: space-between
115
115
  a
116
116
  color: inherit
117
- width: 100%
118
117
  display: block
119
118
  padding: 10px 25px
120
119
  font-size: 105%
@@ -14,21 +14,13 @@ html
14
14
  --dark: #131313
15
15
  --gray: #f5f5f5
16
16
  --bubble: #161718
17
- --accent: var(--gray)
18
- --bg: var(--light)
19
- --text: var(--dark)
17
+ --accent: var(--bubble)
18
+ --bg: var(--dark)
19
+ --text: var(--light)
20
20
  --theme: #ef7f1a
21
21
  --font: 'Metropolis', sans-serif
22
22
  --italic: 'Volkhov' // italic font
23
23
 
24
- @media (prefers-color-scheme: dark)
25
- *
26
- box-shadow: none !important
27
- html
28
- --bg: var(--dark)
29
- --text: var(--light)
30
- --accent: var(--bubble)
31
-
32
24
  %narrow
33
25
  max-width: 750px
34
26
  margin: 0 auto
@@ -38,7 +30,7 @@ html
38
30
  margin: $margin auto
39
31
  @content
40
32
 
41
- @mixin shadow($opacity: 0.17)
42
- box-shadow: 0 0 3rem rgba(0,0,0,$opacity)
33
+ @mixin shadow($opacity: 0.2)
34
+ box-shadow: 0 0 0.4rem rgba(100,100,100,$opacity)
43
35
  &:hover
44
- box-shadow: 0 0 5rem rgba(0,0,0, (1.5 * $opacity))
36
+ box-shadow: 0 0 1rem rgba(100,100,100, (3 * $opacity))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-swift-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - elyday