Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Last active June 27, 2022 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NyaGarcia/50a344a4eab10450ecb6fdc9bccb7718 to your computer and use it in GitHub Desktop.
Save NyaGarcia/50a344a4eab10450ecb6fdc9bccb7718 to your computer and use it in GitHub Desktop.
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 30px;
mat-card {
align-items: center;
display: flex;
flex: 1 0 20%;
flex-direction: column;
margin: 5px;
max-width: 200px;
img {
height: 200px;
object-fit: cover;
width: 100%;
}
&:hover {
box-shadow: 0 0 11px #cccccc;
cursor: pointer; ;
}
mat-card-content {
max-height: 50px;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment