-
-
Save pollenjp/bec895d0dd33e44e152a35b0f82e58ed 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
.grid li.page-list-item a .icon { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
max-height: 50%; | |
max-width: inherit; | |
transform: translate(-50%, 0%); | |
} | |
.grid li.page-list-item a .icon img | |
{ | |
margin: auto; | |
object-fit: contain; | |
width: inherit; | |
height: inherit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment