cn.status.im/scss/slide--one.scss

757 lines
12 KiB
SCSS

.slide.slide--one .slide__inner {
margin: 30px 0 0 0;
height: 780px;
background-color: #4957B8;
background-image: url(../img/new-site/dot.svg);
box-shadow: 0px 10px 14px 0px rgba(79,90,166,0.35);
border-radius: 10px;
transform: translate3d(0, 0, 0);
transition: transform .6s ease, opacity .3s ease;
}
.tagline {
display: flex;
flex-wrap:wrap;
justify-content:center;
position: absolute;
z-index: 200;
text-align: center;
width: 440px;
left: 90px;
top: 260px;
}
.tagline .tagline__title {
font-family:$PostGroteskMedium;
color: $colorWhite;
font-size: 25px;
line-height: 35px;
margin: 0 0 5px 0;
opacity: 0;
transform: translate3d(0, 20px, 0);
transition: transform .6s ease, opacity .6s ease;
transition-delay: .1s;
}
.shown .tagline__title {
opacity: 1;
transform: translate3d(0, 0, 0);
}
.tagline .tagline__body {
color: $colorWhite;
opacity: .6;
font-size: 18px;
line-height: 25px;
margin: 0 0 20px 0;
opacity: 0;
transform: translate3d(0, 20px, 0);
transition: transform .6s ease,opacity .6s ease;
transition-delay: .2s;
}
.shown .tagline__body {
opacity: .6;
transform: translate3d(0, 0, 0);
}
.tagline__form {
opacity: 0;
transform: translate3d(0, 20px, 0);
transition: transform .6s ease,opacity .6s ease;
transition-delay: .3s;
}
.shown .tagline__form {
opacity: 1;
transform: translate3d(0, 0, 0);
}
.email-form {
display: flex;
width: 400px;
position: relative;
}
.email-form.email-form--error .email-form__inner{
animation-duration: .6s;
animation-fill-mode: both;
animation-name: shakeIt;
animation-timing-function: ease
}
.email-form a {
color: rgba(255, 255, 255, 1);
font-family: $PostGroteskMedium;
}
.email-form__responces {
color: rgba(255, 255, 255, .8);
width: 100%;
text-align: left;
margin: 10px 0 0 0;
}
.email-form__error-message {
opacity: 0;
transform: translate3d(0, 10px, 0);
transition: transform .2s ease, opacity .2s ease;
}
.email-form__error-message.email-form__error-message--shown {
opacity: 1;
transform: translate3d(0, 0, 0);
}
.email-form__success-message {
width: 100%;
padding: 15px;
font-size: 15px;
border-radius: 8px;
text-align: left;
background-color: rgba(255, 255, 255, .12);
color: rgba(255, 255, 255, 1);
line-height: 22px;
opacity: 0;
transform: translate3d(0, 10px, 0);
transition: transform .2s ease, opacity .2s ease;
}
.email-form__success-message.email-form__success-message--shown {
opacity: 1;
transform: translate3d(0, 0, 0);
}
.email-form__inner {
display: flex;
width: 400px;
position: relative;
}
.email-form__input {
height: 45px;
line-height: 45px;
border-radius: 8px !important;
}
.email-form__input--email {
text-align: left;
background-color: rgba(255, 255, 255, .12);
color: rgba(255, 255, 255, 1);
width: 215px;
padding: 0 15px;
margin: 0 10px 0 0;
font-family: 'PostGrotesk-Book', sans-serif;
box-sizing: border-box;
transition: background-color .2s ease;
font-weight: 400;
font-size: 15px;
}
input.email-form__input--email:disabled {
color: rgba(255, 255, 255, .4);
background-color: rgba(255, 255, 255, .12);
opacity: 1;
}
.email-form--valid .email-form__input--email {
color: rgba(255, 255, 255, .4);
background-image: url(../img/new-site/icon_valid.png);
background-size: 24px;
background-repeat: no-repeat;
background-position: right 10px center;
}
.email-form__input--email:focus {
background-color: rgba(255, 255, 255, .2);
color: rgba(255, 255, 255, 1);
}
.email-form__input--email::-webkit-input-placeholder {
color: rgba(255, 255, 255, .6);
}
.email-form__input--email::-moz-placeholder {
color: rgba(255, 255, 255, .6);
}
.email-form__input--email:-ms-input-placeholder {
color: rgba(255, 255, 255, .6);
}
.email-form__input--email:-moz-placeholder {
color: rgba(255, 255, 255, .6);
}
.email-form input[type="submit"] {
width: 175px;
flex-shrink: 0;
flex-grow: 0;
box-shadow: 0px 10px 10px 0px rgba(80,92,174,0.30);
}
.email-form input[type="submit"]:disabled {
cursor: default;
color: rgba(255, 255, 255, .5);
}
.email-form input[type="submit"]:disabled:hover {
background-color: rgba(104, 192, 248, 1);
}
.tagline__footer {
text-align: center;
color: white;
margin: 0 auto;
padding: 25px;
width: 200px;
font-size: 16px;
line-height: 24px;
opacity: 0;
transform: translate3d(0, 20px, 0);
transition: transform .6s ease,opacity .6s ease;
transition-delay: .3s;
display: none;
}
.shown .tagline__footer {
opacity: 1;
transform: translate3d(0, 0, 0);
}
.tagline__footer-inner {
transition: opacity .2s ease;
}
.tagline__footer.tagline__footer--hidden .tagline__footer-inner {
opacity: 0;
}
.phones {
width: 476px;
height: 636px;
position: absolute;
right: -20px;
top: 106px;
}
.phone-wrap {
position: absolute;
transform: translate3d(0, 0, 0);
}
.phone {
position: absolute;
opacity: 0;
transform: translate3d(0, 40px, 0);
transition: transform .6s ease, opacity .3s ease;
}
.phone.phone--iphone {
transition-delay: .3s
}
.phone.phone--android {
transition-delay: .4s;
transform: translate3d(0, 40px, 0);
}
.shown .phone {
opacity: 1;
transform: translate3d(0, 0, 0);
}
.phone-wrap--iphone {
width: 292px;
height: 610px;
left: 0;
top: -3px;
z-index: 500
}
.phone-wrap--android {
width: 290px;
height: 574px;
left: 186px;
top: 62px;
z-index: 400
}
.features-wrap {
position: relative;
top: -139px;
width: 1180px;
height: 300px;
}
.features {
display: flex;
width: 100%;
height: 100%;
align-items: flex-start;
justify-content: space-between;
padding: 20px 80px;
background: $colorWhite;
box-shadow: 0px -2px 18px 0px rgba(72,89,102,0.25);
border-radius: 10px;
// opacity: 0;
// transform: translate3d(0, 40px, 0);
// transition: transform .6s ease, opacity .6s ease;
// transition-delay: .8s;
}
//
// .shown .features {
// opacity: 1;
// transform: translate3d(0, 0, 0);
// }
.button.button--secondary {
color: #6370CA;
background-color: rgba(99, 112, 202, .1);
box-shadow: none;
}
.button.button--more {
padding: 0 35px;
transform: translate3d(-50%, 0, 0);
position: absolute;
bottom: 30px;
left: 50%;
transition: transform .2s ease, background-color .2s ease;
}
.button.button--secondary:hover {
background-color: rgba(99, 112, 202, .2);
}
.button.button--more:active {
transform: translate3d(-50%, 0, 0) scale(.99)
}
.features__item {
text-align: center;
width: 240px;
}
.features__icon {
display: inline-block;
width: 130px;
height: 60px;
background-size: 130px;
background-repeat: no-repeat;
}
.features__item--send .features__icon {
background-image: url(../img/new-site/send_icon.png);
}
.features__item--browse .features__icon {
background-image: url(../img/new-site/browse_icon.png);
}
.features__item--buy .features__icon {
background-image: url(../img/new-site/buy_icon.png);
}
.features__title {
font-family:$PostGroteskMedium;
font-size: 17px;
line-height: 20px;
margin: 15px 0 12px 0;
}
.features__description {
color: #70808D;
font-size: 15px;
line-height: 25px;
}
@media (max-width: 1220px) {
.features-wrap {
width: 1040px;
}
.features {
padding: 20px 50px;
}
.tagline {
left: 65px
}
.phones {
right: 40px;
}
}
@media (max-width: 1140px) {
.slide.slide--one {
margin: 20px 20px 0 20px;
}
.slide.slide--one .slide__inner {
margin: 0 0 0 0;
width: 100%;
}
.features-wrap {
width: 100%
}
.features {
width: auto;
margin: 0 20px;
}
.tagline {
justify-content: flex-start;
text-align: left;
left: 40px;
}
}
@media (max-width: 1030px) {
.tagline {
width: 300px;
top: 230px;
}
.email-form__success-message {
}
.email-form.email-form--valid input[type="submit"] {
display: none;
}
.email-form {
flex-direction: column;
width: 300px;
}
.email-form__inner {
flex-direction: column;
width: 300px;
}
.email-form__input--email {
width: 100%;
margin: 0 0 10px 0;
}
.email-form input[type="submit"] {
width: 100%;
}
}
@media (max-width: 960px) {
.tagline,
.email-form,
.email-form__inner {
width: 280px;
}
.features-wrap {
width: 100%;
}
.features {
padding: 20px
}
}
@media (max-width: 922px) {
.slide.slide--one .slide__inner {
height: 693px;
}
.tagline {
width: 260px;
top: 180px;
}
.email-form,
.email-form__inner {
width: 260px;
}
.phones {
width: 404px;
height: 548px;
top: 91px;
}
.phone-wrap--iphone {
width: 247px;
height: 516px;
}
.phone-wrap--android {
width: 246px;
height: 486px;
left: 149px;
}
.the-iphone {
width: 252px;
height: 516px;
}
.the-iphone-dot {
top: 26px;
width: 6px;
height: 6px;
}
.the-iphone-line {
top: 38px;
height: 5px;
}
.the-iphone-screen {
width: 229px;
height: 405px;
background-size: 229px;
}
.the-iphone-button {
width: 30px;
height: 30px;
bottom: 13px;
}
.the-android {
width: 246px;
height: 486px;
}
.the-android-screen {
width: 222px;
height: 394px;
background-size: 222px;
}
.the-android-button {
bottom: 21px;
}
.features__item {
margin: 0 15px;
}
}
@media (max-width: 840px) {
.slide.slide--one .slide__inner {
height: 670px;
}
.tagline {
left: 30px;
}
.tagline,
.email-form,
.email-form__inner {
width: 246px;
}
.tagline .tagline__title {
font-size: 21px;
line-height: 35px;
margin: 0 0 0 0;
}
.tagline .tagline__body {
font-size: 16px;
line-height: 24px;
margin: 0 0 10px 0;
}
.features {
margin: 0 15px;
}
.features-wrap {
height: 260px;
}
.features__icon {
width: 95px;
height: 44px;
background-size: 95px;
}
.features__title {
font-size: 15px;
line-height: 20px;
margin: 5px 0;
}
.features__description {
font-size: 14px;
line-height: 20px;
}
.phones {
right: 20px;
top: 69px;
}
}
@media (max-width: 767px) {
input.email-form__input--email {
font-size: 16px;
}
.slide.slide--one {
margin: 0;
}
.slide.slide--one .slide__inner {
height: auto;
border-radius: 0;
}
.tagline {
position: static;
flex-direction: column;
width: auto;
left: 0;
top: 0;
margin: 110px 0 0px 0;
padding: 0 20px;
}
.tagline,
.email-form,
.email-form__inner {
width: auto;
}
.email-form.email-form--error .email-form__inner{
animation: none;
}
.email-form__responces {
margin-top: 5px;
}
.tagline .tagline__body {
margin: 0 0 10px 0;
}
.tagline__footer {
display: block;
margin-top: 24px;
}
.phones {
position: relative;
top: 0;
left: 0;
height: 340px;
width: auto;
max-width: 500px;
overflow: hidden;
margin: 0 auto;
}
.phone-wrap--iphone {
left: 10px;
transform: translate3d(0, 0, 0) !important;
}
.phone-wrap--android {
left: auto;
right: 10px;
transform: translate3d(0, 0, 0) !important;
}
.features-wrap {
top: 0;
height: auto;
}
.features {
margin: 0;
border-radius: 0;
height: auto;
flex-direction: column;
padding: 5px 20px 5px 10px;
}
.features__item {
width: auto;
text-align: left;
display: flex;
align-items: center;
margin: 0;
}
.features__title {
font-size: 16px;
line-height: 20px;
}
.features__icon {
width: 80px;
height: 80px;
flex-shrink: 0;
flex-grow: 0;
background-position: center center;
}
.features__item--send .features__icon {
background-size: 70px
}
.features-text {
margin: 0 0 0 10px;
padding: 25px 0;
border-bottom: 1px solid #EEF2F5;
}
.features__item:nth-child(3) .features-text {
border-bottom: none;
}
.button.button--more {
display: none;
}
}
@keyframes shakeIt {
0%, 100% {
transform: translate3d(0, 0, 0);
}
20%, 60% {
transform: translate3d(-4px, 0, 0);
}
40%, 80% {
transform: translate3d(4px, 0, 0);
}
}