script header visible
All checks were successful
Deploy / Deploy to pre-production (push) Successful in 6s
All checks were successful
Deploy / Deploy to pre-production (push) Successful in 6s
This commit is contained in:
parent
430fd243fe
commit
08ebf7fc9e
11 changed files with 112 additions and 55 deletions
|
|
@ -8,7 +8,6 @@ body{
|
|||
|
||||
main{
|
||||
flex-grow: 1;
|
||||
margin-top: var(--header-h);
|
||||
padding: 0 var(--padding-body);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,21 +8,26 @@
|
|||
}
|
||||
|
||||
#site-header {
|
||||
position: fixed;
|
||||
left: var(--padding-body);
|
||||
top: 0px;
|
||||
|
||||
z-index: 900;
|
||||
--gap: 3ch;
|
||||
|
||||
width: calc(100vw - var(--padding-body)*2);
|
||||
width: 100vw;
|
||||
height: var(--header-h);
|
||||
background-color: var(--color-bg);
|
||||
// border-bottom: var(--border-light);
|
||||
padding: 0 var(--padding-body);
|
||||
|
||||
.site-header__inner{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-bottom: var(--border-light);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--gap);
|
||||
|
||||
a{
|
||||
text-decoration: none;
|
||||
|
|
@ -71,3 +76,13 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
#site-header.is-visible{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
& ~ main{
|
||||
margin-top: var(--header-h);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue