Skip to content

Commit

Permalink
fix: responsivity in cards
Browse files Browse the repository at this point in the history
  • Loading branch information
juanzeen committed Sep 21, 2024
1 parent fa4fe40 commit 70cf474
Show file tree
Hide file tree
Showing 4 changed files with 439 additions and 68 deletions.
38 changes: 24 additions & 14 deletions assets/css/boletins.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
.boletim-wrapper {
.links-item {
width: 15.5rem;
.card-links{
border-radius: none;

.card-item {
width: 16.5rem;
}
}
}

@media (min-width: 530px) and (max-width: 770px){

.boletim-wrapper {
.links-item {
@apply flex flex-col justify-start items-start m-8;
width: 52%;
height: 16rem;
.card-links{
border-radius: 8px;
box-sizing: border-box;
background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, #101010 100%);
.card-item {
@apply flex flex-col justify-start items-start m-8;
width: 50%;
height: 16rem;
border-radius: 8px;
box-sizing: border-box;
background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, #101010 100%);
}
}
}
}
@media (min-width: 350px) and (max-width: 529px){

.boletim-wrapper {
.links-item {
@apply flex flex-col justify-start items-start m-8;
width: 60%;
height: 13rem;
.card-links{
border-radius: 8px;
box-sizing: border-box;
background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, #101010 100%);
.card-item {
@apply flex flex-col justify-start items-start m-8;
width: 70%;
height: 15rem;
border-radius: 8px;
box-sizing: border-box;
background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, #101010 100%);
}
}
}
}
28 changes: 28 additions & 0 deletions assets/css/cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,31 @@
}
}
}

@media (max-width: 768px) and (min-width: 577px){
.card-links{
.card-item{
width: 70%;
height: 16rem;

img{
border-radius: 8px;
}
}
}

}

@media (min-width: 350px) and (max-width: 576px){
.card-links{
.card-item{
width: 80%;
height: 14rem;

img{
border-radius: 8px;
}
}
}

}
Loading

0 comments on commit 70cf474

Please sign in to comment.