/
webdev
/
newOzone
Обзор
Документация
Войти
/
webdev
/
newOzone
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
style/style.css
660 строк
13 KB
EvgenyBAyandin
first commit
10 авг 2023, 18:09
10 авг 2023, 18:09
aa6bbc2
Код
Авторство
О чём код?
@font-face { font-family: "GTEestiProText"; src: url("../fonts/GT-Eesti-Pro-Text-Bold.OTF") format("opentype"); font-weight: 700; } @font-face { font-family: "GTEestiProText"; src: url("../fonts/GT-Eesti-Pro-Text-Regular.OTF") format("opentype"); font-weight: 500; } body { font-family: "GTEestiProText", Arial, sans-serif; } button { outline: transparent; } button:focus { outline: transparent; } .btn { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; width: auto; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; min-height: 27px; line-height: 1.17; position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 2px 15px; font-family: GTEestiProText, Arial, sans-serif; font-size: 14px; text-align: center; text-decoration: none; vertical-align: middle; border: 1px solid transparent; border-radius: 2px; -webkit-transition: all 0.08s ease-in-out; transition: all 0.08s ease-in-out; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; margin-top: auto; border: 2px solid #005bff; font-weight: 700; outline: none; min-height: 32px; color: #fff; background-color: #005bff; } .btn:hover { color: #fff; background-color: #004ed6; } .container { max-width: 1280px; width: 100%; } .category-title { font-size: 30px; font-weight: 400; margin-bottom: 0; } .category-count { margin-left: 4px; font-size: 12px; color: #999; } nav { margin: 10px 0; } nav .logo { display: block; height: 28px; width: 156px; margin-right: 15px; background-repeat: no-repeat; background-size: contain; background-position: 0; background-image: url("../img/logo.png"); } nav .navbar-wrapper { -ms-flex-wrap: wrap; flex-wrap: wrap; } nav .control-wrapper { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; } @media (max-width: 768px) { nav .control-wrapper { width: 100%; -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; } } nav .catalog { position: absolute; display: none; top: 45px; left: 0; z-index: 120; background: #ffffff; border: 2px solid #005bff; width: 200px; } nav .catalog ul { list-style: none; margin: 0; padding: 10px; text-align: center; } nav .catalog ul li { border-bottom: 1px solid #000; padding: 5px; } nav .catalog ul li:last-child { border-bottom: none; } nav .catalog ul li:hover { background-color: #333; color: #c5c5c5; } nav .catalog-button { -ms-flex-preferred-size: 135px; flex-basis: 135px; cursor: pointer; position: relative; } @media (max-width: 768px) { nav .catalog-button { -ms-flex-preferred-size: 60px; flex-basis: 60px; } } nav .catalog-button button { width: 118px; height: 40px; border-radius: 3px; background-color: #005bff; color: #fff; font-weight: 700; padding: 0; border: 0; 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; font-size: 14px; line-height: 18px; font-family: GTEestiProDisplay, Arial, sans-serif; cursor: pointer; } @media (max-width: 768px) { nav .catalog-button button { width: 50px; } } nav .catalog-button-burger { width: 24px; height: 24px; margin-right: 12px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='%23fff' d='M9 5h12a1 1 0 010 2H9a1 1 0 110-2zm0 6h12a1 1 0 010 2H9a1 1 0 010-2zm0 6h6a1 1 0 010 2H9a1 1 0 010-2zM3.5 7.5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm0 6a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm0 6a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E"); } @media (max-width: 768px) { nav .catalog-button-burger { margin: 0; } } @media (max-width: 768px) { nav .catalog-button-text { display: none; } } nav .search { display: -webkit-box; display: -ms-flexbox; display: flex; position: relative; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; } nav .search-wrapper { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; border: 2px solid #005bff; border-right-width: 0; border-radius: 3px 0 0 3px; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; height: 40px; width: 100%; } nav .search-wrapper-input { width: 100%; height: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0 0 0 8px; border: 1px solid transparent; font-size: 14px; font-family: GTEestiProText, Arial, sans-serif; color: #001a34; line-height: 18px; outline: none; vertical-align: middle; border-radius: 2px 0 0 2px; text-overflow: ellipsis; -webkit-box-shadow: none; box-shadow: none; } nav .search-btn { height: 40px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; min-width: 76px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; overflow: hidden; background-color: #005bff; } nav .search-btn button { cursor: pointer; border-color: transparent; height: 100%; width: 100%; background-color: #005bff; border: none; } nav .search-btn button::before { content: ""; display: inline-block; vertical-align: middle; width: 24px; height: 24px; color: #fff; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='%23fff' d='M9.996 17.991a7.996 7.996 0 117.995-7.995 1 1 0 01-2 0 5.996 5.996 0 10-1.756 4.24l.707-.708 7.115 7.115a1 1 0 01-1.414 1.414l-5.745-5.745a7.967 7.967 0 01-4.902 1.68z'/%3E%3C/svg%3E"); } #cart { height: 56px; width: 76px; position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -ms-flex-line-pack: center; align-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; padding-top: 8px; margin: 0 15px; } #cart .counter { position: absolute; top: 0; right: 0; height: 16px; border-radius: 8px; padding: 0 8px; background-color: #f91155; color: #fff; font-size: 12px; line-height: 16px; font-family: GTEestiProDisplay, Arial, sans-serif; font-weight: 700; } #cart .icon { width: 24px; height: 24px; margin-bottom: 1px; color: #001a34; display: inline-block; max-width: 64px; max-height: 64px; pointer-events: none; outline: none; line-height: 0; -ms-flex-negative: 0; flex-shrink: 0; overflow: hidden; } #cart .desc { color: #001a34; font-family: GTEestiProDisplay, Arial, sans-serif; font-size: 14px; line-height: 18px; } .filter { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; font-weight: 700; margin-top: 15%; } .filter-price-title { display: block; font-size: 14px; line-height: 13px; margin-bottom: 10px; font-weight: 700; } .filter-price-range { display: -webkit-box; display: -ms-flexbox; display: flex; margin-bottom: 7px; width: 100%; } .filter-price-input-wrapper { padding-right: 4px; padding-left: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex: 0 0 50%; flex: 0 0 50%; -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; -webkit-box-sizing: border-box; box-sizing: border-box; } .filter-price-label { display: block; font-size: 14px; padding: 0 3px 0 0; color: #999; -webkit-box-flex: 0; -ms-flex: 0 0 auto; flex: 0 0 auto; } .filter-price-input { width: 100%; max-width: calc(100% - 18px); -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; font-size: 14px; padding: 4px 5px 6px; outline: 2px solid transparent; border: 1px solid #c5c5c5; border-radius: 2px; background: #fff; height: 27px; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: none; box-shadow: none; } .filter-check { font-weight: 500; } .filter-check-label { display: block; min-height: 16px; position: relative; padding-left: 21px; color: #4d5f71; font-family: GTEestiProText, Arial, sans-serif; font-size: 14px; line-height: 19px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .filter-check-label-text { display: inline-block; vertical-align: top; line-height: 100%; margin-top: 1px; } .filter-check-label .active { font-weight: 700; } .filter-check-checkbox { opacity: 0; position: absolute; cursor: pointer; } .filter-check-checkmark { width: 15px; height: 15px; position: absolute; top: 0; left: 0; -webkit-box-sizing: border-box; box-sizing: border-box; background: #fff; border: 1px solid #005bff; border-radius: 2px; } .filter-check-checkmark.checked::after { display: block; } .filter-check-checkmark:after { display: none; width: 15px; height: 15px; position: absolute; top: -4px; left: 2px; content: ""; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.3 15L15 1.2 13.7 0 5.1 12.3 1.1 8 0 9.4 5.3 15z' fill='%23005bff'/%3E%3C/svg%3E"); } .card { border: 1px solid #ededed; border-radius: 0; } @media (max-width: 768px) { .card { width: 100%; } } .card-img-wrapper { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; margin: 0 auto; height: 230px; width: 100%; } .card-img-top { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 230px; margin: auto; max-width: 200px; max-height: 200px; background-position: center; background-size: contain; background-repeat: no-repeat; } .card-sale { position: absolute; top: 10px; left: 8px; color: #ffffff; background-color: #9f3584; font-weight: bold; padding: 4px 8px; font-size: 14px; border-radius: 4px; margin-right: 8px; z-index: 111; } .card-title { height: 50px; overflow: hidden; font-size: 16px; line-height: 1.38; padding-bottom: 6px; position: relative; z-index: 4; } .card-body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .card-price { font-size: 22px; font-weight: 700; letter-spacing: 0.3px; } .cart { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #00000050; z-index: 130; } .cart-body { position: relative; margin: auto; width: 1024px; min-height: 200px; max-height: 640px; background-color: #fff; padding: 25px; overflow: auto; border-radius: 3px; } .cart-title { font-size: 28px; color: #4d5f71; } .cart-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 25px 0; border: 1px solid #4d5f713f; border-radius: 3px; padding: 20px; } .cart-wrapper #cart-empty { font-size: 24px; color: #4d5f71; } .cart-wrapper .card { width: 33%; } @media (max-width: 992px) { .cart-wrapper .card { width: 50%; } } @media (max-width: 768px) { .cart-wrapper .card { width: 100%; } } .cart-close { position: absolute; top: 25px; right: 25px; cursor: pointer; height: 25px; width: 25px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath fill='005bff' d='M12 10.587l6.293-6.294a1 1 0 111.414 1.414l-6.293 6.295 6.293 6.294a1 1 0 11-1.414 1.414L12 13.416 5.707 19.71a1 1 0 01-1.414-1.414l6.293-6.294-6.293-6.295a1 1 0 011.414-1.414L12 10.587z'/%3E%3C/svg%3E"); } .cart-total { font-size: 18px; } .cart-total span { color: #077c24; } .cart-confirm { display: block; margin-left: auto; }