Skip to content

Commit

Permalink
Added sticky navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
VDeltaGabriel committed Sep 4, 2024
1 parent 871299e commit 01e1422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header class="site-header" role="banner">
<div class="wrapper">
<div class="wrapper navbar">
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
Expand Down
5 changes: 4 additions & 1 deletion website/_sass/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ pre {
}
}


.navbar {
position: sticky;
top: 0;
}

/**
* Wrapper
Expand Down

0 comments on commit 01e1422

Please sign in to comment.