|
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
|
|
|
|
|
.journey_calculator__input {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-right: em(105px);
|
|
|
|
|
padding: 0;
|
|
|
|
|
transition: padding 0.3s ease-in-out;
|
|
|
|
|
will-change: padding;
|
|
|
|
|
input[type="text"] {
|
|
|
|
|
@ -42,8 +42,13 @@
|
|
|
|
|
height: em(45px);
|
|
|
|
|
}
|
|
|
|
|
&.loaded {
|
|
|
|
|
padding-right: em(105px);
|
|
|
|
|
.journey_calculator__result {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
right: 0;
|
|
|
|
|
}
|
|
|
|
|
& ~ .journey_calculator__button {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&.error {
|
|
|
|
|
@ -60,7 +65,7 @@
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
right: em(-105px);
|
|
|
|
|
width: em(95px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
line-height: em(45px);
|
|
|
|
|
@ -71,7 +76,7 @@
|
|
|
|
|
font-family: $default_font_family;
|
|
|
|
|
color: darken($dark_gray, 20);
|
|
|
|
|
text-align: center;
|
|
|
|
|
transition: opacity 0.3s ease-in-out;
|
|
|
|
|
transition: opacity 0.3s ease-in-out, right 0.3s ease-in-out;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
&:after {
|
|
|
|
|
content: attr(data-duration) ' ' attr(data-label);
|
|
|
|
|
@ -101,4 +106,15 @@
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
display: none;
|
|
|
|
|
color: $red;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.journey_calculator__button {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
will-change: transform;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.3s ease-in-out;
|
|
|
|
|
span {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|