added price filter, changed mobile filter ui
This commit is contained in:
@@ -1,3 +1,144 @@
|
||||
// Price Filter Styles
|
||||
.priceFilterContainer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
.priceInputGroup {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
}
|
||||
.priceLabel {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.priceInput {
|
||||
width: 90px;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 6px;
|
||||
font-size: 15px;
|
||||
background: #fff;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
.priceInput:focus {
|
||||
border-color: #6c63ff;
|
||||
outline: none;
|
||||
}
|
||||
.priceDivider {
|
||||
font-size: 18px;
|
||||
color: #aaa;
|
||||
font-weight: bold;
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
.filtersContainer{
|
||||
|
||||
.filterSection {
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
h3 {
|
||||
margin-bottom: 10px;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: auto;
|
||||
padding: 8px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customRadio {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid #d1d5db;
|
||||
border-radius: 50%;
|
||||
margin-right: 8px;
|
||||
background-color: #d1d5db;
|
||||
transition:
|
||||
background-color 0.2s,
|
||||
border-color 0.2s;
|
||||
}
|
||||
|
||||
input[type="radio"]:checked + .customRadio {
|
||||
background-color: #888888;
|
||||
}
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customCheckbox {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 8px;
|
||||
border-radius: 4px;
|
||||
background-color: #d1d5db;
|
||||
position: relative;
|
||||
transition:
|
||||
background-color 0.2s,
|
||||
border-color 0.2s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.checkIcon {
|
||||
display: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
fill: #888888;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .customCheckbox {
|
||||
background-color: #d1d5db;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .customCheckbox .checkIcon {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.categoryPage {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
@@ -35,42 +176,35 @@
|
||||
}
|
||||
}
|
||||
.bars {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: flex-end;
|
||||
border-bottom: 1px solid #d1d5db;
|
||||
border-top: 1px solid #d1d5db;
|
||||
padding: 8px 0;
|
||||
@media screen and (min-width: 1024px) {
|
||||
display: none;
|
||||
}
|
||||
.sum {
|
||||
color: #6b7280;
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
background-color: transparent;
|
||||
border: 1px solid #6b7280;
|
||||
padding: 3px 6px;
|
||||
display: block;
|
||||
border-radius: 0.5rem;
|
||||
margin: 0;
|
||||
|
||||
.filterButton {
|
||||
position: fixed;
|
||||
bottom: 80px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
background-color: #d32824;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
border: none;
|
||||
padding: 10px 24px;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
|
||||
svg {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
}
|
||||
// button {
|
||||
// background-color: #ec6323;
|
||||
// border-radius: 0.5rem;
|
||||
// font-size: 14px;
|
||||
// border: none;
|
||||
// padding: 11px;
|
||||
// font-weight: 600;
|
||||
// color: #ffffffff;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// gap: 5px;
|
||||
// img {
|
||||
// width: 16px;
|
||||
// height: 16px;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
.subCategories {
|
||||
display: flex;
|
||||
@@ -100,15 +234,18 @@
|
||||
gap: 20px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
aside {
|
||||
|
||||
|
||||
.sidebar {
|
||||
width: 250px;
|
||||
position: sticky;
|
||||
top: 5rem;
|
||||
background-color: #ffff;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
height: calc(-8.25rem + 100vh);
|
||||
|
||||
@media screen and (max-width: 1280px) {
|
||||
width: 200px;
|
||||
}
|
||||
@@ -124,98 +261,7 @@
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.filterSection {
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
h3 {
|
||||
margin-bottom: 10px;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: auto;
|
||||
padding: 8px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customRadio {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid #d1d5db;
|
||||
border-radius: 50%;
|
||||
margin-right: 8px;
|
||||
background-color: #d1d5db;
|
||||
transition: background-color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
input[type="radio"]:checked + .customRadio {
|
||||
background-color: #888888;
|
||||
}
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.customCheckbox {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 8px;
|
||||
border-radius: 4px;
|
||||
background-color: #d1d5db;
|
||||
position: relative;
|
||||
transition: background-color 0.2s, border-color 0.2s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.checkIcon {
|
||||
display: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
fill: #888888;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .customCheckbox {
|
||||
background-color: #d1d5db;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + .customCheckbox .checkIcon {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user