Adapt a little bit Location's page houses styling
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
}
|
}
|
||||||
.info {
|
.info {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 16px;
|
margin-top: 12px;
|
||||||
color: $color-lightgray;
|
color: $color-lightgray;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -45,6 +45,9 @@
|
|||||||
transition-delay: var(--delay);
|
transition-delay: var(--delay);
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
@include bp (md) {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,18 +74,19 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 2s var(--ease-quart);
|
transition: opacity 2s var(--ease-quart);
|
||||||
|
|
||||||
@include bp (sm) {
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
picture {
|
picture {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
@include bp (md) {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
width: calc(100% + 1px);
|
width: calc(100% + 2px);
|
||||||
height: calc(100% + 1px);
|
height: calc(100% + 2px);
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
transform: scale3d(1.125, 1.125, 1.125);
|
transform: scale3d(1.125, 1.125, 1.125);
|
||||||
transition: transform 2s var(--ease-quart), opacity 1.2s var(--ease-quart);
|
transition: transform 2s var(--ease-quart), opacity 1.2s var(--ease-quart);
|
||||||
@@ -90,11 +94,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Scale down image on hover
|
// Scale down image on hover
|
||||||
a:hover {
|
@media (hover: hover) {
|
||||||
img {
|
a:hover {
|
||||||
opacity: 0.6;
|
img {
|
||||||
transform: scale3d(1.03, 1.03, 1.03) !important;
|
opacity: 0.6;
|
||||||
transition-duration: 1.2s;
|
transform: scale3d(1.03, 1.03, 1.03) !important;
|
||||||
|
transition-duration: 1.2s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
// Intro
|
// Intro
|
||||||
.location-page__intro {
|
&__intro {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: $color-primary;
|
background: $color-primary;
|
||||||
|
|
||||||
@@ -71,6 +71,11 @@
|
|||||||
.city {
|
.city {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|
||||||
|
@include bp (md) {
|
||||||
|
margin-right: auto;
|
||||||
|
padding-left: min(400px, 16vw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -187,9 +192,12 @@
|
|||||||
// House
|
// House
|
||||||
.house {
|
.house {
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-bottom: 86px;
|
margin-bottom: 72px;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
margin-bottom: 88px;
|
||||||
|
}
|
||||||
|
@include bp (md) {
|
||||||
margin-bottom: 120px;
|
margin-bottom: 120px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user