Created
January 17, 2023 20:11
-
-
Save sshastri/dd95cc919f2709520d6f12bfa9a1edf3 to your computer and use it in GitHub Desktop.
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
<style> | |
/* | |
Lightbox credit: Alex Rosenkranz | |
https://gist.github.com/arosenkranz/3359c65fbfda36f17f622ff624b74aea | |
*/ | |
.lightbox { | |
display: none; | |
position: fixed; | |
justify-content: center; | |
align-items: center; | |
z-index: 999; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
padding: 1rem; | |
background: rgba(0, 0, 0, 0.8); | |
} | |
.lightbox:target { | |
display: flex; | |
} | |
.lightbox img { | |
max-height: 100% | |
} | |
</style> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment