Skip to content

Commit

Permalink
Add clamp for responsiveness in blog-cards
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmeValera committed Jun 16, 2024
1 parent da2b30d commit 0a02cab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sass/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@
.blog-title {
color: $color-fg-secondary;
font-family: Andika;
font-size: 1.5rem;
font-size: clamp(1.2rem, 3.8vw, 1.7rem);
margin-bottom: 1rem;
}

.blog-card-details {
display: flex;
justify-content: space-between;
gap: 2rem;
gap: clamp(1rem, 4.4vw, 2rem);

.card-description {
color: $color-fg;
opacity: 0.9;
font-weight: light;
font-size: 1rem;
font-size: clamp(0.7rem, 2.2vw, 1rem);
}

.card-date {
color: $color-fg-secondary;
min-width: fit-content;
font-family: Andika;
font-size: 0.9rem;
font-size: clamp(0.6rem, 2vw, 0.9rem);;
}
}
}
Expand Down

0 comments on commit 0a02cab

Please sign in to comment.