Skip to content

Commit 948020c

Browse files
committed
Improved scroll behaviour, updated dependencies
1 parent fd6a4df commit 948020c

File tree

15 files changed

+634
-564
lines changed

15 files changed

+634
-564
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ This project adheres to [Semantic Versioning](https://semver.org) and follows th
66

77
---
88

9+
## [1.1.0] – 2025-10-05
10+
11+
### Added
12+
13+
- Scrolling indicators for dropdown menus (when no scrollbar is present)
14+
15+
### Changed
16+
17+
- Updated (dev) dependencies
18+
- Optimized scrollbar handling
19+
20+
### Fixed
21+
22+
- Improved scrolling lock when using overlays like the mobile menu
23+
24+
---
25+
926
## [1.0.0] – 2025-07-06
1027

1128
### Added

assets/scss/lib/global.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ html {
3636
}
3737

3838
&.has-scrollbar {
39-
::-webkit-scrollbar { width: var(--scrollbar-width); }
39+
::-webkit-scrollbar {
40+
width: auto;
41+
}
4042
}
4143

4244
&.has-no-scrollbar{

assets/scss/theme/layout.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ body {
3838
min-height: initial;
3939
background: white;
4040
}
41-
42-
body[style*='overflow: hidden'] > &,
43-
.menu-mobile + &,
44-
.ov + & {
45-
margin-right: var(--scrollbar-width);
46-
}
4741
}
4842

4943
#content-wrapper {

assets/scss/ui/navMain.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
}
139139

140140
menu {
141+
position: relative;
141142
display: flex;
142143
flex-direction: column;
143144
align-items: normal;
@@ -165,6 +166,47 @@
165166
max-height: 50vh;
166167
max-height: 50svh;
167168
}
169+
170+
&.has-scroll-up,
171+
&.has-scroll-down {
172+
&::before,
173+
&::after {
174+
@include transition('opacity');
175+
176+
content: '';
177+
position: fixed;
178+
display: block;
179+
width: 100%;
180+
height: 2em;
181+
top: 1em;
182+
left: 0;
183+
border-top-left-radius: var(--border-radius);
184+
border-top-right-radius: var(--border-radius);
185+
background-image: linear-gradient(to bottom, var(--color-contrast9), transparent);
186+
opacity: 0;
187+
}
188+
189+
&::after {
190+
top: auto;
191+
bottom: 0;
192+
border-radius: 0;
193+
border-bottom-right-radius: var(--border-radius);
194+
border-bottom-left-radius: var(--border-radius);
195+
background-image: linear-gradient(to top, var(--color-contrast9), transparent);
196+
}
197+
}
198+
199+
&.has-scroll-up {
200+
&::before {
201+
opacity: 0.3;
202+
}
203+
}
204+
205+
&.has-scroll-down {
206+
&::after {
207+
opacity: 0.3;
208+
}
209+
}
168210
}
169211

170212
[aria-expanded=true] + .menu-wrapper,

0 commit comments

Comments
 (0)