Photos styling fixes

This commit is contained in:
2020-02-20 19:02:40 +01:00
parent 1e1b2fc1fb
commit 52e65ed8df
2 changed files with 19 additions and 11 deletions

View File

@@ -31,11 +31,8 @@
@include breakpoint (md) {
position: sticky;
z-index: 10;
top: 16px;
height: 100%;
}
@include breakpoint (xl) {
top: 32px;
height: 100%;
}
}
@@ -56,7 +53,9 @@
.photo {
position: relative;
z-index: 4;
margin-bottom: 104px;
margin-bottom: 88px;
// transition: transform 1000ms $ease-quart, opacity 1000ms $ease-quart;
// will-change: transform, opacity;
@include breakpoint (sm) {
margin-bottom: 120px;
@@ -66,6 +65,12 @@
&:last-child {
margin-bottom: 0;
}
// Hidden photo
// &.hidden {
// opacity: 0;
// translate: translate(0, 10%) scale(0.92);
// }
}
@@ -108,8 +113,10 @@
// Number
&__image--number {
transform: translate(-50%, var(--translate));
will-change: transform;
@include breakpoint (sm) {
transform: translate(-50%, var(--translate));
will-change: transform;
}
}
}