/
lizardking
/
react_final
Обзор
Документация
Войти
/
lizardking
/
react_final
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
old
src/pages/ProductPage/ui/ProductPage.module.css
449 строк
6 KB
LizardKing
Initial commit
22 ноя 2025, 15:56
22 ноя 2025, 15:56
0df0d9e
Код
Авторство
О чём код?
.header-title { margin-top: 0; margin-bottom: 20px; font-weight: 800; font-size: 32px; line-height: 1.5; } .product { display: flex; gap: 100px; margin-top: 23px; margin-bottom: 40px; } .product__title { margin-bottom: 20px; font-weight: 800; font-size: 24px; line-height: 28px; } .product__img-wrapper { flex: 1 1; } .product__desc { flex-shrink: 0; max-width: 400px; } .product__btn-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; } .product__cart { flex: 1 1; padding: 14px 70px; } .product__left { height: 48px; background-color: #ffffff; border: 1px solid #cfd8dc; border-radius: 100px; } .product__plus, .product__minus { width: 40px; height: 100%; font-size: 24px; background-color: transparent; border: none; outline: none; cursor: pointer; } .product__num { display: inline-block; width: 30px; font-weight: 700; font-size: 21px; line-height: 24px; text-align: center; } .product__delivery { display: flex; align-items: flex-start; padding: 12px; background-color: rgb(236 239 241 / 60%); border-radius: 12px; } .product__delivery:not(.delivery:last-child) { margin-bottom: 8px; } .product__right { margin-left: 12px; } .product__name { margin-top: 0; margin-bottom: 8px; font-weight: 700; font-size: 16px; line-height: 20px; } .product__text { font-weight: 400; font-size: 14px; line-height: 20px; } .product__text:not(.text:last-child) { margin-bottom: 8px; } .product__bold { font-weight: 700; } .product__subtitle { margin-bottom: 40px; font-weight: 400; font-size: 16px; line-height: 20px; } .product__grid { display: grid; grid-template-columns: 1fr 5fr; row-gap: 20px; margin-bottom: 40px; } .product__naming { color: #7b8e98; font-size: 16px; line-height: 20px; } .product__description { font-size: 16px; line-height: 20px; } .product__description p { margin-bottom: 12px; } .product__box { display: flex; flex-direction: column; } .product__favorite { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; background-color: transparent; border: none; } .product__favorite svg { fill: #ffffff; } .product__favorite svg path:first-child { fill: #7b8e98; } .product__favorite_active svg { fill: #f44336; } .product__favorite_active svg path:first-child { fill: #f44336; } .product__reviews { display: flex; flex-direction: column; gap: 20px; } @media (width <= 1000px) { .product__product { gap: 20px; } } @media (width <= 768px) { .product__product { flex-direction: column; } .product__desc { width: 100% !important; max-width: initial; } .product__grid { column-gap: 10px; } } @media (width <= 400px) { .product__cart { padding: 14px 20px; } } .price-wrap { position: relative; max-width: 200px; padding-top: 1.2em; overflow: hidden; text-overflow: ellipsis; } .price { display: block; font-weight: 800; font-size: 1.75em; line-height: 1.14; } .price_old { position: absolute; top: 0; left: 0; display: block; font-weight: 600; font-size: 0.88em; line-height: 1.42; text-decoration: line-through; } .price_discount { color: #f44336; } .price-big { font-size: 16px; } .price-small { font-size: 14px; } .price_left { right: auto; left: 0; } .price_right { right: 0; left: auto; } .button-count { display: inline-flex; align-items: center; height: 48px; background-color: #ffffff; border: 1px solid #cfd8dc; border-radius: 100px; } .button-count__plus, .button-count__minus { width: 40px; height: 100%; padding: 0; font-size: 24px; background-color: transparent; border: none; outline: none; cursor: pointer; } .button-count__num { display: inline-block; width: 30px; padding: 0; font-weight: 700; font-size: 21px; line-height: 24px; text-align: center; border: none; } input[type='number']::-webkit-outer-spin-button, input[type='number']::-webkit-inner-spin-button { appearance: none; } input[type='number'], input[type='number']:hover, input[type='number']:focus { appearance: none; } .button_type_primary { background-color: #ffe44d; } .button_type_primary:hover { color: #f44336; background-color: #ffaa0d; } .button { display: inline-flex; align-items: center; padding: 10px 18px; font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none; column-gap: 8px; border: 2px solid transparent; border-radius: 55px; cursor: pointer; transition: background-color 0.3s; } .review { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid #eceff1; } .review:last-child { border-bottom: none; } .review__name { color: #1a1a1a; font-weight: 800; font-size: 20px; font-style: normal; line-height: 24px; } .review__date { color: #7b8e98; font-weight: 400; font-size: 14px; line-height: 20px; } .review__city { color: #7b8e98; font-weight: 400; font-size: 12px; font-style: normal; line-height: 14px; } .review__text { margin-top: 8px; margin-bottom: 0; color: #1a1a1a; font-weight: 400; font-size: 14px; font-style: normal; line-height: 20px; } .review__header { display: flex; align-items: flex-end; gap: 8px; } .form { align-items: flex-start; } .maxContent { width: max-content; } .form__row { display: flex; gap: 12px; width: 100%; } .form__row_min { display: flex; gap: 12px; width: 50%; } .form__label { flex: 1 1; } .input { position: static; display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; width: 100%; height: 48px; margin: 8px 0; padding: 7px 16px; background: #ffffff; border: 1px solid #cfd8dc; border-radius: 12px; } input:focus { border-color: #ffe44d; outline: none; } .textarea { height: auto; min-height: 100px; resize: none; } .form__btn { position: static; display: flex; flex-direction: row; justify-content: center; align-items: center; width: 356px; margin: 8px 0; padding: 14px 24px; color: #1a1a1a; font-weight: 700; font-size: 16px; font-family: 'Arial', 'Helvetica', sans-serif; font-style: normal; line-height: 20px; border-radius: 55px; cursor: pointer; } .form__btn.pramary { background: #ffe44d; border: none; } .form__btn.secondary { background: white; border: 0.5px solid #cfd8dc; } .form__btn.maxContent { width: max-content; }