mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
feat: add accessible image lightbox for post images (#654)
* feat: add accessible image lightbox for post images * fix: iOS scroll lock, backdrop blur, dvh image sizing for lightbox * feat: add vanilla pinch-to-zoom to image lightbox * fix: improve touch event handling and scaling logic in image lightbox --------- Co-authored-by: satnaing <satnaingdev@gmail.com>
This commit is contained in:
@@ -47,6 +47,14 @@
|
||||
@apply border-border mx-auto border;
|
||||
}
|
||||
|
||||
img[role="button"] {
|
||||
@apply cursor-zoom-in;
|
||||
|
||||
&:focus-visible {
|
||||
@apply outline-2 outline-offset-2 outline-dashed;
|
||||
}
|
||||
}
|
||||
|
||||
figcaption {
|
||||
@apply opacity-75;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user