astro-accelerator 5.10.6 → 5.10.7
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.
package/package.json
CHANGED
package/public/css/main.css
CHANGED
|
@@ -798,8 +798,8 @@ details.sub-nav details {
|
|
|
798
798
|
border: 3px solid var(--fore-link);
|
|
799
799
|
|
|
800
800
|
@media (max-width: 680px) {
|
|
801
|
-
filter: grayscale(calc(1 - var(--
|
|
802
|
-
scale: calc(1 + (0.2 * var(--
|
|
801
|
+
filter: grayscale(calc(1 - var(--img-shown)));
|
|
802
|
+
scale: calc(1 + (0.2 * var(--img-shown)));
|
|
803
803
|
transform: rotate(3deg);
|
|
804
804
|
}
|
|
805
805
|
}
|
|
@@ -904,7 +904,6 @@ details.sub-nav details {
|
|
|
904
904
|
|
|
905
905
|
@media (max-width: 860px) {
|
|
906
906
|
display: block;
|
|
907
|
-
margin: 0 auto;
|
|
908
907
|
}
|
|
909
908
|
}
|
|
910
909
|
|
|
@@ -38,7 +38,7 @@ function addIntersectionObserver(listItemQuery) {
|
|
|
38
38
|
|
|
39
39
|
const observer = new IntersectionObserver(handleIntersection, options);
|
|
40
40
|
|
|
41
|
-
qsa(listItemQuery).forEach(
|
|
41
|
+
qsa(listItemQuery).forEach(elem => observer.observe(elem));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -58,7 +58,7 @@ function addListImageIntersectionObserver(imgItemQuery) {
|
|
|
58
58
|
function handleIntersection(entries, observer) {
|
|
59
59
|
for (let entry of entries) {
|
|
60
60
|
const value = entry.isIntersecting ? 1 : 0;
|
|
61
|
-
entry.target.style.setProperty('--
|
|
61
|
+
entry.target.style.setProperty('--img-shown', value);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -70,7 +70,7 @@ function addListImageIntersectionObserver(imgItemQuery) {
|
|
|
70
70
|
|
|
71
71
|
const observer = new IntersectionObserver(handleIntersection, options);
|
|
72
72
|
|
|
73
|
-
qsa(imgItemQuery).forEach(
|
|
73
|
+
qsa(imgItemQuery).forEach(elem => observer.observe(elem));
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export { addIntersectionObserver, addListImageIntersectionObserver };
|