Skip to content

Commit

Permalink
fix: changed styles for BandiInEvidenceTemplate for tablet size (#412)
Browse files Browse the repository at this point in the history
* fix: changed styles for BandiInEvidenceTemplate for tablet size

* chore: order of sizes in media query

* chore: added RELEASE.md info

* chore: reworked code, removed unnecessary code and added variables

---------

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
sabrina-bongiovanni and pnicolli authored Nov 28, 2023
1 parent 4331b59 commit fd7688a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
### Fix

- Migliorata l'accessibilità del modulo di valutazione del sito che si trova in fondo ad ogni pagina.
- Il blocco Elenco con variazione Bandi viene visualizzato correttamente anche su tablet.

## Versione 10.4.2 (23/11/2023)

Expand Down
25 changes: 16 additions & 9 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 @@ -51,13 +55,17 @@
}

// tablet
@media (min-width: 586px) and (max-width: 1367px) {
.bandi-in-evidence-cards-wrapper {
.bandi-in-evidence-cards-wrapper {
@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: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
gap: 1rem;
}

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

Expand Down Expand Up @@ -111,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 @@ -122,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 fd7688a

Please sign in to comment.