Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(image): add image lightgallery
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 24, 2020
1 parent fbfcbae commit 72a2e9b
Show file tree
Hide file tree
Showing 50 changed files with 478 additions and 353 deletions.
1 change: 1 addition & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ featuredImagePreview: ""

toc: false
autoCollapseToc: true
lightgallery: true
math: false
comment: true
---
Expand Down
33 changes: 21 additions & 12 deletions assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,35 @@

figure {
text-align: center;
}

.image-caption:not(:empty) {
min-width: 20%;
max-width: 80%;
display: inline-block;
padding: .625rem;
margin: 0 auto;
border-bottom: 1px solid #d9d9d9;
font-size: .875rem;
color: #969696;
line-height: 1.7;
.image-caption:not(:empty) {
min-width: 20%;
max-width: 80%;
display: inline-block;
padding: .625rem;
margin: 0 auto;
border-bottom: 1px solid #d9d9d9;
font-size: .875rem;
color: #969696;
line-height: 1.7;
}

a.lightgallery:hover img {
transform: scale(1.02);
}
}

img {
display: block;
max-width: 100%;
max-width: 90%;
height: auto;
margin: 0 auto;
overflow: hidden;
transition: all 0.2s ease-in-out;
}

.lazyloading {
object-fit: none;
}

blockquote {
Expand Down
1 change: 1 addition & 0 deletions assets/css/lib/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
1 change: 1 addition & 0 deletions assets/css/lib/lightgallery/lightgallery.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion assets/js/lib/VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[email protected]
[email protected]
lazysizes@5.1.2
lazysizes@5.2.0
[email protected]
[email protected]
[email protected]
Expand All @@ -9,3 +9,4 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected] [email protected] [email protected]
4 changes: 2 additions & 2 deletions assets/js/lib/lazysizes/lazysizes.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/js/lib/lazysizes/ls.native-loading.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 72a2e9b

Please sign in to comment.