Created
June 26, 2023 14:39
-
-
Save stembrino/238eea90d53cd82308f1ddcf6db85e4a 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
:root { | |
--icon-size: 50px; | |
} | |
.icon { | |
display: block; | |
margin-bottom: 10px; | |
height: var(--icon-size); | |
width: var(--icon-size); | |
border-radius: 10000px; | |
background-repeat: no-repeat; | |
background-position: 50%; | |
background-size: cover; | |
/*object-fit: cover;*/ /*if you're using the tag <img>*/ | |
opacity: 1; | |
overflow: hidden; | |
} | |
#test1 { | |
background-image: url("./assets/icons/test1.png"); | |
} | |
#test2 { | |
background-image: url("./assets/icons/test2.jpg"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment