Place: Add @1x desktop illustration size, Optimize responsive
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
@include breakpoint (sm) {
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
padding: pxVW(208) 0 pxVW(320);
|
||||
padding: pxVW(240) 0 pxVW(288); // 528
|
||||
height: auto;
|
||||
max-height: none;
|
||||
}
|
||||
@@ -165,9 +165,12 @@
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
max-width: 1920px;
|
||||
height: 100%;
|
||||
transform: translateX(-50%);
|
||||
transform-origin: 0 0;
|
||||
background-image: var(--url-mobile);
|
||||
background-position: 0 0;
|
||||
background-repeat: no-repeat;
|
||||
@@ -177,22 +180,9 @@
|
||||
@include breakpoint (sm) {
|
||||
background-image: var(--url-desktop);
|
||||
}
|
||||
|
||||
// Gradient on top
|
||||
&:before {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 60vw;
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(180deg, rgba($color-primary, 0%) 0%, $color-primary 100%);
|
||||
|
||||
@include breakpoint (lg) {
|
||||
height: 50%;
|
||||
min-height: 600px;
|
||||
}
|
||||
@media (min-width: $screen-sm) and (-webkit-min-device-pixel-ratio: 2),
|
||||
(min-width: $screen-sm) and (min-resolution: 192dpi) {
|
||||
background-image: var(--url-desktop-2x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user