diff --git a/css/_menu.sass b/css/_menu.sass deleted file mode 100644 index 18acd6a..0000000 --- a/css/_menu.sass +++ /dev/null @@ -1,2 +0,0 @@ -@import "_variables.sass" - diff --git a/css/style.css b/css/style.css index e2d3833..e15effc 100644 --- a/css/style.css +++ b/css/style.css @@ -1,15 +1,15 @@ @import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap"); -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -47,21 +47,21 @@ li { } .container { - width: 1140px; + max-width: 1140px; margin: 0 auto; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -88,6 +88,10 @@ li { height: inherit; } +.header .header__right { + position: relative; +} + .header__logo { font-size: 27px; font-weight: 300; @@ -187,6 +191,7 @@ li { .header__cart { margin-right: 26px; margin-top: 15px; + cursor: pointer; } .header__cart img { @@ -225,6 +230,9 @@ li { } .navbar { + position: relative; + z-index: 3; + background-color: #ffffff7a; min-height: 51px; display: -webkit-box; display: -ms-flexbox; @@ -234,6 +242,26 @@ li { justify-content: center; } +.navbar .mobile__menu-open { + position: absolute; + font-size: 40px; + color: #f16d7f; + display: none; +} + +.navbar .mobile__menu-close { + position: absolute; + font-size: 40px; + color: #f16d7f; + display: none; +} + +#mobile__menu-switch { + display: none; + left: -999px; + visibility: hidden; +} + .navbar__menu-list { display: -webkit-box; display: -ms-flexbox; @@ -268,17 +296,17 @@ li { color: #f16d7f; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -292,6 +320,7 @@ li { } .brand__picture { + width: inherit; height: 614px; background: url(../img/Layer_24_.jpg) no-repeat; background-position: right bottom; @@ -322,18 +351,6 @@ li { color: #f16d7f; } -.hot-square { - width: 560px; - height: 542px; - position: relative; -} - -.hot-rectangle { - width: 560px; - height: 261px; - position: relative; -} - .formen { background: url(../img/Layer_30.jpg); } @@ -370,6 +387,12 @@ li { margin-top: 98px; } +.hot-square { + width: 560px; + height: 542px; + position: relative; +} + .hot__label { position: absolute; top: 26px; @@ -405,6 +428,12 @@ li { letter-spacing: 0.75px; } +.hot-rectangle { + width: 560px; + height: 261px; + position: relative; +} + .fetured { margin-top: 100px; } @@ -498,7 +527,7 @@ li { .fetured__button-browse { background-color: #f16d7f; - height: 38px; + min-height: 38px; color: #ffffff; font-size: 15px; font-weight: 400; @@ -515,17 +544,13 @@ li { margin-left: 9px; } -.offer { - height: 529px; - margin-bottom: 97px; -} - .offer__doby { - height: inherit; + min-height: 529px; display: -webkit-box; display: -ms-flexbox; display: flex; background-color: #222224; + margin-bottom: 97px; } .offer__pic { @@ -557,7 +582,8 @@ li { .offer__detales { height: inherit; - width: 373px; + max-width: 373px; + padding-right: 10px; display: -webkit-box; display: -ms-flexbox; display: flex; @@ -574,44 +600,44 @@ li { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; + padding-top: 40px; } .offer__detales-icon { - margin-top: 46px; - margin-left: 30px; + padding-right: 10px; + padding-left: 20px; } .offer__detales-text { - width: 252px; + min-width: 252px; color: #fbfbfb; font-size: 14px; font-weight: 300; line-height: 24px; letter-spacing: 0.35px; + padding-left: 10px; } .offer__detales-text h3 { - margin-left: 2px; - margin-top: 55px; - margin-bottom: 0; + margin: 0; } -.offer__detales-text p { +.offer__detales-text h3 p { width: 219px; margin-top: 0; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -719,6 +745,10 @@ li { padding-left: 14px; } +.sidebar__menu-item li:hover a { + color: #f16d7f; +} + .choose__bar { display: -webkit-box; display: -ms-flexbox; @@ -1095,17 +1125,17 @@ li { color: #fbfbfb; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -1121,28 +1151,39 @@ li { display: -webkit-box; display: -ms-flexbox; display: flex; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; height: inherit; + padding-top: 123px; } .subscribe__comment { - min-height: 438px; - width: 570px; + max-height: 438px; + max-width: 570px; display: -webkit-box; display: -ms-flexbox; display: flex; - border-right: 1px solid #ffffff; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: start; } .subscribe__comment img { - margin-top: -110px; - margin-right: 28px; -o-object-fit: none; object-fit: none; } +.comment { + padding-left: 28px; +} + +.comment p { + margin-top: 0; +} + .comment .text { - margin-top: 123px; - width: 386px; + max-width: 386px; font-size: 16px; line-height: 26px; letter-spacing: 0.4px; @@ -1189,7 +1230,7 @@ li { } .subscribe__mail { - width: 570px; + max-width: 570px; display: -webkit-box; display: -ms-flexbox; display: flex; @@ -1203,7 +1244,7 @@ li { } .subscribe__mail .title { - margin-top: 146px; + margin-top: 0; margin-bottom: 0; color: #222224; font-size: 24px; @@ -1296,7 +1337,7 @@ li { } .bottom-text { - width: 427px; + max-width: 427px; color: #898989; font-size: 14px; font-weight: 300; @@ -1304,6 +1345,10 @@ li { letter-spacing: 0.35px; } +.bottom__brand { + padding-right: 10px; +} + .bottom__menu { display: -webkit-box; display: -ms-flexbox; @@ -1399,39 +1444,38 @@ li { transform: scale(1.1); } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } .goods-picture { position: relative; - z-index: 1; height: 777px; display: -webkit-box; display: -ms-flexbox; @@ -1753,17 +1797,17 @@ li { color: #f16d7f; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -2240,17 +2284,17 @@ li { transition: .2s; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } @@ -2472,18 +2516,746 @@ li { opacity: 0; } -.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover { +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { -webkit-box-shadow: 0 5px 5px #d6d6d6; box-shadow: 0 5px 5px #d6d6d6; } -.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover { +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { background-color: #f16d7f; color: #ffffff; } -.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active { +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { background-color: #eeeeee; color: #f7f7f8; } -/*# sourceMappingURL=style.css.map */ \ No newline at end of file + +.browse__menu { + position: relative; + z-index: 5; + width: 254px; + border-radius: 3px; + border: 1px solid #e6e6e6; + background-color: #ffffff; +} + +.browse__menu-chapter { + padding: 14px; + margin: 0; + color: #222222; + font-size: 14px; + font-weight: 700; +} + +.browse__menu-chapter-title { + border-bottom: 1px solid #e6e6e6; + margin: 0; + margin-bottom: 10px; + padding-bottom: 5px; + text-transform: uppercase; +} + +.browse__menu-item { + text-decoration: none; + list-style-type: none; + margin-left: 5px; + cursor: pointer; + -webkit-transition: .3s; + transition: .3s; +} + +.browse__menu-item:hover { + margin-left: 15px; + color: #f16d7f; +} + +.browse__menu-item:not(:last-child) { + margin-bottom: 12px; +} + +.browse__menu-switch { + position: absolute; + z-index: 10; + left: -999px; + visibility: hidden; +} + +.browse__menu-switch:checked + div { + max-height: 0; + z-index: 4; +} + +.browse__menu-switch:checked + div > div::before { + opacity: 0; +} + +.browse__menu::before { + content: ''; + position: absolute; + top: -6px; + left: 39px; + height: 10px; + width: 10px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + background-color: #fff; + border-left: 1px solid #e6e6e6; + border-top: 1px solid #e6e6e6; + -webkit-transition: .2s; + transition: .2s; +} + +.browse__menu-wrapper { + padding-top: 8px; + position: absolute; + overflow: hidden; + top: 61px; + max-height: 550px; + -webkit-transition: .3s; + transition: .3s; +} + +.search__browse { + position: relative; + z-index: 5; + width: 63px; +} + +.search__browse i { + position: absolute; + right: 8px; + top: 11px; + color: #838383; +} + +.search__browse span { + display: block; + height: inherit; + cursor: pointer; +} + +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { + -webkit-box-shadow: 0 5px 5px #d6d6d6; + box-shadow: 0 5px 5px #d6d6d6; +} + +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { + background-color: #f16d7f; + color: #ffffff; +} + +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { + background-color: #eeeeee; + color: #f7f7f8; +} + +.cart__switcher { + position: absolute; + z-index: 10; + top: -999px; + right: 10px; + visibility: hidden; +} + +.cart__switcher:checked + div { + top: -500px; +} + +.cart__menu { + background-color: #fff; + position: absolute; + z-index: 4; + right: 244px; + top: 88px; + width: 230px; + padding: 0 15px 15px; + border-radius: 3px; + border: 1px solid #e6e6e6; + -webkit-transition: .5s; + transition: .5s; +} + +.cart__menu-item { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + padding-bottom: 15px; + padding-top: 15px; + border-bottom: 1px solid #e6e6e6; +} + +.cart__menu-item-name { + padding: 10px 15px; + -webkit-box-flex: 1; + -ms-flex: auto; + flex: auto; +} + +.cart__menu-item-good { + font-size: 12px; + font-weight: 700; + text-transform: uppercase; +} + +.cart__menu-item-stars { + font-size: 10px; + color: goldenrod; + margin-top: 8px; +} + +.cart__menu-item-quantity { + font-size: 10px; + font-weight: 700; + color: #f16d7f; + margin-top: 8px; +} + +.cart__menu-item-cancel { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.cart__menu-summ { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; + font-size: 16px; + font-weight: 700; + text-transform: uppercase; + padding: 15px 0; +} + +.cart__menu-buttons { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + font-size: 14px; + font-weight: 700; + text-transform: uppercase; + text-align: center; +} + +.cart__menu-checkout { + margin-top: 10px; + border: 1px solid #f16d7f; + color: #f16d7f; + height: 40px; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-transition: .2s; + transition: .2s; +} + +.cart__menu-checkout:active { + border: 1px solid #e6e6e6; +} + +.cart__menu-go { + margin-top: 10px; + border: 1px solid #e6e6e6; + height: 40px; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} + +.cart__menu-go:hover { + background-color: #e6e6e6; +} + +.cart__menu::before { + content: ''; + position: absolute; + top: -6px; + left: 39px; + height: 10px; + width: 10px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + background-color: #fff; + border-left: 1px solid #e6e6e6; + border-top: 1px solid #e6e6e6; +} + +.fetured__gallery-item:hover, .product__gallery-item:hover, .like-olso__gallery-item:hover, .mega__menu-sale a:hover img { + -webkit-box-shadow: 0 5px 5px #d6d6d6; + box-shadow: 0 5px 5px #d6d6d6; +} + +.viewtype__button:hover, .goods-picture__arrow:hover, .goods-description__main-button:hover, .cart__buttons a:hover, .cart__checkout .coupon form button:hover, .cart__quote:hover, .collapse__block-form button:hover, .cart__menu-checkout:hover { + background-color: #f16d7f; + color: #ffffff; +} + +.footer-link:active, .goods-picture__arrow:active, .goods-description__main-button:active, .cart__item-del:active i, .cart__buttons a:active, .cart__checkout .coupon form button:active, .cart__quote:active, .collapse__block-form button:active, .cart__menu-checkout:active, .cart__menu-go:active { + background-color: #eeeeee; + color: #f7f7f8; +} + +.mega__switcher { + position: absolute; + z-index: 10; + top: -999px; + right: 25px; + visibility: hidden; +} + +.mega__switcher:checked + div { + top: -440px; + opacity: 0; +} + +.mega__menu { + position: absolute; + top: 40px; + right: -230px; + opacity: 1; + z-index: 5; + -webkit-transition: .8s; + transition: .8s; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + padding: 18px 18px 0 18px; + border-radius: 3px; + border: 1px solid #e6e6e6; + background-color: #ffffff; + -webkit-column-count: 3; + column-count: 3; +} + +.mega__menu-wrapper { + position: relative; +} + +.mega__menu-chapter { + margin: 0; + padding: 0 0 18px 0; + color: #222222; + font-size: 14px; + font-weight: 700; + -webkit-column-break-inside: avoid; +} + +.mega__menu-chapter-title { + border-bottom: 1px solid #e6e6e6; + margin: 0; + margin-bottom: 10px; + padding-bottom: 5px; + text-transform: uppercase; +} + +.mega__menu-item { + text-decoration: none; + list-style-type: none; + margin-left: 5px; + cursor: pointer; + -webkit-transition: .3s; + transition: .3s; +} + +.mega__menu-item:hover { + margin-left: 15px; + color: #f16d7f; +} + +.mega__menu-item:not(:last-child) { + margin-bottom: 12px; +} + +.mega__menu-switch { + position: absolute; + z-index: 10; + left: -999px; + visibility: hidden; +} + +.mega__menu-switch:checked + div { + max-height: 0; + z-index: 4; +} + +.mega__menu-switch:checked + div > div::after div::after { + opacity: 0; +} + +.mega__menu::before { + content: ''; + position: absolute; + top: -6px; + left: 39px; + height: 10px; + width: 10px; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + background-color: #fff; + border-left: 1px solid #e6e6e6; + border-top: 1px solid #e6e6e6; +} + +.mega__menu-sale { + position: relative; +} + +.mega__menu-sale img { + -webkit-transition: .2s; + transition: .2s; +} + +.mega__menu-sale a:hover img { + opacity: 0.9; +} + +.mega__menu-sale a:hover + div { + color: #f16d7f; +} + +.mega__menu-sale-text { + position: absolute; + bottom: 10px; + right: 10px; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + text-transform: uppercase; + color: #fff; + font-size: 18px; + font-weight: 700; + letter-spacing: 0.05em; + -webkit-transition: .2s; + transition: .2s; +} + +.mega__menu-label { + display: inline-block; + width: inherit; + cursor: pointer; + -webkit-transition: .2s; + transition: .2s; +} + +.mega__menu-label:hover { + color: #f16d7f; +} + +@media screen and (max-width: 1199px) { + .container { + padding: 0 10px; + } + .mega__menu-wrapper { + display: none; + } + .hot { + height: -webkit-fit-content; + height: -moz-fit-content; + height: fit-content; + -ms-flex-line-pack: center; + align-content: center; + margin-top: 0; + } + .hot a { + margin-top: 20px; + } + .fetured { + margin-top: 20px; + } + .fetured__gallery { + -webkit-box-pack: space-evenly; + -ms-flex-pack: space-evenly; + justify-content: space-evenly; + } + .offer__pic { + margin-left: -10px; + margin-right: -10px; + } + .subscribe__box { + padding-top: 123px; + } +} + +@media screen and (max-width: 991px) { + .container { + padding: 0 10px; + } + .header { + padding-top: 10px; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + } + .header__left { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + } + .header__search { + margin: 20px 0; + height: 52px; + } + .header__search input { + padding-right: 150px; + padding-left: 24px; + } + .header__search input::-webkit-input-placeholder { + font-size: 22px; + } + .header__search input:-ms-input-placeholder { + font-size: 22px; + } + .header__search input::-ms-input-placeholder { + font-size: 22px; + } + .header__search input::placeholder { + font-size: 22px; + } + .header__search button { + padding: 0 14px; + font-size: 20px; + } + .search__browse { + font-size: 22px; + line-height: 44px; + padding-left: 20px; + padding-right: 40px; + } + .navbar__menu-item:not(:last-child) { + margin-right: 22px; + } + .fetured__name p { + margin-bottom: 40px; + } + .fetured__button-browse { + padding-top: 10px; + padding-bottom: 10px; + font-size: 22px; + } + .offer__pic { + background-position: center; + } + .offer__pic-offer { + margin-top: 300px; + } + .offer__doby { + margin-bottom: 0; + } + .subscribe__box { + padding-top: 50px; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + } + .subscribe__comment { + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + margin-bottom: 50px; + } + .bottom { + -ms-grid-columns: 1fr 1fr 1fr; + grid-template-columns: 1fr 1fr 1fr; + justify-items: center; + margin-top: 30px; + } + .bottom__brand { + -ms-grid-column: 1; + grid-column-start: 1; + grid-column-end: 4; + padding-right: 0; + text-align: center; + } + .bottom .header__logo { + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + } + .bottom__menu .bottom__list { + text-align: center; + } +} + +@media screen and (max-width: 767px) { + .header__left { + width: 100%; + } + .header__search { + width: inherit; + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; + } + .header__search input { + width: 100%; + padding-right: 0; + padding-left: 20px; + } + .header-line { + padding-bottom: 20px; + } + .navbar { + position: relative; + min-height: 0; + } + .navbar .mobile__menu-open { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + left: 10px; + top: -65px; + } + .navbar .mobile__menu-close { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + right: 10px; + top: -66px; + } + .navbar__menu-list { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + max-height: 400px; + overflow: hidden; + -webkit-transition: .3s; + transition: .3s; + } + .navbar__menu-item { + margin-right: 0 !important; + } + .navbar input:checked ~ ul { + max-height: 0; + } + .brand__text { + margin-top: 300px; + } + .offer__doby { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + } + .offer__pic { + width: inherit; + background-image: cover; + } + .offer__detales { + margin: 0 auto; + } + .offer__detales-text h3 { + font-size: 25px; + } +} + +@media screen and (max-width: 575px) { + .header__search { + -webkit-box-pack: justify; + -ms-flex-pack: justify; + justify-content: space-between; + } + .header__search input { + width: 100%; + padding-right: 0; + padding-left: 10px; + } + .brand__text-big { + line-height: 50px; + color: white; + } + .brand__text-small { + line-height: 38px; + color: white; + } + .hot { + display: none; + } + .subscribe__comment { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + margin-bottom: 20px; + } + .subscribe__box { + padding-top: 20px; + } + .subscribe__mail .for { + margin-top: 3px; + margin-bottom: 10px; + } + .mail_subscribe input { + padding-right: 0; + } + .comment { + padding-left: 0; + } + .comment .bottom-line { + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + } + .footer__body { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; + } + .footer__links { + margin-top: 20px; + } + .bottom { + -ms-grid-columns: 1fr; + grid-template-columns: 1fr; + } + .bottom__menu { + -ms-grid-column: 1; + grid-column-start: 1; + grid-column-end: 4; + } +} diff --git a/goods/cart.html b/goods/cart.html index d3eb01d..fa5c754 100644 --- a/goods/cart.html +++ b/goods/cart.html @@ -16,7 +16,34 @@
- cart + + + My Account
+ + + +
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+
Total
+
$500.00
+
+
+ checkout + go to cart +
+
+ +
@@ -34,12 +116,60 @@ + +
+ + +
+ + + + +
+ +
+ Super + sale! +
+
+
+ +
+
diff --git a/goods/product.html b/goods/product.html index 27b2e8c..01df8f6 100644 --- a/goods/product.html +++ b/goods/product.html @@ -16,16 +16,97 @@
- cart + + + My Account
+ + + +
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+
Total
+
$500.00
+
+
+ checkout + go to cart +
+
+
@@ -34,12 +115,60 @@ + +
+ + +
+ + + + +
+ +
+ Super + sale! +
+
+
+ +
+
@@ -175,12 +304,12 @@
- -
- - -
+ +
+ + +
@@ -213,42 +342,42 @@ - + - + - + - + - + - + - + - + diff --git a/goods/single_page.html b/goods/single_page.html index 761c8bb..228f257 100644 --- a/goods/single_page.html +++ b/goods/single_page.html @@ -16,16 +16,97 @@
- cart + + + My Account
+ + + +
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+
Total
+
$500.00
+
+
+ checkout + go to cart +
+
+
@@ -34,12 +115,60 @@ + +
+ + +
+ + + + +
+ +
+ Super + sale! +
+
+
+ +
+
diff --git a/img/Promo Ad.png b/img/Promo Ad.png new file mode 100644 index 0000000..6a657ee Binary files /dev/null and b/img/Promo Ad.png differ diff --git a/img/cart01.png b/img/cart01.png new file mode 100644 index 0000000..4ee3f2b Binary files /dev/null and b/img/cart01.png differ diff --git a/img/cart02.png b/img/cart02.png new file mode 100644 index 0000000..3d41dc2 Binary files /dev/null and b/img/cart02.png differ diff --git a/index.html b/index.html index a738fbf..875d8ad 100644 --- a/index.html +++ b/index.html @@ -16,30 +16,162 @@
- cart + + + My Account
+ + + +
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+ +
+
Rebox Zane
+
+ + + + + +
+
1 x $250
+
+
+ +
+
+
+
Total
+
$500.00
+
+
+ checkout + go to cart +
+
@@ -48,6 +180,7 @@
The brand
of luxerious fashion
+
@@ -146,7 +279,7 @@

