fix(sw-398): moved logic for disable scroll in mobile and fixed issue that page is scrolling when toggling languageswitcher

This commit is contained in:
Pontus Dreij
2024-09-18 12:41:40 +02:00
parent 2849c69c52
commit efb8d278cd
4 changed files with 35 additions and 19 deletions

View File

@@ -123,6 +123,7 @@ html,
body {
margin: 0;
padding: 0;
scroll-behavior: smooth;
}
body {
@@ -130,6 +131,16 @@ body {
overflow-x: hidden;
}
body.overflow-hidden {
overflow: hidden;
}
@media screen and (min-width: 768px) {
body.overflow-hidden {
overflow: auto;
overflow-x: hidden;
}
}
ul {
padding-inline-start: 0;
margin-block-start: 0;