Photo: Fix number positioning and parallax effect
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-25 12:28:47 +01:00
parent 8f73e3d56e
commit 7d8285ac6d
4 changed files with 75 additions and 32 deletions

View File

@@ -54,7 +54,6 @@
position: relative;
z-index: 4;
margin-bottom: 88px;
overflow-x: hidden;
@include breakpoint (sm) {
margin-bottom: 120px;
@@ -67,6 +66,7 @@
}
/*
** List view
*/
@@ -79,9 +79,9 @@
// Photo
.photo {
@include breakpoint (sm) {
// Even photos
&:nth-child(even) {
// Even photos
&:nth-child(even) {
@include breakpoint (sm) {
// Location
.photo__location, h2 {
text-align: right;
@@ -96,11 +96,25 @@
right: 100%;
left: -30px;
}
&__number {
right: 77%;
left: auto;
text-align: right;
}
}
}
// Number
.photo__number {
@include breakpoint (sm) {
right: auto;
left: 8%;
}
@include breakpoint (md) {
right: auto;
left: 0;
transform: translate(-23vw, -50%);
}
@include breakpoint (lg) {
transform: translate(-26vw, -50%);
}
@include breakpoint (xl) {
transform: translate(-66%, -50%);
}
}
}
@@ -131,6 +145,7 @@
}
/*
** Grid view
*/
@@ -205,6 +220,7 @@
transform: none;
top: auto;
left: auto;
text-align: right;
}
&__date {
display: none;