Skip to content

Commit

Permalink
Keep the menu always in sight
Browse files Browse the repository at this point in the history
Having to scroll long ways just to reach the main menu items is pointless. So let's keep the menu always on top of the visible content.
  • Loading branch information
vinzv committed May 5, 2020
1 parent f1f604c commit 8fbbbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav id="global-navbar" class="navbar navbar-expand-md navbar-toggleable navbar-dark <%= @colour ? "bg-#{@colour}" : "bg-dark" %>">
<nav id="global-navbar" class="navbar navbar-expand-md navbar-toggleable navbar-dark <%= @colour ? "bg-#{@colour}" : "bg-dark" %> sticky-top">

<a class="navbar-brand" href="https://www.opensuse.org/">
<%= image_tag "chameleon/logo/logo-white.svg", width: 48, height: 30, class: "d-inline-block align-top", alt: "openSUSE Logo" %>
Expand Down

0 comments on commit 8fbbbbf

Please sign in to comment.