Browse Source

simplify article scss

Alexander Avery 4 months ago
parent
commit
2262e12184
  1. 59
      assets/sass/cards.scss

59
assets/sass/cards.scss

@ -13,65 +13,30 @@
}
}
.small-circle {
border-radius: 50%;
width: 250px;
height: 250px;
}
article {
display: flex;
background-color: $dark;
border-radius: 10px;
}
article.card {
height: 420px;
flex: 1 1 305px;
flex-direction: column;
overflow: hidden;
div.article-info-container, div.article-image {
overflow: hidden;
flex: 1;
img {
height: 50%;
width: 100%;
object-fit: cover;
}
div.article-info {
box-sizing: border-box;
padding: 25px;
height: 200px;
div {
margin: auto 16px;
display: flex;
flex-direction: column;
a.article-title {
flex: 2;
display: flex;
justify-content: space-between;
flex-direction: column;
text-decoration: none;
color: $font-color;
}
}
}
.circle {
border-radius: 50%;
}
.article-link {
text-decoration: none;
color: $font-color;
}
article.card-alternate {
justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
gap: 40px;
div {
padding: 16px;
}
img {
width: 250px;
height: 250px;
border-radius: 50%;
}
p {
max-width: 500px;
}
}

Loading…
Cancel
Save