Lines Matching +full:fixed +full:- +full:top
2 * Copyright (c) 2020-2023, The Godot community
4 * SPDX-License-Identifier: CC-BY-3.0
22 // The max-height offset when the logo is completely visible.
24 // The max-height offset when the logo is completely hidden.
26 … // The distance between the two max-height offset values above; used for intermediate values.
27 const menuHeightOffset_diff = (menuHeightOffset_default - menuHeightOffset_fixed);
40 const $sidebar = $('.wy-side-scroll');
41 const $search = $sidebar.children('.wy-side-nav-search');
42 const $menu = $sidebar.children('.wy-menu-vertical');
52 $search.css('margin-top', `-${scrollTopPixels}px`);
53 $menu.css('margin-top', `${menuTopMargin}px`);
54 $menu.css('max-height', `calc(100% - ${menuHeightOffset_fixed}px)`);
57 // Between the top of the page and the threshold we calculate intermediate values
59 $search.css('margin-top', `-${currentScroll}px`);
60 $menu.css('margin-top', `${menuTopMargin + (scrollTopPixels - currentScroll)}px`);
63 const scrolledPercent = (scrollTopPixels - currentScroll) / scrollTopPixels;
65 $menu.css('max-height', `calc(100% - ${offsetValue}px)`);
67 $menu.css('max-height', `calc(100% - ${menuHeightOffset_default}px)`);
78 … const menuScrollBottom = menuElement.scrollHeight - (menuScrollTop + menuElement.offsetHeight);
80 // As the navigation is scrolled we add a shadow to the top bar hanging over it.
82 $search.addClass('fixed-and-scrolled');
84 $search.removeClass('fixed-and-scrolled');
88 $search.addClass('fixed');
107 $search.removeClass('fixed');
109 $search.css('margin-top', `0px`);
110 $menu.css('margin-top', `0px`);
111 $menu.css('max-height', 'initial');
118 const mediaQuery = window.matchMedia('only screen and (min-width: 769px)');