feat: make nav sticky

master
Aravinth Manivannan 2022-04-26 14:56:30 +05:30
parent 39701c516b
commit 1411d17745
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
@import "../components/_link"; @import "../components/_link";
header {
z-index: 5;
position: sticky;
top: 0;
background-color: #fff;
}
.nav__container { .nav__container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -12,7 +19,7 @@
.nav__home-btn { .nav__home-btn {
font-weight: bold; font-weight: bold;
// font-family: monospace, monospace; // font-family: monospace, monospace;
margin: auto; margin: auto;
margin-left: -10px; margin-left: -10px;
} }