mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Add photoswipe
This commit is contained in:
@@ -9,6 +9,8 @@ breadcrumb:
|
||||
- shop
|
||||
---
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://unpkg.com/photoswipe@5.4.4/dist/photoswipe.css">
|
||||
|
||||
<style type="text/css">
|
||||
:root {
|
||||
--shop-duration: 500ms;
|
||||
@@ -287,8 +289,9 @@ breadcrumb:
|
||||
|
||||
.shop-product-image {
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
cursor: zoom-in;
|
||||
overflow: hidden;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.shop-product-image img {
|
||||
@@ -298,7 +301,7 @@ breadcrumb:
|
||||
}
|
||||
|
||||
.shop-product-images:hover img {
|
||||
transform: scale(1.1);
|
||||
transform: scale(1.04);
|
||||
}
|
||||
|
||||
.shop-product-heading {
|
||||
@@ -496,4 +499,6 @@ breadcrumb:
|
||||
</div>
|
||||
|
||||
<script src="https://unpkg.com/@shopify/storefront-api-client@1.0.0/dist/umd/storefront-api-client.min.js"></script>
|
||||
<script src="https://unpkg.com/photoswipe@5.4.4/dist/umd/photoswipe.umd.min.js"></script>
|
||||
<script src="https://unpkg.com/photoswipe@5.4.4/dist/umd/photoswipe-lightbox.umd.min.js"></script>
|
||||
<script type="text/javascript" src="{{ site.url }}/assets/javascript/shop.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user