forked from Hostea/website
feat: make nav sticky
parent
39701c516b
commit
1411d17745
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue