Skip to content

Commit

Permalink
fix: scroll position on h2 .visually-hidden (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini authored Nov 9, 2023
1 parent 4fce154 commit 9356e6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/theme/ItaliaTheme/Views/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,16 @@ div.sticky-wrapper {
& > article.mt-5:first-of-type {
margin-top: 0 !important;
}

//gestione scroll per h2 con classe .visually-hidden: non devono avere il margine sopra altrimenti lo scroll si posiziona più in basso rispetto all'inizio del testo
.public-ui .h2,
.public-ui h2,
.h2,
h2 {
&.visually-hidden {
margin-top: 0 !important;
}
}
}

#view .it-carousel-wrapper .it-header-block .it-header-block-title h2.h4 {
Expand Down

0 comments on commit 9356e6a

Please sign in to comment.