Skip to content

Commit

Permalink
Fix/responsivity journals (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanzeen authored Sep 25, 2024
1 parent a275966 commit bc80aba
Show file tree
Hide file tree
Showing 11 changed files with 696 additions and 248 deletions.
2 changes: 2 additions & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ body {
font-size: 62.5%;
font-weight: 400;
position: relative;
overflow-x: hidden;
}

.grid {
Expand Down Expand Up @@ -181,6 +182,7 @@ footer {
@import "./article.scss";
@import "./boletins.scss";
@import "./noticias.scss";
@import "./cards.scss";

// Com autenticação
@import "./pages/app/researcher/profile.scss";
Expand Down
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: 60%;
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: 70%;
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%);
}
}
}
}
77 changes: 77 additions & 0 deletions assets/css/cards.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.card-links {
@apply flex flex-wrap justify-center;


.card-item {
@apply flex flex-col justify-start items-start m-8;
width: 20.125rem;
height: 20.875rem;
border-radius: 8px;
box-sizing: border-box;
background: linear-gradient(180deg, rgba(16, 16, 16, 0) 0%, #101010 100%);

a {
@apply flex flex-col mt-auto;
}

img {
@apply absolute;
z-index: -10;
height: inherit;
width: inherit;
}

h3 {
padding-left: 1rem;
}

p {
text-wrap: wrap;
margin-top: 0.5rem;
padding: 0 1rem 1.5rem 1rem;
}

button {
width: 100%;
padding: 0 1rem 1.5rem 0;
background-color: transparent;

p {
display: inline-flex;
width: inherit;

&:hover {
text-decoration: underline;
}
}
}
}
}

@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;
}
}
}

}
2 changes: 1 addition & 1 deletion assets/css/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -682,4 +682,4 @@
.nossas-equipes-container {
width: 1360px;
}
}
}
Loading

0 comments on commit bc80aba

Please sign in to comment.