File: //var/www/quadcode-jobs/resources/sass/components/_locations.scss
.locations {
position: relative;
min-height: clamp(60rem, 100vh, 100vh);
background-color: rgba(#0F161D, 60%);
background-image: linear-gradient(rgba(#0F161D, 60%), rgba(#0F161D, 60%)), var(--locations-bg, none);
background-size: cover;
margin-bottom: 28px;
&__video-wrap {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
&:after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
background: rgba(19, 44, 63, .6);
}
video {
position: absolute;
height: 100%;
width: 100%;
object-fit: cover;
&.animate {
animation: fadeIn .5s forwards;
}
}
}
&__inner {
position: relative;
display: grid;
grid-template-columns: 4fr 8fr;
gap: 1.4rem;
height: 100%;
padding-top: 9.8rem;
color: var(--color-text-light);
padding-bottom: 20px;
@include breakpoint-down('lg') {
grid-template-columns: 2.6fr 8fr;
gap: 6rem;
}
@include breakpoint-down('sm') {
display: flex;
flex-direction: column-reverse;
padding-left: 0;
padding-right: 2px;
padding-bottom: 40px;
padding-top: 65px;
}
}
&__header {
color: var(--color-text-light);
font-size: var(--typo-headline);
h1 {
display: inline-flex;
flex-direction: column;
font-weight: 400;
@include breakpoint-down('lg') {
font-size: 68px;
}
@include breakpoint-down('sm') {
font-weight: 600;
font-size: 42px;
//max-width: 155px;
line-height: 42px;
}
span {
font-weight: 700;
@include breakpoint-down('sm') {
font-weight: 600;
}
}
}
}
&__selector-marker {
position: absolute;
top: 0;
left: -8px;
display: none;
height: 30px;
width: 4px;
background: var(--color-highlight);
transition: all .2s;
@include breakpoint-down('sm') {
display: none !important;
}
}
&__selector {
position: relative;
display: flex;
flex-flow: column;
align-items: flex-start;
margin-top: 50px;
@include breakpoint-down('lg') {
margin-top: 40px;
}
@include breakpoint-down('sm') {
display: flex;
column-count: auto;
column-gap: initial;
margin-top: 0;
}
}
&__place {
display: flex;
flex-direction: column;
padding: 15px 0;
transition: padding-left .2s;
&.is-current {
padding-left: 2rem;
@include breakpoint-down('sm') {
padding-left: 0;
}
}
}
&__city {
font-size: var(--typo-subtitle);
font-weight: 600;
}
&__country {
font-size: var(--typo-caption);
}
&__page {
display: grid;
grid-template-columns: auto 1fr;
gap: 2rem;
align-content: start;
margin-top: min(13.6vh, 13.6rem);
padding-bottom: min(16.5vh, 16.5rem);
@include breakpoint-down('lg') {
gap: 2.3rem;
margin-top: 20px;
}
@include breakpoint-down('sm') {
padding-bottom: 0;
}
}
&__header {
grid-column-end: span 2;
margin-bottom: max(10vh,7rem);
@include breakpoint-down('lg') {
margin-bottom: 35px;
span {
color: var(--color-highlight);
}
}
@include breakpoint-down('sm') {
margin-bottom: 0;
min-height: 190px;
}
}
&__positions-num {
display: inline-flex;
justify-content: center;
align-items: center;
width: 7rem;
height: 7rem;
background: rgba(#EDF2F5, 20%);
color: var(--color-text-light);
font-size: var(--typo-headline2);
font-weight: 600;
@include breakpoint-down('sm') {
display: none;
}
&:empty {
background: transparent;
}
&--active {
background: var(--color-highlight);
}
}
&__positions-link {
}
&__positions-location {
display: flex;
flex-flow: column;
max-width: 18rem;
align-self: center;
font-size: 16px;
@include breakpoint-down('sm') {
display: none;
}
&-message {
display: none;
}
&-link {
display: none;
}
&-pos {
position: relative;
width: max-content;
padding-right: 27px;
display: block;
&:after {
content: "";
width: 16px;
height: 12px;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 0;
opacity: 1;
background: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='15.7491724px' height='12px' viewBox='0 0 15.7491724 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Earrow_categories@3x%3C/title%3E%3Cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='arrow_categories' stroke='%23F1162F' stroke-width='2'%3E%3Cg id='Group-2' transform='translate(7.874586, 6.000000) rotate(-90.000000) translate(-7.874586, -6.000000) translate(1.874586, -1.874586)'%3E%3Cpolyline id='Stroke-1' transform='translate(6.000000, 12.374586) scale(1, -1) rotate(-90.000000) translate(-6.000000, -12.374586) ' points='3 6.37458621 9 12.3745862 3 18.3745862'%3E%3C/polyline%3E%3Cpath d='M-2,7.86803499 L13.7491724,7.88113743 L-2,7.86803499 Z' id='Stroke-3' transform='translate(5.874586, 7.874586) scale(1, -1) rotate(-90.000000) translate(-5.874586, -7.874586) '%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: cover;
}
&:empty {
&:after {
opacity: 0;
}
}
}
// show message for non empty js elem
.js-location-pos:not(:empty) + &-message {
display: block;
order: -1;
}
}
&__description {
grid-column-end: span 2;
max-width: 40rem;
font-size: 16px;
@include breakpoint-down('sm') {
display: none;
}
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}