Last active
April 26, 2020 15:39
-
-
Save krasenslavov/9aecac7a3f893070cd6d7ca5b1e4f700 to your computer and use it in GitHub Desktop.
Overwrite and extend Gutenberg gallery block. Visit blog post https://bit.ly/34OMvdz
This file contains hidden or 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
.wp-block-gallery label { | |
cursor: pointer; | |
} | |
.gallery-item-modal, | |
input[type="checkbox"] { | |
display: none; | |
} | |
input[type="checkbox"]:checked + .gallery-item-modal { | |
display: flex; | |
} | |
.gallery-item-modal { | |
align-items: center; | |
background-color: rgba(0, 0, 0, .8); | |
bottom: 0; | |
justify-content: center; | |
left: 0; | |
position: fixed; | |
right: 0; | |
top: 0; | |
z-index: 100000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment