Skip to content
Snippets Groups Projects
  • Martyn Welch's avatar
    0505add0
    Align menu to section heading · 0505add0
    Martyn Welch authored and Martyn Welch's avatar Martyn Welch committed
    
    The site menu is quite long. When we are in a section, scroll the menu to
    the relevant section.
    
    This is a bit hacky due to the navbar at the top and the way the theme is
    constructed. In order to avoid issues with the scrolling distance being
    incorrectly calculated (due to reflow of text as the side bar gets wider)
    animate as a drop-down instead of appearing from the side.
    
    Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
    0505add0
    History
    Align menu to section heading
    Martyn Welch authored and Martyn Welch's avatar Martyn Welch committed
    
    The site menu is quite long. When we are in a section, scroll the menu to
    the relevant section.
    
    This is a bit hacky due to the navbar at the top and the way the theme is
    constructed. In order to avoid issues with the scrolling distance being
    incorrectly calculated (due to reflow of text as the side bar gets wider)
    animate as a drop-down instead of appearing from the side.
    
    Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>