yefeme 0.8.3 → 0.8.4

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: 98cdc649f2205522fd9a3f7eabc889d1895a3d38d789455ad2bc26c8bd53d721
4
- data.tar.gz: a7717bbf58c188e7bad0a63bca69b06ec0fe98e9ca5e2c2a76895659d5a204c6
3
+ metadata.gz: fd985ddaddcd713620bd25f13590cf5a7dedb786b6206fea8bae2e11952997a8
4
+ data.tar.gz: 893b177b07d44e9815c657d588e8851a01d29a433b0b2c241ee13d7930d70d1e
5
5
  SHA512:
6
- metadata.gz: 39c62a0d0aeff0a7f595b9864bcb067f79cc70e3e8296c72a1e3b0243b8d1f97d0b4ab502420c5934db51736cb474af01d6013e259d4c3e30eecc1eade1044df
7
- data.tar.gz: 0430a250c774e61977c0158377e9221ebcb59952b5c7018ec568c0d19b480d8d09b0aa73896a3af366fc06beafd86c4cccc15d4dea25670ba8def031acc8b8bb
6
+ metadata.gz: 70d95d0310ef51b4de48d76705f6dfd3f7646453ac27741f062eb837b6a861d972b6e30b78a0e442eb127194c72eb7a897ba7292e11a70da5fc07d9c58f50aeb
7
+ data.tar.gz: a553b2a0cb3a82a6123b7e26cc367d584c95ab542449babf759174b64b971f16959da9e762bc5e708857f38c127940a24c0247691b0f693b8ddf3b3a8aebb192
data/_sass/yefeme.scss CHANGED
@@ -385,7 +385,7 @@ img[data-blurhash] {
385
385
  background-size: cover;
386
386
  }
387
387
 
388
- img.blurhash-loading {
388
+ img[data-blurhash]:not(.blurhash-loaded) {
389
389
  color: transparent;
390
390
  }
391
391
 
data/assets/blurhash.js CHANGED
@@ -99,10 +99,9 @@
99
99
  if (!hash || !intrinsicWidth || !intrinsicHeight) return;
100
100
 
101
101
  function finishLoading() {
102
- image.classList.remove("blurhash-loading");
102
+ image.classList.add("blurhash-loaded");
103
103
  }
104
104
 
105
- image.classList.add("blurhash-loading");
106
105
  image.addEventListener("load", finishLoading, { once: true });
107
106
  image.addEventListener("error", finishLoading, { once: true });
108
107
  if (image.complete) finishLoading();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yefeme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yefim Vedernikoff