Skip to content

Commit

Permalink
remove PhotoSwipe (AdvisorySG#198)
Browse files Browse the repository at this point in the history
* remove HBS, CSS and JS references to PhotoSwipe
* use ghost's default assets for .kg components
  • Loading branch information
Hackin7 authored May 10, 2023
1 parent e18e3fb commit db08d76
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 593 deletions.
37 changes: 29 additions & 8 deletions assets/css/misc/kg.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
.kg-gallery-card,
.kg-gallery-card * {
box-sizing: border-box;
}

.kg-gallery-card,
.kg-image-card {
--gap: 1.2rem;
}

.kg-image-card:not(.kg-card-hascaption) + .kg-image-card,
.kg-image-card:not(.kg-card-hascaption) + .kg-gallery-card,
.kg-gallery-card:not(.kg-card-hascaption) + .kg-image-card,
.kg-gallery-card:not(.kg-card-hascaption) + .kg-gallery-card {
margin-top: var(--gap);
}

.kg-gallery-container {
display: flex;
flex-direction: column;
position: relative;
}

.kg-gallery-row {
Expand All @@ -9,21 +25,26 @@
justify-content: center;
}

.kg-gallery-image {
cursor: pointer;
}

.kg-gallery-image img {
display: block;
margin: 0;
width: 100%;
height: 100%;
}

.kg-gallery-row:not(:first-of-type) {
margin: 10px 0 0;
margin: var(--gap) 0 0;
}

.kg-gallery-image:not(:first-of-type) {
margin: 0 0 0 10px;
margin: 0 0 0 var(--gap);
}

@media (max-width: 600px) {
.kg-gallery-card,
.kg-image-card {
--gap: 0.6rem;
}
}

.kg-bookmark-card {
Expand Down
1 change: 0 additions & 1 deletion assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@import "members/auth.css";
@import "members/account.css";
@import "members/notification.css";
@import "vendor/pswp.css";
@import "misc/lazyload.css";
@import "misc/kg.css";
@import "misc/utils.css";
Expand Down
Loading

0 comments on commit db08d76

Please sign in to comment.