summary refs log tree commit diff stats
path: root/resources
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-06-10 23:13:14 +0530
committerAndinus <andinus@nand.sh>2022-06-10 23:16:27 +0530
commitbef200b4669f058ce43ec9c0a3583de7fac558e3 (patch)
tree0b25b603e5ba3f46c2c8396cfcf036923771471e /resources
parent3a443f9380478ab30a2ba7dc173f5e6de880de03 (diff)
downloadcrater-bef200b4669f058ce43ec9c0a3583de7fac558e3.tar.gz
Add alt tags to images, fix flash of unstyled content
- FOUC: On firefox, maybe the '@import' rule caused this.

Also tried out lightGallery.js for lightbox, it doesn't work with text
& anyways, it's buggy with bricks.js & you have to request license key.
Diffstat (limited to 'resources')
-rw-r--r--resources/css/style.css2
-rw-r--r--resources/js/gallery.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/css/style.css b/resources/css/style.css
index 0c51bab..a380707 100644
--- a/resources/css/style.css
+++ b/resources/css/style.css
@@ -1,5 +1,3 @@
-@import 'colors.css';
-
 ::selection {
     background-color: var(--bg-hl-alt-intense);
 }
diff --git a/resources/js/gallery.js b/resources/js/gallery.js
index ae0fd90..bab4d1d 100644
--- a/resources/js/gallery.js
+++ b/resources/js/gallery.js
@@ -24,7 +24,9 @@ const instance = Bricks({
 instance
     .on('pack',   () => console.log('ALL grid items packed.'))
     .on('update', () => console.log('NEW grid items packed.'))
-    .on('resize', size => console.log('The grid has be re-packed to accommodate a new BREAKPOINT.', size));
+    .on('resize', size => console.log(
+        'The grid has be re-packed to accommodate a new BREAKPOINT.', size
+    ));
 
 // start it up, when the DOM is ready. note that if images are in the
 // grid, you may need to wait for document.readyState === 'complete'.