/
eb
/
Tesla
Обзор
Документация
Войти
/
eb
/
Tesla
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
public/css/style.css
429 строк
7 KB
EvgeniyBudaev
finish
14 мар 2020, 10:52
14 мар 2020, 10:52
457cc3b
Код
Авторство
О чём код?
html { box-sizing: border-box; } *, *::after, *::before { box-sizing: inherit; } a { color: #fff; text-decoration: none; } body { background-color: #0b0b0b; color: #fff; font-size: 24px; line-height: 28px; /* font-family: 'Roboto', sans-serif; */ font-family: "Roboto Condensed", sans-serif; font-weight: 400; } /* header */ .header { height: 100vh; position: absolute; z-index: 5; background: rgba(11, 11, 11, 0.3); left: 0; right: 0; } .container { padding: 0 15px; max-width: 1230px; margin: 0 auto; } .header-top { display: flex; justify-content: space-between; } .logo { padding-top: 36px; margin-bottom: 29px; } .header-btn { width: 60px; height: 60px; border: 1px solid #fff; margin-top: 31px; background: rgba(255, 255, 255, 0.1); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; } .header-btn div { width: 36px; height: 2px; background-color: #fff; margin: 5px 0; } .header-content__title { font-family: "Roboto", sans-serif; font-size: 96px; line-height: 112px; margin-bottom: 40px; } .header-content__text { width: 284px; margin-bottom: 25px; } .button { display: inline-block; border: 1px solid #fff; padding: 30px 62px; background: rgba(255, 255, 255, 0.15); transition: all 0.5s; } .button:hover { background-color: #690102; } /* sidebar */ .menu { background-color: #000; position: absolute; top: 0; left: -100%; width: 100%; transition: all 0.5s; z-index: 7; } .menu.active { left: 0; } .container-menu { position: relative; } .close-btn { width: 50px; height: 50px; background-color: #000; position: absolute; top: 31px; right: 15px; cursor: pointer; } .close-btn::after, .close-btn::before { content: ""; width: 70px; height: 2px; background-color: #fff; position: absolute; transform-origin: left; } .close-btn::after { transform: rotate(45deg); } .close-btn::before { transform: rotate(-45deg); bottom: -1px; } .menu__list { height: 100vh; display: flex; align-items: center; } .menu__list ul { list-style: none; } .menu__list a { font-size: 48px; line-height: 56px; font-weight: bold; padding: 30px 25px 14px 0; border-bottom: 3px solid #b70021; display: inline-block; min-width: 368px; transition: all.5s; } .menu__list a:hover { border-color: #fff; color: #b70021; transform: scale(1.2); margin-left: 37px; } /* end sidebar */ .slider__item { height: 100vh; background-repeat: no-repeat; background-size: cover; background-position: center top; } .slider .slick-dots button { width: 15px; height: 15px; border-radius: 50%; background-color: #0b0b0b; border: none; padding: 0; font-size: 0; cursor: pointer; outline: none; } .slider .slick-dots .slick-active button { background-color: #fff; } .slider .slick-dots li { display: inline-block; margin: 0 5px; } .slider .slick-dots { margin: -55px auto 0; position: relative; z-index: 6; max-width: 1230px; padding: 0 15px; } /* end header */ /* statistics */ .statistics { margin: 160px 0 100px; } .statistics-items { display: flex; justify-content: space-around; text-align: center; } .statistics-item__title { margin-bottom: 19px; } .statistics-item__num { font-size: 96px; line-height: 112px; margin-bottom: 7px; font-family: "Roboto", sans-serif; } .statistics-item__num span { font-size: 24px; line-height: 28px; } .statistics-item__descr { color: #b70021; } .statistics-item__num--speed span { display: inline-block; position: relative; } .statistics-item__num--speed span::before { content: "+"; position: absolute; top: -70px; } /* end statistics */ /* video */ .video { margin-bottom: 100px; } /* end video */ /* advantages */ .advantages-inner__row { margin-bottom: 100px; display: flex; justify-content: space-between; align-items: center; position: relative; } .advantages__title { line-height: 42px; color: #b70021; font-size: 36px; position: absolute; top: 0; } .advantages__title--bottom { right: 0; bottom: 0; top: auto; } .advantages__text { width: 303px; } .advantages__text ul { list-style: none; } .advantages-descr { max-width: 570px; width: 100%; } /* end advantages */ /* design */ .design__images { margin-bottom: 100px; } .design-row { display: flex; justify-content: space-between; margin-bottom: 100px; } .design-row__item { max-width: 570px; width: 100%; padding-right: 15px; display: flex; justify-content: space-between; } .design-row__item-num { color: #b70021; } .design-row__item-text { max-width: 430px; padding-top: 25px; } /* end design */ /* footer */ .footer { background-color: #690102; padding: 83px 0 20px; } .footer-btn { text-align: center; margin-bottom: 83px; } .footer-btn .button:hover { color: #0b0b0b; } .footer-copy { text-align: center; font-weight: 700; } .footer-copy ul { list-style: none; } .footer-copy li { display: inline-block; padding: 0 10px; position: relative; } .footer-copy li + li::before { content: "|"; position: absolute; left: -5px; } /* end footer */ /* MEDIA */ @media (max-width: 1220px) { .advantages__text { padding-left: 20px; } .design__images img { width: 100%; } } @media (max-width: 1020px) { .design-row { display: block; } .design-row__item { max-width: 100%; margin-bottom: 30px; padding-right: 0; } .design-row__item-text { max-width: 100%; } .design__images, .design-row { margin-bottom: 50px; } } @media (max-width: 930px) { .advantages-inner__row { flex-wrap: wrap; justify-content: center; } .advantages-descr { text-align: center; } .advantages__title { position: static; } .advantages__text { margin: 25px auto; padding-left: 0; } .advantages-inner__row { margin-bottom: 50px; } .advantages-inner__row--mobile .advantages-descr { order: -1; display: flex; flex-direction: column-reverse; } } @media (max-width: 820px) { .statistics-items { flex-wrap: wrap; } .statistics-item { padding: 50px; } } @media (max-width: 650px) { .advantages__img img { width: 100%; } .design-row__item-text { font-size: 20px; } } @media (max-width: 440px) { .header-content__title { font-size: 80px; margin-top: 20px; line-height: 90px; } } @media (max-width: 410px) { .logo img { width: 200px; } .header-content__title { font-size: 70px; margin-top: 20px; line-height: 85px; } .menu__list a { font-size: 30px; line-height: 44px; padding: 19px 10px 7px 0; display: block; min-width: 100%; } .menu__list ul { width: 100%; } .statistics { margin: 110px 0 50px; } .statistics-item { padding: 25px 0; } .button { padding: 20px 45px; } .video { margin-bottom: 50px; } body { font-size: 20px; line-height: 24px; } .advantages__text { width: 100%; } }