diff --git a/src/components/GlobalStyles.astro b/src/components/GlobalStyles.astro index 1129d81..ea6b863 100644 --- a/src/components/GlobalStyles.astro +++ b/src/components/GlobalStyles.astro @@ -264,6 +264,23 @@ color_set({ html.is-animating .transition-swup-fade { @apply opacity-0 translate-y-4 } + + /* PhotoSwipe */ + .pswp__button { + @apply transition bg-black/40 hover:bg-black/50 active:bg-black/60 flex items-center justify-center mr-0 w-12 h-12 !important; + } + .pswp__button--zoom, .pswp__button--close { + @apply mt-4 rounded-xl active:scale-90 !important; + } + .pswp__button--zoom { + @apply mr-2.5 !important; + } + .pswp__button--close { + @apply mr-4 !important; + } + .custom-md img, #post-cover img { + @apply cursor-zoom-in + } } @keyframes fade-in-up { diff --git a/src/components/misc/ImageWrapper.astro b/src/components/misc/ImageWrapper.astro index b6742f0..0682c92 100644 --- a/src/components/misc/ImageWrapper.astro +++ b/src/components/misc/ImageWrapper.astro @@ -32,7 +32,7 @@ if (isLocal) { const imageClass = 'w-full h-full object-cover'; const imageStyle = `object-position: ${position}` --- -