minimal-music-project 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +2 -0
- data/_data/metaData.yml +1 -0
- data/_includes/common.js +23 -5
- data/_includes/discography-entry.html +0 -1
- data/_layouts/default.html +1 -1
- data/_sass/styles/_defaults.scss +1 -2
- data/_sass/styles/_discography.scss +3 -0
- data/_sass/styles/_menu.scss +42 -27
- data/_sass/styles/_modal.scss +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 334a32cc2e891ee3be31cbab9984f40124737162a2560e2488e9ee09a5266b77
|
4
|
+
data.tar.gz: 2899c01395e630bbec84d11954fdc60a9a4f165564a62eb80b093649cdfd7e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21c18aa93035b0a9e053f0d925ded7b9ebd9e6d9c46065d0da691cc1790320bc46b5cccc2e6d637ba07491f267626ea642c7fe6e46db3d94ea938af8126f53a
|
7
|
+
data.tar.gz: f6371fc973e80a669f0d4d77d0100a2746b025ae1023b5fc07f85b0917e777b59db88bceec44144e5f0180486726f695834376427b47e6b87a98ce16984e6ef1
|
data/README.md
CHANGED
@@ -69,6 +69,7 @@ Structure of `_data/metaData.yml`:
|
|
69
69
|
* author: Site Author name
|
70
70
|
* logo: relative url to the logo
|
71
71
|
* clickToEnlargeImages: boolean value to enable/disable "full-screen" images on click
|
72
|
+
* lang: lang property of HTML.
|
72
73
|
* cookies: customize information about site cookies
|
73
74
|
* enabled: determine if should show cookies pop-up
|
74
75
|
* message: text on cookie pop-up
|
@@ -81,6 +82,7 @@ Structure of `_data/metaData.yml`:
|
|
81
82
|
* name: bolded on render
|
82
83
|
* description: description of the cookie
|
83
84
|
* cookieName: under what name it will be saved in the local storage (selected checkbox as "true", unselected as "false")
|
85
|
+
* alwaysAgree: used for cookies, that cannot be disabled. This will make this consent appear on the "cookies" layout with checked and disabled checkbox. It does not add this cookie under *name* to localStorage
|
84
86
|
|
85
87
|
Structure of `_data/customs.yml`:
|
86
88
|
|
data/_data/metaData.yml
CHANGED
data/_includes/common.js
CHANGED
@@ -1,14 +1,28 @@
|
|
1
1
|
(function () {
|
2
2
|
window.toggleExpander = function toggleExpander(x) {
|
3
|
-
document.getElementsByClassName("menu")[0]
|
4
|
-
|
3
|
+
const menu = document.getElementsByClassName("menu")[0];
|
4
|
+
const navigation = document.getElementsByClassName("navigation")[0];
|
5
|
+
if (menu.classList.contains('expanded--visible')) {
|
6
|
+
menu.classList.toggle('expanded--visible');
|
7
|
+
navigation.addEventListener('transitionend', function(e) {
|
8
|
+
menu.classList.toggle("expanded");
|
9
|
+
}, {
|
10
|
+
capture: false,
|
11
|
+
once: true,
|
12
|
+
passive: false
|
13
|
+
});
|
14
|
+
} else {
|
15
|
+
menu.classList.toggle("expanded");
|
16
|
+
setTimeout(() => menu.classList.toggle('expanded--visible'), 20);
|
17
|
+
}
|
18
|
+
};
|
5
19
|
window.addEventListener("load", () => {
|
6
20
|
// #region click to enlarge images
|
7
21
|
const imageWrappers = document.querySelectorAll(".click-to-enlarge");
|
8
22
|
imageWrappers.forEach(imageWrapper => {
|
9
|
-
const img = imageWrapper.getElementsByTagName("img")[0];
|
10
23
|
{% if site.data.metaData.clickToEnlargeImages %}
|
11
|
-
|
24
|
+
imageWrapper.addEventListener("click", () => {
|
25
|
+
const img = imageWrapper.getElementsByTagName("img")[0];
|
12
26
|
const src = img.attributes.getNamedItem("src");
|
13
27
|
const modal = document.createElement("div");
|
14
28
|
const removeModal = function() {
|
@@ -17,9 +31,13 @@
|
|
17
31
|
document.body.removeChild(modal);
|
18
32
|
}, 200);
|
19
33
|
};
|
34
|
+
const newImage = document.createElement("img");
|
35
|
+
newImage.classList.add("modal__picture-zoomed--image");
|
36
|
+
newImage.setAttribute("src", src.value);
|
20
37
|
modal.classList.add("modal__picture-zoomed", "hidden");
|
21
|
-
modal.style.backgroundImage = `URL("${src.value}")`;
|
38
|
+
// modal.style.backgroundImage = `URL("${src.value}")`;
|
22
39
|
modal.addEventListener("click", removeModal);
|
40
|
+
modal.append(newImage);
|
23
41
|
document.body.append(modal);
|
24
42
|
document.body.addEventListener("keyup", e => {
|
25
43
|
if (e.key === 'Escape') {
|
@@ -8,7 +8,6 @@
|
|
8
8
|
{% if include.currPost.image_alt %}
|
9
9
|
alt="{{ include.currPost.image_alt }}"
|
10
10
|
{% endif %}
|
11
|
-
class="include.currPost-feed_image"
|
12
11
|
src="{{ include.currPost.image | relative_url }}"
|
13
12
|
{% if include.currPost.responsiveImage %}
|
14
13
|
srcset="{% for img in include.currPost.responsiveImage %}{{ img.src | relative_url }} {{ img.size }}w{% if forloop.last == false %},{% endif %}{% endfor %}"
|
data/_layouts/default.html
CHANGED
data/_sass/styles/_defaults.scss
CHANGED
@@ -117,11 +117,10 @@ img {
|
|
117
117
|
position: absolute;
|
118
118
|
left: 0;
|
119
119
|
top: 0;
|
120
|
-
z-index: -1;
|
121
120
|
width: 100%;
|
122
121
|
height: 100%;
|
123
122
|
opacity: 0;
|
124
|
-
box-shadow: 0
|
123
|
+
box-shadow: 0 0 12px black;
|
125
124
|
opacity: 0;
|
126
125
|
transition: opacity 0.3s ease-in-out;
|
127
126
|
}
|
data/_sass/styles/_menu.scss
CHANGED
@@ -19,39 +19,43 @@
|
|
19
19
|
width: 100%;
|
20
20
|
max-height: $mobile-menu-height;
|
21
21
|
}
|
22
|
+
&.expanded--visible {
|
23
|
+
@include mobile {
|
24
|
+
.navigation {
|
25
|
+
opacity: 1;
|
26
|
+
}
|
27
|
+
.menu-contact {
|
28
|
+
opacity: 1;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
22
32
|
&.expanded {
|
23
33
|
z-index: 10;
|
24
34
|
.menu-top_expand {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
.bar_top {
|
36
|
+
-webkit-transform: rotate(-45deg) translate(-8px, 8px);
|
37
|
+
transform: rotate(-45deg) translate(-8px, 8px);
|
38
|
+
}
|
39
|
+
|
40
|
+
.bar_middle {opacity: 0;}
|
41
|
+
|
42
|
+
.bar_bottom {
|
43
|
+
-webkit-transform: rotate(45deg) translate(-8px, -8px);
|
44
|
+
transform: rotate(45deg) translate(-8px, -8px);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
@include mobile {
|
48
|
+
.navigation {
|
39
49
|
display: block;
|
50
|
+
}
|
51
|
+
.menu-contact {
|
52
|
+
display: flex;
|
40
53
|
position: fixed;
|
41
|
-
|
42
|
-
|
43
|
-
height: calc(100% - #{$mobile-menu-height});
|
44
|
-
width: 100%;
|
45
|
-
background-color: $white;
|
46
|
-
padding-left: 2em;
|
54
|
+
bottom: 0.5em;
|
55
|
+
left: 1em;
|
47
56
|
}
|
48
|
-
|
49
|
-
|
50
|
-
display: flex;
|
51
|
-
position: fixed;
|
52
|
-
bottom: 0.5em;
|
53
|
-
left: 1em;
|
54
|
-
}
|
57
|
+
}
|
58
|
+
|
55
59
|
}
|
56
60
|
&-top {
|
57
61
|
box-sizing: border-box;
|
@@ -130,8 +134,17 @@
|
|
130
134
|
}
|
131
135
|
|
132
136
|
.navigation {
|
137
|
+
transition: opacity 0.3s ease-in-out;
|
133
138
|
@include mobile {
|
134
139
|
display: none;
|
140
|
+
opacity: 0;
|
141
|
+
position: fixed;
|
142
|
+
left: 0;
|
143
|
+
top: $mobile-menu-height;
|
144
|
+
height: calc(100% - #{$mobile-menu-height});
|
145
|
+
width: 100%;
|
146
|
+
background-color: $white;
|
147
|
+
padding-left: 2em;
|
135
148
|
}
|
136
149
|
}
|
137
150
|
|
@@ -140,8 +153,10 @@
|
|
140
153
|
justify-content:left;
|
141
154
|
margin-bottom: 0.6em;
|
142
155
|
flex-wrap: wrap;
|
156
|
+
transition: opacity 0.3s ease-in-out;
|
143
157
|
@include mobile {
|
144
158
|
display: none;
|
159
|
+
opacity: 0;
|
145
160
|
}
|
146
161
|
a {
|
147
162
|
color: $p_text;
|
data/_sass/styles/_modal.scss
CHANGED
@@ -11,11 +11,18 @@
|
|
11
11
|
top: 0;
|
12
12
|
left: 0;
|
13
13
|
cursor: zoom-out;
|
14
|
-
transition: opacity 0.
|
14
|
+
transition: opacity 0.3s ease-in-out;
|
15
15
|
opacity: 1;
|
16
|
+
display: flex;
|
17
|
+
align-items: center;
|
18
|
+
justify-content: center;
|
16
19
|
@include mobile {
|
17
20
|
background-size: contain;
|
18
21
|
}
|
22
|
+
&--image {
|
23
|
+
max-height: 96vh;
|
24
|
+
max-width: 96vw;
|
25
|
+
}
|
19
26
|
&.hidden {
|
20
27
|
opacity: 0;
|
21
28
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimal-music-project
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patryk Bieszke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|