/
eb
/
gidrotsikly
Обзор
Документация
Войти
/
eb
/
gidrotsikly
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/style.css
799 строк
13 KB
Evgeniy Budaev
Initial commit
15 сен 2020, 19:11
15 сен 2020, 19:11
9e7f795
Код
Авторство
О чём код?
html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } a { text-decoration: none; color: inherit; display: inline-block; } ul, li { margin: 0; padding: 0; list-style: none; } p { margin: 0; } h1, h2, h3, h4, h5, h6 { margin: 0; } body { color: #2F3035; font-size: 20px; line-height: 24px; font-family: 'SFProDisplay-Regular', sans-serif; overflow-x: hidden; min-width: 320px; } .container { /*ширина чистая 1170px*/ max-width: 1200px; padding: 0 15px; margin: 0 auto; } .header, .page-section { margin-bottom: 80px; } /*start header*/ .header__top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 122px; } .menu__item { display: inline-block; } .menu__item + .menu__item { padding-left: 50px; } .header__box { display: flex; } .menu__btn { display: none; } .header__address { margin-right: 60px; width: 265px; padding-left: 30px; position: relative; } .header__address::before { content: ''; position: absolute; background-image: url(../images/icon-address.svg); width: 30px; height: 30px; left: 0; top: -10px; } .menu-mobile__list { width: 243px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); transform: translateX(-100%); transition: all .3s; position: absolute; z-index: 10; background-color: #fff; } .menu-mobile__list--active { transform: translateX(0%); } .menu-mobile__item { position: relative; border-bottom: 1px solid rgba(0, 0, 0, 0.15); } .menu-mobile__link { display: block; padding-left: 53px; padding-top: 36px; } .menu-mobile__img { position: absolute; left: 11px; bottom: 0; } .menu__mobile-lineWrapper { display: none; } .user-list { margin-right: 15px; display: flex; align-items: center; } .user-list__item { display: inline-block; padding-right: 10px; } .basket { position: relative; } .basket__num { position: absolute; font-family: 'SFProDisplay-Medium', sans-serif; font-weight: 500; color: #fff; font-size: 10px; line-height: 20px; width: 20px; height: 20px; background-color: #1C62CD; border-radius: 50%; text-align: center; bottom: -2px; right: -12px; } .menu-categories { background-color: #F0F0F4; display: flex; justify-content: space-around; align-items: center; min-height: 53px; } .menu-categories__link { transition: all .3s; font-weight: 400; padding: 15px 0 14px; position: relative; } .menu-categories__link::before { content: ''; position: absolute; width: 0; left: auto; right: 0; background-color: #1C62CD; height: 3px; bottom: -2px; transition: all .3s; } .menu-categories__link:hover { color: #000; } .menu-categories__link:hover::before { width: 100%; right: auto; left: 0; } /*end header*/ /* start banner-section*/ .banner-section__inner { display: flex; justify-content: space-between; } .banner-section__slider { max-width: 870px; } .banner-section__slider-btn, .product-slider__slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: transparent; border: none; margin: 0; padding: 0; z-index: 5; cursor: pointer; } .banner-section__slider-btnPrev { left: 20px; } .banner-section__slider-btnNext { right: 20px; } .slick-dots { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; } .slick-dots li { display: inline-block; padding: 0 5px; } .slick-dots button { padding: 0; font-size: 0; margin: 0; width: 11px; height: 11px; border: 1px solid #fff; border-radius: 50%; background: transparent; } .slick-dots .slick-active button { background-color: #fff; } .slick-active li button { background-color: #fff; } .sale-item { max-width: 265px; text-align: center; border: 1px solid #cdcdcd; border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; } .sale-item__top { display: flex; justify-content: space-between; align-items: flex-start; } .sale-item__info { color: #fff; background-color: #1c62cd; padding: 8px 20px; text-transform: uppercase; font-size: 12px; line-height: 15px; letter-spacing: 0.1rem; } .sale-item__price { text-align: right; } .price { font-family: 'Barlow', sans-serif; position: relative; } .sale-item__price-new { font-weight: 700; font-size: 27px; color: #1c62cd; line-height: 32px; margin-right: 6px; padding-right: 20px; } .sale-item__price-new::after { content: ''; background-image: url('../images/icon-price.svg'); position: absolute; right: 0; top: 8px; width: 15px; height: 18px; } .sale-item__price-old { font-weight: 400; font-size: 14px; line-height: 17px; color: #c4c4c4; margin-right: 15px; background-image: url('../images/old-line.svg'); padding: 2px 5px; background-repeat: no-repeat; display: inline-block; } .sale-item__price-old::after { content: ''; background-image: url('../images/icon-price-old.svg'); position: absolute; right: -10px; top: 8px; width: 8px; height: 10px; } .sale-item__footer { background-color: #f0f0f4; padding: 25px 20px; font-size: 18px; line-height: 21px; } .sale-item__footer span { color: #1c62cd; display: block; font-family: 'Barlow', sans-serif; font-weight: 700; } .sale-item__title { font-size: 18px; line-height: 21px; font-family: 'SFProDisplay-Bold', sans-serif; font-weight: 700; margin-bottom: 7px; } .banner-section__slider-img { object-fit: cover; min-height: 400px; } .sale-item__img { object-fit: contain; } /* end banner-section*/ /*start search*/ .search__tabs { margin-bottom: 25px; } .search__tabs-item { padding: 11px 26px 12px; } .search__tabs-item.tab--active { border-radius: 5px; background: #f0f0f4; font-weight: 700; font-family: 'SFProDisplay-Bold', sans-serif; } .tabs-content { display: none; } .tabs-content.tabs-content--active { display: block; } .search__content-form { display: flex; } .search__content-input { background: #f0f0f4; border-radius: 3px; padding: 5px 20px; border: none; line-height: 19px; font-size: 16px; width: 100%; } .search__content-input::placeholder { color: #656464; } .search__content-btn { font-weight: 700; font-size: 14px; line-height: 17px; letter-spacing: 0.12rem; text-transform: uppercase; color: #fff; font-family: 'SFProDisplay-Bold', sans-serif; background: #1c62cd; border-radius: 3px; padding: 17px 41px; border: none; margin-left: -3px; } /*end search*/ /*start categories*/ .categories__inner { display: flex; justify-content: space-between; flex-wrap: wrap; } .categories__item { margin-bottom: 30px; border: 1px solid #cdcdcd; border-radius: 3px; width: 370px; display: flex; padding: 20px 20px 16px; justify-content: space-between; transition: all .3s; } .categories__item:hover { box-shadow: 3px 3px 20px rgba(50, 50, 50, 0.25); } .categories__item-info { width: 50%; display: flex; flex-direction: column; justify-content: space-between; } .categories__item-img { text-align: center; width: 50%; } .categories__item-img img { max-width: 100%; } .categories__item-title { font-weight: 700; font-size: 23px; line-height: 28px; font-family: 'Barlow', sans-serif; transition: all .3s; } .categories__item:hover .categories__item-title { color: #1c62cd; } .categories__item-text { font-size: 14px; line-height: 17px; color: #c4c4c4; } .categories__item-text::after { content: url("../images/link-arrow.svg"); padding-left: 2px; } /*end categories*/ /*start products*/ .product-item__wrapper { position: relative; width: 271px; transition: all.3s; } .product-item__wrapper.product-item__wrapper--list { width: 100%; } .product-item { border: 1px solid #cdcdcd; border-radius: 3px; text-align: center; padding: 52px 20px 31px; min-height: 400px; width: 100%; transition: all.3s; } .product-item__title { font-weight: normal; padding: 14px 0 25px; font-size: 18px; line-height: 21px; } .product-item__favorite { position: absolute; top: 16px; right: 19px; width: 24px; height: 22px; background-color: transparent; border: none; outline: none; z-index: 5; } .product-item__favorite::before { content: ''; position: absolute; width: 24px; height: 22px; top: 0; left: 0; background-image: url('../images/icon-favorite.svg'); } .product-item__favorite--active::before { background-image: url('../images/icon-favorite-active.svg'); } .product-item__price { font-weight: bold; font-size: 30px; line-height: 36px; } .product-item__basket { position: absolute; width: 60px; height: 40px; background: #1c62cd; border-radius: 10px 0 0 0; border: none; bottom: 0; right: 0; padding-top: 7px; z-index: 10; } .product-item__hover-text { padding: 18px 21px; background-color: rgba(255, 255, 255, .9); box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); border-radius: 3px; position: absolute; display: inline-block; top: 30%; opacity: 0; transition: all .3s; } .product-item:hover .product-item__hover-text { opacity: 1; color: #2f3035; } .product-item:hover { box-shadow: 3px 3px 20px rgba(50, 50, 50, 0.25); color: #1c62cd; } .product-item:hover .product-item__notify-text { color: #2f3035; } .product-item--sale::before { content: 'SALE'; padding: 8px 15px; background-color: #1c62cd; position: absolute; left: 0; top: 0; text-transform: uppercase; color: #fff; font-size: 12px; line-height: 14px; letter-spacing: 0.07em; } .product-item__wrapper.product-item__not-available .product-item__price { display: none; } .product-item__notify-text { display: none; font-size: 18px; line-height: 21px; font-weight: 700; } .product-item__wrapper.product-item__not-available .product-item__notify-text { display: block; } .product-item__wrapper.product-item__not-available .product-item__basket { display: none; } .product-item__notify-link { display: none; } .product-item__wrapper.product-item__not-available .product-item__title { padding-bottom: 13px; } .product-item__wrapper.product-item__not-available .product-item__notify-link { display: block; position: absolute; bottom: 20px; left: 0; right: 0; font-size: 16px; line-height: 19px; text-align: center; color: #1c62cd; } .product-item__wrapper.product-item__not-available .product-item__notify-link span { border-bottom: 1px solid #1c62cd; } .products__title { font-weight: bold; font-size: 25px; line-height: 30px; font-family: 'Barlow', sans-serif; margin-bottom: 25px; } .products__tab + .products__tab { margin-left: 50px; } .products__tabs { margin-bottom: 25px; } .products__tab { padding-bottom: 10px; } .products__tab.tab--active { border-bottom: 2px solid #1c62cd; } .product-slider__slider-btnPrev { left: -40px; } .product-slider__slider-btnNext { right: -40px; } .slick-slide img { display: inline; } .product__more { text-align: center; margin: 35px 0 0; } .product__more-link { font-size: 15px; line-height: 18px; letter-spacing: 0.12em; text-transform: uppercase; background: #f0f0f4; padding: 16px 43px; } .product-slider .slick-dots { bottom: -30px; } .product-slider .slick-dots button { background-color: #c4c4c4; } .product-slider .slick-dots .slick-active button { background-color: #1c62cd; } /*end products*/ /*start footer*/ .footer { background: #f0f0f4; } .footer__bottom { padding: 46px 0 22px; display: flex; justify-content: center; } .footer__bottom-link { font-size: 10px; line-height: 12px; color: #48494D; margin: 0 40px; } .footer__top { padding-top: 43px; } .footer__top-inner { display: flex; justify-content: space-between; } .footer__top-newsLatter.footer__top-item { width: 295px; margin-right: 50px; } .footer__top-title { font-size: 14px; line-height: 17px; font-weight: bold; } .footer-form { margin-top: 34px; display: flex; justify-content: space-between; } .footer-form__input { background-color: #fff; border: none; font-size: 14px; line-height: 17px; } .footer-form__input::placeholder { color: #c4c4c4; } .footer-form__btn { text-transform: uppercase; padding: 10px 16px; border: none; background-color: #1c62cd; color: #fff; font-weight: 600; font-size: 11px; line-height: 13px; letter-spacing: 0.12em; font-family: 'SFProDisplay-Semibold', sans-serif; } .footer__top-item { width: 200px; } .footer-list { font-size: 14px; line-height: 22px; } .footer__top-item.footer__top-social { width: 250px; } .social-list { display: flex; align-items: center; height: 100%; } .social-list__item + .social-list__item { margin-left: 30px; } .footer__topDrop { pointer-events: none; } /*end footer*/