Attempt to prevent header flicker on mobile
This commit is contained in:
parent
d55eebb151
commit
128e51b4d2
1 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,8 @@ section.hero {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
display: block;
|
display: block;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
|
||||||
@include dark-mode {
|
@include dark-mode {
|
||||||
background-color: $dark-mode-background;
|
background-color: $dark-mode-background;
|
||||||
|
@ -30,8 +32,6 @@ section.hero {
|
||||||
|
|
||||||
&.stuck {
|
&.stuck {
|
||||||
box-shadow: $shadow;
|
box-shadow: $shadow;
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-body {
|
.hero-body {
|
||||||
|
|
Loading…
Reference in a new issue