☠️ RESET for v2
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
// Form
|
||||
.form {
|
||||
label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
// Group item
|
||||
// &__group {
|
||||
// }
|
||||
|
||||
// Input group
|
||||
&__inputgroup {
|
||||
position: relative;
|
||||
|
||||
button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 10px;
|
||||
transform: translateY(-50%);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
// Hover
|
||||
&:hover {
|
||||
.input__text {
|
||||
@extend %input__text--active;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Variants
|
||||
*/
|
||||
// Light version
|
||||
&--light {
|
||||
// Text input
|
||||
.input__text {
|
||||
&, &::placeholder {
|
||||
color: $color-text;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,191 +0,0 @@
|
||||
// Globe
|
||||
.globe {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 100vw;
|
||||
height: 180vw;
|
||||
min-height: 700px;
|
||||
max-height: 1472px;
|
||||
overflow: hidden;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
height: 130vw;
|
||||
}
|
||||
@include breakpoint (md) {
|
||||
height: 112vw;
|
||||
}
|
||||
@include breakpoint (xl) {
|
||||
height: 100vw;
|
||||
}
|
||||
|
||||
// DEBUG //
|
||||
// background: rgba(red, 0.2);
|
||||
// &:after {
|
||||
// content: "";
|
||||
// display: block;
|
||||
// position: absolute;
|
||||
// top: 50%;
|
||||
// left: 0;
|
||||
// background: blue;
|
||||
// width: 100%;
|
||||
// height: 2px;
|
||||
// margin-top: -1px;
|
||||
// }
|
||||
// END DEBUG //
|
||||
|
||||
/*
|
||||
** Partial globe
|
||||
*/
|
||||
&--part {
|
||||
overflow: hidden;
|
||||
height: 30vw;
|
||||
min-height: 300px;
|
||||
max-height: 500px;
|
||||
}
|
||||
|
||||
/*
|
||||
** Markers
|
||||
*/
|
||||
&__markers {
|
||||
z-index: 210;
|
||||
|
||||
// When dragging
|
||||
&.is-grabbing {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
// Marker
|
||||
.marker {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
padding: 4px;
|
||||
opacity: 1;
|
||||
will-change: transform;
|
||||
|
||||
// Dot
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: $color-secondary;
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
span {
|
||||
transition: color 0.4s $ease-quart, opacity 0.3s $ease-inout;
|
||||
}
|
||||
|
||||
// Hover glow effect
|
||||
&.hover {
|
||||
&:before {
|
||||
animation: globeMarkerPulse 1s;
|
||||
}
|
||||
}
|
||||
|
||||
// Label
|
||||
&__label {
|
||||
position: absolute;
|
||||
bottom: -16px;
|
||||
left: 16px;
|
||||
color: transparent;
|
||||
}
|
||||
// Location city
|
||||
&__city {
|
||||
font-family: $font-serif;
|
||||
font-size: rem(18px);
|
||||
line-height: 1;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
font-size: rem(24px);
|
||||
}
|
||||
}
|
||||
// Location country
|
||||
&__country {
|
||||
display: block;
|
||||
opacity: 0.8;
|
||||
font-family: $font-sans;
|
||||
font-size: rem(8px);
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
font-size: rem(10px);
|
||||
}
|
||||
}
|
||||
|
||||
// Active
|
||||
&.is-active {
|
||||
&, span {
|
||||
opacity: 1;
|
||||
}
|
||||
.marker {
|
||||
&__city {
|
||||
color: $color-secondary;
|
||||
}
|
||||
&__country {
|
||||
color: $color-text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Is light
|
||||
&.is-light {
|
||||
&.is-active {
|
||||
.marker {
|
||||
&__city {
|
||||
color: #fff;
|
||||
}
|
||||
&__country {
|
||||
color: #d2b7e4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Left positioned
|
||||
&.is-left {
|
||||
.marker {
|
||||
&__label {
|
||||
left: auto;
|
||||
right: 32px;
|
||||
}
|
||||
&__country {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Marker is close to another one
|
||||
// Show the marker infos only on hover
|
||||
&.is-close {
|
||||
// Dot
|
||||
&:before {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
}
|
||||
// Label
|
||||
.marker__label {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
// Show labels on hover
|
||||
&:hover {
|
||||
.marker__label {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
// Location
|
||||
.location {
|
||||
position: relative;
|
||||
margin-bottom: 48px;
|
||||
|
||||
&, a * {
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
a {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Flag image
|
||||
img {
|
||||
display: block;
|
||||
width: 32px;
|
||||
height: auto;
|
||||
margin: 0 auto;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
// City
|
||||
&__city {
|
||||
font-family: $font-serif;
|
||||
font-size: rem(32px);
|
||||
color: $color-secondary;
|
||||
|
||||
@include breakpoint (md) {
|
||||
font-size: rem(48px);
|
||||
}
|
||||
}
|
||||
|
||||
// Masks
|
||||
.mask-city {
|
||||
height: 40px;
|
||||
margin: 16px 0 12px;
|
||||
|
||||
@include breakpoint (md) {
|
||||
height: 64px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
}
|
||||
.mask-country {
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
// Badge
|
||||
.badge {
|
||||
margin-top: 16px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin-top: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
// Hover
|
||||
&:hover {
|
||||
.location__city {
|
||||
color: $color-tertiary;
|
||||
}
|
||||
|
||||
&:after {
|
||||
opacity: 1;
|
||||
transform: scale(1) translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
|
||||
// Shape on hover
|
||||
&:after {
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: scale(0.85) translate(-50%, -50%) translateZ(0);
|
||||
transform-origin: 0 0;
|
||||
display: block;
|
||||
width: 184px;
|
||||
height: 184px;
|
||||
background: rgba($color-lightpurple, 0.3);
|
||||
border-radius: 50%;
|
||||
transition: transform 0.3s $ease-quart, opacity 0.3s $ease-quart;
|
||||
will-change: transform;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
width: 216px;
|
||||
height: 216px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
// Newsletter
|
||||
.newsletter {
|
||||
background-color: $color-primary-dark;
|
||||
padding: 56px 0;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
padding: 96px 0;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
@include breakpoint (md) {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: $color-secondary;
|
||||
}
|
||||
|
||||
// Text
|
||||
&__text {
|
||||
max-width: 400px;
|
||||
margin: 0 auto 32px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
@include breakpoint (md) {
|
||||
margin-left: 0;
|
||||
margin-right: 48px;
|
||||
margin-bottom: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 16px;
|
||||
|
||||
@include breakpoint (md) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Form
|
||||
.form {
|
||||
min-width: 270px;
|
||||
max-width: 320px;
|
||||
margin: 0 auto;
|
||||
|
||||
@include breakpoint (md) {
|
||||
min-width: 320px;
|
||||
max-width: 440px;
|
||||
margin: 48px 0 0;
|
||||
}
|
||||
|
||||
// Title (if existing)
|
||||
h2 {
|
||||
margin-bottom: 24px;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Notice
|
||||
&__notice {
|
||||
margin-top: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Variants
|
||||
*/
|
||||
// Centered column mode
|
||||
&--column {
|
||||
max-width: 360px;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
background: none;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
max-width: 444px;
|
||||
}
|
||||
|
||||
// Text
|
||||
.newsletter__text {
|
||||
max-width: 440px;
|
||||
margin: 0 0 48px;
|
||||
text-align: center;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
margin-bottom: 72px;
|
||||
}
|
||||
@include breakpoint (md) {
|
||||
margin-bottom: 96px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Light version
|
||||
&--light {
|
||||
background: none;
|
||||
|
||||
.newsletter__notice {
|
||||
p {
|
||||
color: rgba($color-text, 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,188 +0,0 @@
|
||||
.photo {
|
||||
/*
|
||||
** Location
|
||||
*/
|
||||
&__location {
|
||||
margin-bottom: 32px;
|
||||
|
||||
@media (max-width: $screen-md) {
|
||||
padding: 0;
|
||||
}
|
||||
@include breakpoint (sm) {
|
||||
margin-bottom: 56px;
|
||||
}
|
||||
|
||||
// Street name
|
||||
h2 {
|
||||
text-align: left;
|
||||
|
||||
@include breakpoint (xs) {
|
||||
font-size: rem(40px);
|
||||
}
|
||||
}
|
||||
.line {
|
||||
overflow: hidden;
|
||||
margin: -12px 0 -16px;
|
||||
padding: 12px 0;
|
||||
display: block;
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
display: block;
|
||||
will-change: transform;
|
||||
}
|
||||
}
|
||||
p {
|
||||
color: $color-lightgray;
|
||||
margin-top: 16px;
|
||||
will-change: opacity;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Image
|
||||
*/
|
||||
&__image {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
|
||||
@include breakpoint (xs) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// Alignment (left or right for list view)
|
||||
.align {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 1180px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
@media (min-aspect-ratio: 16/8) {
|
||||
max-width: 976px;
|
||||
}
|
||||
@media (min-aspect-ratio: 16/10) {
|
||||
max-width: 1024px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Image itself
|
||||
&__picture {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: block;
|
||||
width: 100%;
|
||||
border-radius: 0;
|
||||
background-color: #fff;
|
||||
box-shadow: 0 8px 18px rgba(#715E4E, 0.2);
|
||||
user-select: none;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
// Overlay
|
||||
&:after {
|
||||
opacity: 0;
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background-color: $color-primary;
|
||||
pointer-events: none;
|
||||
transition: opacity 150ms $ease-inout;
|
||||
}
|
||||
|
||||
// Hover
|
||||
&:hover {
|
||||
cursor: zoom-in;
|
||||
|
||||
&:after {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Date (on the side)
|
||||
&__date {
|
||||
display: block;
|
||||
margin-top: 16px;
|
||||
padding: 0 pxVW(128);
|
||||
font-size: rem(14px);
|
||||
color: $color-lightgray;
|
||||
|
||||
@include breakpoint (sm) {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
left: calc(100% + 30px);
|
||||
bottom: 0;
|
||||
transform: rotate(270deg);
|
||||
transform-origin: 0 0;
|
||||
white-space: nowrap;
|
||||
line-height: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Photo number
|
||||
&__number {
|
||||
position: absolute;
|
||||
bottom: -80px;
|
||||
right: 24px;
|
||||
font-family: $font-serif-extra;
|
||||
color: rgba($color-tertiary, 0.5);
|
||||
font-size: rem(124px);
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
display: block;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
@include breakpoint (sm) {
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
right: 8%;
|
||||
transform: translate(0, -25%);
|
||||
font-size: pxVW(300);
|
||||
}
|
||||
@include breakpoint (md) {
|
||||
top: 50%;
|
||||
right: 0;
|
||||
bottom: auto;
|
||||
transform: translate(26.5vw, -50%);
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
}
|
||||
@include breakpoint (lg) {
|
||||
transform: translate(28vw, -50%);
|
||||
}
|
||||
@include breakpoint (xxl) {
|
||||
font-size: rem(300px);
|
||||
transform: translate(70%, -50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user