mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 18:29:11 +03:00
642 lines
9.5 KiB
CSS
642 lines
9.5 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #5d5d5d;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
font-family: "Roboto", sans-serif;
|
|
font-weight: normal;
|
|
background-color: #F3F3F3;
|
|
height: 100%;
|
|
}
|
|
|
|
a {
|
|
color: #000;
|
|
}
|
|
|
|
hr {
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
border: 0;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.select-dropdown li img {
|
|
width: 35px;
|
|
height: 35px;
|
|
}
|
|
|
|
/* Custom Styles */
|
|
|
|
.block-title {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.block-title h1, .block-title h2, .block-title h3 {
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.block-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.small-title {
|
|
font-size: 15px;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
color: rgba(0, 0, 0, 0.54);
|
|
}
|
|
|
|
.med-title {
|
|
font-size: 18px;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
color: rgba(0, 0, 0, 0.747);
|
|
}
|
|
|
|
.show {
|
|
display: block;
|
|
}
|
|
|
|
.hide {
|
|
display: none;
|
|
}
|
|
#roster {
|
|
min-height: 300px;
|
|
}
|
|
|
|
|
|
/* Cart */
|
|
.cart-btn {
|
|
position: fixed;
|
|
right: 30px;
|
|
bottom: 50px;
|
|
background-color: #1ba860 !important;
|
|
width: 65px !important;
|
|
height: 65px !important;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cart-btn i {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.cart-btn .counter {
|
|
display: inline-block;
|
|
position: absolute;
|
|
right: 9px;
|
|
top: 8px;
|
|
width: 20px;
|
|
height: 20px;
|
|
font-size: 13px;
|
|
color: #000;
|
|
border-radius: 50%;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.cart,
|
|
.pay {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding-right: 10px;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.cart-wrap,
|
|
.pay-wrap {
|
|
position: fixed;
|
|
background: rgba(0, 0, 0, .5);
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 999;
|
|
}
|
|
|
|
.cart-content,
|
|
.pay-content {
|
|
background-color: #fff;
|
|
margin-top: 7rem;
|
|
padding: 25px;
|
|
width: 460px;
|
|
min-height: 350px;
|
|
}
|
|
|
|
.modal-content__header .small-title {
|
|
color: #404751;
|
|
}
|
|
|
|
.modal-content__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.cart-close,
|
|
.pay-close {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cart-close i,
|
|
.pay-close i {
|
|
color: #8d8d8d;
|
|
}
|
|
|
|
.modal-content__purchase {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.modal-content__purchase .purchase-btn {
|
|
width: 100%;
|
|
height: 45px;
|
|
font-family: 'Roboto';
|
|
font-weight: 500;
|
|
}
|
|
|
|
.modal-content__info {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.modal-content__info .modal-content__counter,
|
|
.modal-content__info .modal-content__pay {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
padding: 3px 0;
|
|
}
|
|
|
|
#total-price {
|
|
font-size: 16px;
|
|
}
|
|
|
|
#item-remove i {
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-content__items {
|
|
border-top: 1px solid #e0e0e0;
|
|
max-height: 237px;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.modal-content__item {
|
|
padding: 10px 0px 10px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.modal-content__title {
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
-ms-text-overflow: ellipsis;
|
|
-o-text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
width: 200px;
|
|
}
|
|
|
|
.modal-content__right {
|
|
align-self: center;
|
|
}
|
|
|
|
.modal-content__right span {
|
|
font-size: 14px;
|
|
margin-left: 15px;
|
|
}
|
|
|
|
.modal-content__right button {
|
|
height: 0px;
|
|
width: 15px;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
color: #404751;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
-webkit-transition: all 0.4s;
|
|
-o-transition: all 0.4s;
|
|
transition: all 0.4s;
|
|
}
|
|
|
|
.modal-content__right input[type="number"] {
|
|
background: none;
|
|
height: 18px;
|
|
border: 1px solid #EAECED;
|
|
width: 30px;
|
|
margin: 0 5px;
|
|
color: #404751;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.in-stock {
|
|
color: #99a1aa;
|
|
}
|
|
|
|
|
|
/* Information Block */
|
|
.information {
|
|
border-radius: 2px;
|
|
margin-bottom: 1rem;
|
|
background-color: #FFE8E8;
|
|
color: #333;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.information-title h2 {
|
|
color: #f55555;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.information-close {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* Items Pagination */
|
|
.items-pagination ul {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.pagination li.active {
|
|
background-color: #26A69A;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
position: fixed;
|
|
right: 0;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 999;
|
|
}
|
|
|
|
nav {
|
|
background-color: #26A69A;
|
|
font-weight: 300;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.nav-wrapper .brand-logo {
|
|
font-size: 20px;
|
|
padding: 0px 5px 0px 5px;
|
|
}
|
|
|
|
.nav-wrapper .brand-logo i {
|
|
font-size: 28px;
|
|
}
|
|
|
|
/* Main */
|
|
.main-section {
|
|
margin-top: 6rem;
|
|
min-height: 100%;
|
|
}
|
|
|
|
header nav,
|
|
main,
|
|
footer .container {
|
|
padding-left: 90px;
|
|
padding-right: 90px;
|
|
}
|
|
|
|
/* Category */
|
|
|
|
.category,
|
|
.filter,
|
|
.purchase,
|
|
.background {
|
|
background-color: #fff;
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.category-items ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.category-items li a {
|
|
display: block;
|
|
width: 165px;
|
|
height: 42px;
|
|
line-height: 42px;
|
|
text-align: center;
|
|
background: #EFEFEF;
|
|
color: #929292;
|
|
margin: 3px;
|
|
transition: 0.2s;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.category-items li a:hover {
|
|
background: #26A69A;
|
|
color: #fff;
|
|
}
|
|
|
|
.category-items li .active {
|
|
background: rgb(39, 134, 125);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Filter items */
|
|
.filter-options {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.filter-options form {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.filter-options form label {
|
|
width: 130px;
|
|
margin-bottom: 7px;
|
|
}
|
|
|
|
/* Items */
|
|
.items {
|
|
background-color: #fff;
|
|
border-radius: 4px;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.items-title {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.items-category {
|
|
background-color: #26A69A;
|
|
height: 30px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 3px;
|
|
margin-bottom: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.items-category h2 {
|
|
color: #fff;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.items-list {
|
|
background-color: #F9F9F9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 42px;
|
|
font-size: 14px;
|
|
padding: 0px 10px 0px 10px;
|
|
margin-bottom: 5px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.items-list__name,
|
|
.items-list__info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.items-list .list-icon img {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.items-list__info {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.list-icon,
|
|
.list-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.list-title {
|
|
padding-left: 7px;
|
|
}
|
|
|
|
.list-title a {
|
|
color: #000;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.list-count,
|
|
.list-price {
|
|
height: 24px;
|
|
background: #E7E7E7;
|
|
text-align: center;
|
|
border-radius: 15px;
|
|
min-width: 79px;
|
|
}
|
|
|
|
.list-price {
|
|
padding: 0 13px;
|
|
}
|
|
|
|
.list-count {
|
|
width: 80px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.list-one {
|
|
width: 90px;
|
|
}
|
|
|
|
.list-count,
|
|
.list-price,
|
|
.list-one,
|
|
.list-buttons button:nth-child(1) {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.items-pagination,
|
|
.items-footer,
|
|
.items-footer__info,
|
|
.items-footer__info p {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
|
|
.background {
|
|
background-color: #fff;
|
|
padding: 40px;
|
|
margin: 40px 0;
|
|
min-height: 650px;
|
|
}
|
|
|
|
/* Product */
|
|
|
|
.product .breadcrumb ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.product .breadcrumb li {
|
|
color: #6b6b6b;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.product .breadcrumb li a {
|
|
color: #b3b3b3;
|
|
}
|
|
|
|
.product .breadcrumb li::after {
|
|
content: "/";
|
|
padding: 0 10px;
|
|
color: #b3b3b3;
|
|
}
|
|
|
|
.product .breadcrumb li:nth-child(3)::after {
|
|
content: '';
|
|
}
|
|
|
|
.product-title h1 {
|
|
font-size: 21px;
|
|
color: #5d5d5d;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.product-info {
|
|
display: flex;
|
|
}
|
|
|
|
/* Product-info Left */
|
|
.product-info__left {
|
|
width: 360px;
|
|
display: flex;
|
|
}
|
|
|
|
.product-left__pay {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 120px;
|
|
}
|
|
|
|
.product-left__pay button {
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.product-left__pay img {
|
|
width: 35px;
|
|
height: 35px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.product-info__cost {
|
|
width: 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.product-info__count span {
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
background: #E7E7E7;
|
|
padding: 2px 13px;
|
|
border-radius: 15px;
|
|
color: #000;
|
|
text-align: center;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.product-info__price span {
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
background: #E7E7E7;
|
|
padding: 2px 13px;
|
|
border-radius: 15px;
|
|
color: #000;
|
|
text-align: center;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.product-info__cost p {
|
|
padding: 10px 0;
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Product-info Right */
|
|
.product-info__right {
|
|
background-color: #F9F9F9;
|
|
min-height: 450px;
|
|
width: 100%;
|
|
border-radius: 4px;
|
|
padding: 20px;
|
|
color: #383838;
|
|
max-width: 820px;
|
|
}
|
|
|
|
.product-right__title {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.product-right__title span {
|
|
font-size: 17px;
|
|
font-weight: 500;
|
|
color: #5d5d5d;
|
|
}
|
|
|
|
.product-right__content h2 {
|
|
font-weight: 500;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.product-right__content h3 {
|
|
font-weight: 500;
|
|
font-size: 16px;
|
|
color: #5d5d5d;
|
|
}
|
|
|
|
.product-right__content p {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
margin-top: 4rem;
|
|
background-color: #25998f;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
color: #fff;
|
|
min-height: 90px;
|
|
text-align: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
} |