Merged in fix/sticky-hero (pull request #55)
fix: make hero sticky Approved-by: Arvid Norlin
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
.wrapper {
|
.wrapper {
|
||||||
|
position: relative;
|
||||||
background: #f3f2f1;
|
background: #f3f2f1;
|
||||||
display: block;
|
display: block;
|
||||||
padding-bottom: 50px;
|
padding-bottom: 50px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.wrapper {
|
.wrapper {
|
||||||
z-index: 0;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.picture {
|
.picture {
|
||||||
@@ -24,3 +24,11 @@
|
|||||||
aspect-ratio: auto;
|
aspect-ratio: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 950px) {
|
||||||
|
.wrapper {
|
||||||
|
overflow: hidden;
|
||||||
|
position: sticky;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user