Fixed position for fullscreen menu to make it behave better when activated on a scrolled-down viewport

This commit is contained in:
Kuba Orlik 2024-05-17 22:13:46 +02:00
parent f321afaa4f
commit 1752324f29

View File

@ -4,7 +4,7 @@
--fulscreen-menu-inner-height: calc( --fulscreen-menu-inner-height: calc(
var(--fullscreen-menu-height) - 2 * var(--fullscreen-menu-padding) var(--fullscreen-menu-height) - 2 * var(--fullscreen-menu-padding)
); );
position: absolute; position: fixed;
background-color: white; background-color: white;
padding: var(--fullscreen-menu-padding); padding: var(--fullscreen-menu-padding);
padding-right: 0; /* for scrollbar to be close to the screen edge */ padding-right: 0; /* for scrollbar to be close to the screen edge */