Skip to content

Commit

Permalink
chore: reworked code, removed unnecessary code and added variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Nov 28, 2023
1 parent e7a4073 commit 36208ad
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions src/theme/ItaliaTheme/Blocks/_bandiInEvidenceTemplate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
gap: 1.3rem;
-ms-grid-columns: 1fr 1.3rem 1fr 1.3rem 1fr;
grid-template-columns: 1fr 1fr 1fr;

.read-more a.read-more {
flex-direction: row;
}
}

.card-wrapper {
Expand Down Expand Up @@ -39,7 +43,7 @@
}

// smartphone
@media (max-width: 585px) {
@media (max-width: #{map-get($grid-breakpoints, sm)}) {
.bandi-in-evidence-cards-wrapper {
.card-wrapper {
width: 100%;
Expand All @@ -52,33 +56,17 @@

// tablet
.bandi-in-evidence-cards-wrapper {
@media (min-width: 767px) and (max-width: 1367px) {
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, xxl)}) {
grid-template-columns: auto auto;

div.read-more a.read-more {
flex-direction: row;
}
}

@media (min-width: 768px) and (max-width: 991px) {
@media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
gap: 1rem;
}

@media (min-width: 568px) and (max-width: 767px) {
@media (min-width: #{map-get($grid-breakpoints, sm)}) and (max-width: #{map-get($grid-breakpoints, md)}) {
display: block !important;
}

.bando-dati {
display: flex;
flex: 1;
flex-direction: column;
justify-content: flex-end;
}
@media (max-width: 991px) {
.read-more a.read-more {
flex-direction: row;
}
}
}

.bando-description {
Expand Down Expand Up @@ -131,9 +119,8 @@
bottom: 0;
padding-top: 0.75rem;

@media (max-width: 585px) {
@media (max-width: #{map-get($grid-breakpoints, sm)}) {
display: flex;
flex-direction: row;
align-items: center;
color: $analogue-1-a7;
font-size: 0.77778rem;
Expand All @@ -142,7 +129,7 @@
text-transform: uppercase;
}
}
@media (max-width: 585px) {
@media (max-width: #{map-get($grid-breakpoints, sm)}) {
margin-top: 0;
}
}
Expand Down

0 comments on commit 36208ad

Please sign in to comment.