Skip to content

Commit 9b53613

Browse files
committed
src/style.scss: Fix sticky sidebar
Fix sticky sidebar when scrolling for mobile screen width as well. Remove .fr-sidemenu--sticky-full-height because it is neither used nor existant. Signed-off-by: Louis Vigneras <louis.vigneras@code.gouv.fr>
1 parent a1f808b commit 9b53613

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/style.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,21 @@ body:not(.close) {
2323
}
2424

2525
.sidebar {
26-
@extend .fr-sidemenu--sticky-full-height;
2726
background-color: var(--background-default-grey);
2827
height: calc(100vh - 38px);
2928
overflow: auto;
3029
overflow-y: scroll;
30+
position: sticky;
31+
top: 0;
3132

3233
@media (max-width: $mobile-phone-width) {
3334
height: 100%;
3435
left: 0;
3536
position: fixed;
3637
top: 0;
3738
z-index: 1000;
39+
position: sticky;
40+
top: 0;
3841
}
3942

4043
.app-name, .sidebar-nav {

0 commit comments

Comments
 (0)