-
-
Notifications
You must be signed in to change notification settings - Fork 803
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gallery view layout and switch libraries (#793)
* Update gallery view layout and switch libraries * Tweak gallery grid layout
- Loading branch information
InfiniteTF
authored
Sep 11, 2020
1 parent
5cd7dca
commit 147f50d
Showing
6 changed files
with
74 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
/* stylelint-disable selector-class-pattern */ | ||
.react-photo-gallery--gallery { | ||
img { | ||
object-fit: contain; | ||
.gallery-card { | ||
&.card { | ||
padding: 0; | ||
padding-bottom: 1rem; | ||
} | ||
} | ||
/* stylelint-enable selector-class-pattern */ | ||
|
||
.gallery-card { | ||
padding: 0.5rem; | ||
.card-section { | ||
margin-top: auto; | ||
} | ||
|
||
&-image { | ||
object-fit: contain; | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
.gallery-image { | ||
&:hover { | ||
cursor: pointer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters