Created
June 22, 2022 21:30
-
-
Save gndx/a7dc22ce7d5364d7f57c5fefeafa67cc to your computer and use it in GitHub Desktop.
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
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400&display=swap"); | |
body { | |
margin: 0; | |
padding: 0; | |
color: #3c484e; | |
font-family: "Open Sans", sans-serif; | |
padding: 10px; | |
grid-template-columns: minmax(auto, 768px); | |
display: grid; | |
justify-content: center; | |
} | |
header { | |
margin: 1em 0; | |
} | |
.Items { | |
grid-template-columns: repeat(2, 1fr); | |
grid-gap: 1.5rem; | |
grid-row-gap: 1.5em; | |
display: grid; | |
} | |
.Card { | |
text-decoration: none; | |
box-shadow: 8px 14px 38px rgba(39, 44, 49, 0.06), | |
1px 3px 8px rgba(39, 44, 49, 0.03); | |
border-radius: 5px; | |
margin: 0 0 20px 0; | |
display: block; | |
animation-duration: 4s; | |
animation-name: fade; | |
} | |
.Card img { | |
width: 100%; | |
height: auto; | |
border-radius: 5px 5px 0 0; | |
} | |
.Card h2 { | |
font-size: 18px; | |
font-weight: 300; | |
padding: 5px 10px; | |
display: flex; | |
justify-content: space-between; | |
} | |
@keyframes fade { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment