This commit is contained in:
oitsjustjose 2020-03-02 23:55:58 -05:00
commit 98abe339fa
6 changed files with 154 additions and 8 deletions

View file

@ -1,3 +1,6 @@
$cardColor: #2f2f2f;
$foreground: #dddddd;
.grid {
display: grid;
align-items: center;
@ -5,3 +8,42 @@
grid-gap: 2rem;
grid-auto-flow: dense;
}
.cards {
display: grid;
flex-direction: row;
justify-content: center;
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
grid-gap: 2rem;
grid-auto-flow: dense;
.card {
background-color: $cardColor;
color: $foreground;
box-shadow: 0 0 10px 0 rgba(darken($cardColor, 10%), 0.95);
padding: 1rem;
border-radius: 8px;
border: 2px solid lighten($cardColor, 10%);
cursor: pointer;
transition: all ease-in-out 150ms;
&:hover {
margin-top: -10px;
margin-bottom: 10px;
transition: all ease-in-out 150ms;
}
.header {
text-align: center;
margin-block-start: 0;
padding-bottom: 1rem;
border-bottom: 1px solid lighten($cardColor, 10%);
}
.content {
overflow: hidden;
}
}
}