From 430b46b5cdc85ef1618e812a554bd7ce4bb69276 Mon Sep 17 00:00:00 2001
From: peter_rabbit <pierrejarriges@gmail.com>
Date: Mon, 1 Feb 2021 14:58:44 +0100
Subject: [PATCH] feat:sticky header

---
 public/style/style.css | 5 +++++
 src/style.scss         | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/public/style/style.css b/public/style/style.css
index d65be3e..51c7fbe 100644
--- a/public/style/style.css
+++ b/public/style/style.css
@@ -97,6 +97,11 @@ main .image-carousel .carousel-bullets .bullet.active {
 }
 main header {
   width: 100%;
+  background-color: white;
+  position: sticky;
+  position: -webkit-sticky;
+  top: 0;
+  z-index: 10;
 }
 main header nav {
   display: flex;
diff --git a/src/style.scss b/src/style.scss
index 621f723..1ab369b 100644
--- a/src/style.scss
+++ b/src/style.scss
@@ -98,6 +98,11 @@ main {
 
     header {
         width: 100%;
+        background-color: white;
+        position: sticky;
+        position: -webkit-sticky;
+        top: 0;
+        z-index: 10;
         nav {
             display: flex;
             align-items: center;
-- 
GitLab