Fetured Items

-
+
30% Offer
@@ -191,7 +324,7 @@

Quality assurance

- +
@@ -298,6 +431,7 @@

Quality assurance

+ \ No newline at end of file diff --git a/css/_body.sass b/sass/_body.sass similarity index 95% rename from css/_body.sass rename to sass/_body.sass index 87b7e85..f704e84 100644 --- a/css/_body.sass +++ b/sass/_body.sass @@ -27,5 +27,5 @@ li font-weight: 700 .container - width: 1140px + max-width: 1140px margin: 0 auto diff --git a/css/_cart.sass b/sass/_cart.sass similarity index 99% rename from css/_cart.sass rename to sass/_cart.sass index b1cf6a3..f65a4fd 100644 --- a/css/_cart.sass +++ b/sass/_cart.sass @@ -82,7 +82,7 @@ color: #575757 & .name margin-top: 10px - color: #222222 + color: $mainFontColor line-height: 1.2 text-transform: uppercase & .color diff --git a/css/_checkout.sass b/sass/_checkout.sass similarity index 97% rename from css/_checkout.sass rename to sass/_checkout.sass index ce87496..2ed5bdd 100644 --- a/css/_checkout.sass +++ b/sass/_checkout.sass @@ -16,7 +16,7 @@ line-height: 72px font-weight: 700 text-transform: uppercase - color: #222222 + color: $mainFontColor &:hover background-color: #fafafa .collapse__switcher @@ -73,7 +73,7 @@ font-size: 13px line-height: 1.2 text-transform: uppercase - color: #222222 + color: $mainFontColor margin-bottom: 8px &-description font-size: 13px @@ -88,7 +88,7 @@ line-height: 1.2 // font-weight: 400 text-transform: uppercase - color: #222222 + color: $mainFontColor button width: 180px height: 50px diff --git a/css/_footer.sass b/sass/_footer.sass similarity index 77% rename from css/_footer.sass rename to sass/_footer.sass index bc954bb..06f6750 100644 --- a/css/_footer.sass +++ b/sass/_footer.sass @@ -7,21 +7,23 @@ background-blend-mode: overlay &__box display: flex + justify-content: space-between height: inherit - + padding-top: 123px .subscribe__comment - min-height: 438px - width: 570px + max-height: 438px + max-width: 570px display: flex - border-right: 1px solid #ffffff + align-items: start + // border-right: 1px solid #ffffff img - margin-top: -110px - margin-right: 28px object-fit: none -.comment +.comment + padding-left: 28px + p + margin-top: 0 .text - margin-top: 123px - width: 386px + max-width: 386px font-size: 16px line-height: 26px letter-spacing: 0.4px @@ -42,21 +44,21 @@ display: flex justify-content: start .line-element - width: 38px - height: 4px - margin-right: 13px + width: 38px + height: 4px + margin-right: 13px .grey - background-color: #d6d6d6 + background-color: #d6d6d6 .red - background-color: $mainRedColor + background-color: $mainRedColor .subscribe__mail - width: 570px + max-width: 570px display: flex flex-direction: column align-items: center .title - margin-top: 146px + margin-top: 0 margin-bottom: 0 color: #222224 font-size: 24px @@ -83,10 +85,10 @@ padding-right: 78px background-color: #e1e1e1 &::placeholder - color: #a4a4a4 - font-size: 14px - font-weight: 300 - letter-spacing: 0.35px + color: #a4a4a4 + font-size: 14px + font-weight: 300 + letter-spacing: 0.35px a font-size: 14px line-height: 46px @@ -99,7 +101,7 @@ background-color: $mainRedColor transition: .2s &:hover - background-color: $mainRedHover + background-color: $mainRedHover .bottom min-height: 338px @@ -107,13 +109,15 @@ display: grid grid-template-columns: 2.3fr 1fr 1fr 1fr &-text - width: 427px + max-width: 427px color: #898989 font-size: 14px font-weight: 300 line-height: 24px letter-spacing: 0.35px +.bottom__brand + padding-right: 10px .bottom__menu display: flex flex-direction: column @@ -126,15 +130,15 @@ .bottom__list padding-left: 0 .bottom__item - margin-bottom: 18px - a - color: #898989 - font-size: 16px - font-weight: 400 - letter-spacing: 0.4px - transition: .2s - &:hover - color: #f16d7f + margin-bottom: 18px + a + color: #898989 + font-size: 16px + font-weight: 400 + letter-spacing: 0.4px + transition: .2s + &:hover + color: $mainRedColor .footer min-height: 79px @@ -171,13 +175,6 @@ @extend %activeButtonColor - - - - - - - diff --git a/css/_header.sass b/sass/_header.sass similarity index 79% rename from css/_header.sass rename to sass/_header.sass index 8df3cd7..730988e 100644 --- a/css/_header.sass +++ b/sass/_header.sass @@ -10,6 +10,8 @@ display: flex align-items: center height: inherit + .header__right + position: relative .header__logo font-size: 27px @@ -41,10 +43,10 @@ padding-left: 16px padding-right: 78px &::placeholder - color: #a4a4a4 - font-size: 14px - font-weight: 300 - letter-spacing: 0.35px + color: #a4a4a4 + font-size: 14px + font-weight: 300 + letter-spacing: 0.35px button height: inherit padding-right: 11px @@ -65,6 +67,7 @@ .header__cart margin-right: 26px margin-top: 15px + cursor: pointer & img transition: 0.2s &:hover img @@ -92,9 +95,29 @@ border-bottom: 1px solid #ececec .navbar + // position: sticky + // top: 0 + position: relative + z-index: 3 + background-color: #ffffff7a min-height: 51px display: flex justify-content: center + .mobile__menu-open + position: absolute + font-size: 40px + color: $mainRedColor + display: none + .mobile__menu-close + position: absolute + font-size: 40px + color: $mainRedColor + display: none + +#mobile__menu-switch + display: none + left: -999px + visibility: hidden .navbar__menu-list display: flex diff --git a/css/_index.sass b/sass/_index.sass similarity index 59% rename from css/_index.sass rename to sass/_index.sass index d76d6e1..f3dac66 100644 --- a/css/_index.sass +++ b/sass/_index.sass @@ -5,36 +5,27 @@ background-color: #e8e8e8 display: flex &__picture - height: 614px - background: url(../img/Layer_24_.jpg) no-repeat - background-position: right bottom + width: inherit + height: 614px + background: url(../img/Layer_24_.jpg) no-repeat + background-position: right bottom &__text - text-transform: uppercase - font-weight: 900 - border-left: 12px solid $mainRedColor - padding-left: 12px - margin-top: 224px + text-transform: uppercase + font-weight: 900 + border-left: 12px solid $mainRedColor + padding-left: 12px + margin-top: 224px &__text-big - font-size: 60px - letter-spacing: 1.5px - line-height: 43px + font-size: 60px + letter-spacing: 1.5px + line-height: 43px &__text-small - font-size: 40px - letter-spacing: 1px - line-height: 32px - margin-top: 18px - span - color: $mainRedColor - -.hot-square - width: 560px - height: 542px - position: relative - -.hot-rectangle - width: 560px - height: 261px - position: relative + font-size: 40px + letter-spacing: 1px + line-height: 32px + margin-top: 18px + span + color: $mainRedColor .formen background: url(../img/Layer_30.jpg) @@ -57,6 +48,10 @@ justify-content: space-between align-content: space-between margin-top: 98px + &-square + width: 560px + height: 542px + position: relative &__label position: absolute top: 26px @@ -74,9 +69,16 @@ font-size: 18px letter-spacing: 0.45px &-red - color: #f16d7f + color: $mainRedColor font-size: 30px letter-spacing: 0.75px + &-rectangle + width: 560px + height: 261px + position: relative + + + .fetured margin-top: 100px @@ -89,16 +91,16 @@ width: 261px margin-bottom: 22px & .pic - position: absolute;object-fit: cover - object-fit: cover + position: absolute;object-fit: cover + object-fit: cover & .add-cart - position: absolute - z-index: 999 - display: none + position: absolute + z-index: 999 + display: none &:hover - @extend %hoverShadow + @extend %hoverShadow &:hover .add-cart - display: initial + display: initial .fetured__name text-align: center @@ -140,7 +142,7 @@ align-items: center &-browse background-color: $mainRedColor - height: 38px + min-height: 38px color: #ffffff font-size: 15px font-weight: 400 @@ -148,17 +150,16 @@ padding-left: 24px padding-right: 19px &:hover - background-color: $mainRedHover + background-color: $mainRedHover & i - margin-left: 9px + margin-left: 9px .offer - height: 529px - margin-bottom: 97px &__doby - height: inherit + min-height: 529px display: flex background-color: #222224 + margin-bottom: 97px &__pic padding-left: 39px height: inherit @@ -166,40 +167,41 @@ color: #ffffff background: url(../img/Image_offer.jpg) no-repeat &-offer - margin-top: 132px - font-size: 54px - font-weight: 700 - text-transform: uppercase - letter-spacing: 1.5px - & span - color: $mainRedColor + margin-top: 132px + font-size: 54px + font-weight: 700 + text-transform: uppercase + letter-spacing: 1.5px + & span + color: $mainRedColor &-women - font-size: 32px - font-weight: 700 - text-transform: uppercase - letter-spacing: 0.9px + font-size: 32px + font-weight: 700 + text-transform: uppercase + letter-spacing: 0.9px &__detales height: inherit - width: 373px + max-width: 373px + padding-right: 10px display: flex flex-direction: column &-item - display: flex - justify-content: space-between + display: flex + justify-content: space-between + padding-top: 40px &-icon - margin-top: 46px - margin-left: 30px + padding-right: 10px + padding-left: 20px &-text - width: 252px - color: #fbfbfb - font-size: 14px - font-weight: 300 - line-height: 24px - letter-spacing: 0.35px - & h3 - margin-left: 2px - margin-top: 55px - margin-bottom: 0 + min-width: 252px + color: #fbfbfb + font-size: 14px + font-weight: 300 + line-height: 24px + letter-spacing: 0.35px + padding-left: 10px + & h3 + margin: 0 & p - width: 219px - margin-top: 0 + width: 219px + margin-top: 0 diff --git a/sass/_media.sass b/sass/_media.sass new file mode 100644 index 0000000..7ceafdf --- /dev/null +++ b/sass/_media.sass @@ -0,0 +1,177 @@ +@media screen and ( max-width: 1199px ) + .container + padding: 0 10px + .mega__menu-wrapper + display: none + .hot + height: fit-content + align-content: center + margin-top: 0 + & a + margin-top: 20px + .fetured + margin-top: 20px + &__gallery + justify-content: space-evenly + .offer + &__pic + margin-left: -10px + margin-right: -10px + .subscribe__box + padding-top: 123px + +@media screen and ( max-width: 991px ) + .container + padding: 0 10px + .header + padding-top: 10px + flex-direction: column + align-items: center + &__left + flex-direction: column + &__search + margin: 20px 0 + height: 52px + input + padding-right: 150px + padding-left: 24px + &::placeholder + font-size: 22px + button + padding: 0 14px + font-size: 20px + .search__browse + font-size: 22px + line-height: 44px + padding-left: 20px + padding-right: 40px + .navbar__menu-item + &:not(:last-child) + margin-right: 22px + .fetured__name p + margin-bottom: 40px + .fetured__button-browse + padding-top: 10px + padding-bottom: 10px + font-size: 22px + .offer__pic + background-position: center + &-offer + margin-top: 300px + .offer__doby + margin-bottom: 0 + .subscribe__box + padding-top: 50px + flex-direction: column + align-items: center + .subscribe__comment + justify-content: center + margin-bottom: 50px + // border: none + .bottom + grid-template-columns: 1fr 1fr 1fr + justify-items: center + margin-top: 30px + &__brand + grid-column-start: 1 + grid-column-end: 4 + padding-right: 0 + text-align: center + & .header__logo + justify-content: center + &__menu .bottom__list + text-align: center + + +@media screen and ( max-width: 767px ) + .header__left + width: 100% + .header__search + width: inherit + justify-content: space-between + input + width: 100% + padding-right: 0 + padding-left: 20px + .header-line + padding-bottom: 20px + .navbar + position: relative + min-height: 0 + .mobile__menu-open + display: flex + left: 10px + top: -65px + .mobile__menu-close + // display: none + display: flex + right: 10px + top: -66px + &__menu-list + flex-direction: column + align-items: center + max-height: 400px + overflow: hidden + transition: .3s + &__menu-item + margin-right: 0!important + input:checked ~ ul + max-height: 0 + .brand__text + margin-top: 300px + .offer__doby + flex-direction: column + .offer + &__pic + width: inherit + background-image: cover + &__detales + margin: 0 auto + &-text h3 + font-size: 25px + + + +@media screen and ( max-width: 575px ) + .header__search + justify-content: space-between + input + width: 100% + padding-right: 0 + padding-left: 10px + .brand__text-big + line-height: 50px + color: white + .brand__text-small + line-height: 38px + color: white + .hot + display: none + .subscribe__comment + flex-direction: column + align-items: center + margin-bottom: 20px + .subscribe__box + padding-top: 20px + .subscribe__mail + & .for + margin-top: 3px + margin-bottom: 10px + .mail_subscribe + input + padding-right: 0 + .comment + padding-left: 0 + .bottom-line + justify-content: center + .footer__body + flex-direction: column-reverse + .footer__links + margin-top: 20px + .bottom + grid-template-columns: 1fr + &__menu + grid-column-start: 1 + grid-column-end: 4 + + diff --git a/sass/_menubrowse.sass b/sass/_menubrowse.sass new file mode 100644 index 0000000..ff8fe68 --- /dev/null +++ b/sass/_menubrowse.sass @@ -0,0 +1,77 @@ +@import "_variables.sass" + +.browse__menu + position: relative + z-index: 5 + width: 254px + border-radius: 3px + border: 1px solid #e6e6e6 + background-color: #ffffff + &-chapter + padding: 14px + margin: 0 + color: $mainFontColor + font-size: 14px + font-weight: 700 + &-title + border-bottom: 1px solid #e6e6e6 + margin: 0 + margin-bottom: 10px + padding-bottom: 5px + text-transform: uppercase + &-item + text-decoration: none + list-style-type: none + margin-left: 5px + cursor: pointer + transition: .3s + &:hover + margin-left: 15px + color: $mainRedColor + &-item:not(:last-child) + margin-bottom: 12px + &-switch + position: absolute + z-index: 10 + left: -999px + visibility: hidden + &:checked + div + max-height: 0 + z-index: 4 + // padding: 0 + &:checked + div > div::before + opacity: 0 + &::before + content: '' + position: absolute + top: -6px + left: 39px + height: 10px + width: 10px + transform: rotate(45deg) + background-color: #fff + border-left: 1px solid #e6e6e6 + border-top: 1px solid #e6e6e6 + transition: .2s + &-wrapper + // z-index: 2 + padding-top: 8px + position: absolute + overflow: hidden + top: 61px + max-height: 550px + transition: .3s + +.search__browse + position: relative + z-index: 5 + width: 63px + & i + position: absolute + right: 8px + top: 11px + color: #838383 + & span + display: block + height: inherit + cursor: pointer diff --git a/sass/_menucart.sass b/sass/_menucart.sass new file mode 100644 index 0000000..713b415 --- /dev/null +++ b/sass/_menucart.sass @@ -0,0 +1,101 @@ +@import "_variables.sass" + + +.cart__switcher + position: absolute + z-index: 10 + top: -999px + right: 10px + visibility: hidden + &:checked + div + top: -500px +.cart__menu + background-color: #fff + position: absolute + z-index: 4 + right: 244px + top: 88px + width: 230px + padding: 0 15px 15px + border-radius: 3px + border: 1px solid #e6e6e6 + transition: .5s + &-item + display: flex + padding-bottom: 15px + padding-top: 15px + border-bottom: 1px solid #e6e6e6 + &-img + &-name + padding: 10px 15px + flex: auto + &-good + font-size: 12px + font-weight: 700 + text-transform: uppercase + &-stars + font-size: 10px + color: goldenrod + margin-top: 8px + &-quantity + font-size: 10px + font-weight: 700 + color: $mainRedColor + margin-top: 8px + &-cancel + display: flex + align-items: center + justify-content: flex-end + &-summ + display: flex + justify-content: space-between + font-size: 16px + font-weight: 700 + text-transform: uppercase + padding: 15px 0 + &-total + &-check + &-buttons + display: flex + flex-direction: column + font-size: 14px + font-weight: 700 + text-transform: uppercase + text-align: center + &-checkout + margin-top: 10px + border: 1px solid $mainRedColor + color: $mainRedColor + height: 40px + display: flex + align-items: center + justify-content: center + transition: .2s + &:hover + @extend %hoverButtonColor + &:active + @extend %activeButtonColor + border: 1px solid #e6e6e6 + &-go + margin-top: 10px + border: 1px solid #e6e6e6 + height: 40px + display: flex + align-items: center + justify-content: center + &:hover + background-color: #e6e6e6 + &:active + @extend %activeButtonColor + &::before + content: '' + position: absolute + top: -6px + left: 39px + height: 10px + width: 10px + transform: rotate(45deg) + background-color: #fff + border-left: 1px solid #e6e6e6 + border-top: 1px solid #e6e6e6 + diff --git a/sass/_menumega.sass b/sass/_menumega.sass new file mode 100644 index 0000000..a4840c5 --- /dev/null +++ b/sass/_menumega.sass @@ -0,0 +1,102 @@ +@import "_variables.sass" + + +.mega__switcher + position: absolute + z-index: 10 + top: -999px + right: 25px + visibility: hidden + &:checked + div + top: -440px + opacity: 0 +.mega__menu + position: absolute + top: 40px + right: -230px + opacity: 1 + z-index: 5 + transition: .8s + width: fit-content + padding: 18px 18px 0 18px + border-radius: 3px + border: 1px solid #e6e6e6 + background-color: #ffffff + column-count: 3 + &-wrapper + position: relative + &-chapter + margin: 0 + padding: 0 0 18px 0 + color: #222222 + font-size: 14px + font-weight: 700 + -webkit-column-break-inside: avoid + &-title + border-bottom: 1px solid #e6e6e6 + margin: 0 + margin-bottom: 10px + padding-bottom: 5px + text-transform: uppercase + &-item + text-decoration: none + list-style-type: none + margin-left: 5px + cursor: pointer + transition: .3s + &:hover + margin-left: 15px + color: $mainRedColor + &-item:not(:last-child) + margin-bottom: 12px + &-switch + position: absolute + z-index: 10 + left: -999px + visibility: hidden + &:checked + div + max-height: 0 + z-index: 4 + // padding: 0 + &:checked + div > div::after div::after + opacity: 0 + &::before + content: '' + position: absolute + top: -6px + left: 39px + height: 10px + width: 10px + transform: rotate(45deg) + background-color: #fff + border-left: 1px solid #e6e6e6 + border-top: 1px solid #e6e6e6 + &-sale + position: relative + img + transition: .2s + a:hover img + @extend %hoverShadow + opacity: 0.9 + a:hover + div + color: $mainRedColor + &-text + position: absolute + bottom: 10px + right: 10px + display: flex + flex-direction: column + text-transform: uppercase + color: #fff + font-size: 18px + font-weight: 700 + letter-spacing: 0.05em + transition: .2s + &-label + display: inline-block + width: inherit + cursor: pointer + opacity: + transition: .2s + &:hover + color: $mainRedColor diff --git a/css/_product.sass b/sass/_product.sass similarity index 97% rename from css/_product.sass rename to sass/_product.sass index b949e8e..c8bcca1 100644 --- a/css/_product.sass +++ b/sass/_product.sass @@ -61,7 +61,8 @@ transition: .5s &:hover padding-left: 14px - + &:hover a + color: $mainRedColor .choose__bar display: flex justify-content: space-between @@ -93,7 +94,7 @@ right: 0 height: 13px width: 1px - background-color: #dfdfdf + background-color: #dfdfdf & a:last-child::after display: none & a:not(:first-child) @@ -141,7 +142,7 @@ position: absolute height: 6px width: 130px - background-color: #f16d7f + background-color: $mainRedColor &-handle position: absolute top: -4px @@ -149,7 +150,7 @@ border: none height: 14px width: 14px - background-color: #f16d7f + background-color: $mainRedColor cursor: pointer &-value display: flex @@ -237,7 +238,7 @@ font-size: 16px font-weight: 700 text-transform: uppercase - color: #f16d7f + color: $mainRedColor margin-left: 14px diff --git a/css/_singlpage.sass b/sass/_singlpage.sass similarity index 99% rename from css/_singlpage.sass rename to sass/_singlpage.sass index c24b512..b953f39 100644 --- a/css/_singlpage.sass +++ b/sass/_singlpage.sass @@ -2,7 +2,6 @@ .goods-picture position: relative - z-index: 1 height: 777px display: flex justify-content: center diff --git a/css/_variables.sass b/sass/_variables.sass similarity index 100% rename from css/_variables.sass rename to sass/_variables.sass diff --git a/css/style.sass b/sass/style.sass similarity index 78% rename from css/style.sass rename to sass/style.sass index b449aab..153fa2e 100644 --- a/css/style.sass +++ b/sass/style.sass @@ -7,7 +7,10 @@ @import "_singlpage" @import "_cart" @import "_checkout.sass" -@import "_menu.sass" +@import "_menubrowse.sass" +@import "_menucart.sass" +@import "_menumega" +@import "_media" @import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap")