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 +4 -4
- data/README.md +3 -3
- data/_includes/shorts/picture.html +0 -6
- data/_sass/swift/_nav.sass +0 -1
- data/_sass/swift/_variables.sass +6 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbe53d3a05e9fd4533a23835e1432a1c4d76259f770d8f74f45f89bc23108b76
|
4
|
+
data.tar.gz: fedbe7aa4d6abfbab9ce831cc7f78d5d7219aaff8c2f92c7197d146ee945ba44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
32
|
+
You can include pictures very simple.
|
33
33
|
|
34
34
|
```ruby
|
35
|
-
{% include shorts/picture.html normalPath="images/read.jpg"
|
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>
|
data/_sass/swift/_nav.sass
CHANGED
data/_sass/swift/_variables.sass
CHANGED
@@ -14,21 +14,13 @@ html
|
|
14
14
|
--dark: #131313
|
15
15
|
--gray: #f5f5f5
|
16
16
|
--bubble: #161718
|
17
|
-
--accent: var(--
|
18
|
-
--bg: var(--
|
19
|
-
--text: var(--
|
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.
|
42
|
-
box-shadow: 0 0
|
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
|
36
|
+
box-shadow: 0 0 1rem rgba(100,100,100, (3 * $opacity))
|