main-header - sticky
This commit is contained in:
parent
220a6f4ada
commit
8a720f67dd
2 changed files with 19 additions and 5 deletions
|
|
@ -1,8 +1,10 @@
|
|||
/* Nav */
|
||||
|
||||
.expanded-nav,
|
||||
.main-nav {
|
||||
.main-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background-color: #fff;
|
||||
z-index: 2;
|
||||
}
|
||||
/* Nav */
|
||||
|
||||
/* Expanded nav */
|
||||
|
||||
|
|
@ -15,7 +17,7 @@
|
|||
background-color: var(--color-brown-light);
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 8fr 1fr;
|
||||
transition: top 0.5s var(--curve-quick-slow);
|
||||
transition: top 0.4s var(--curve-quick-slow);
|
||||
padding: 2rem var(--space-m) 2rem 1rem;
|
||||
border-bottom: var(--border);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue