-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilter.css
107 lines (88 loc) ยท 1.84 KB
/
filter.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.filter-container{
font-family:Cambria, Cochin, Georgia;
border-radius: 8px;
padding: 5px;
}
.filter-container > div{
margin:10px;
}
/* Filter header styles */
.filters-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.filters-header .heading{
font-size: 25px;
}
/* Reset button styles */
.filter-reset-button {
background-color: #ff0000;
color: #fff;
border: none;
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
font-weight: bold;
}
.filter-reset-button:hover {
background-color: #000dff;
color: white;
}
/* Filter sub-heading styles */
.sub-filter-heading {
margin-top: 15px;
font-weight: bold;
}
/* Checkbox styles */
#location-suggestion{
list-style: none;
background-color: white;
position: absolute;
top:30px;
z-index: 1;
width: 100%;
display: none;
}
.checkbox-filter {
margin: 5px 0;
}
.custom-checkbox {
display: inline-block;
position: relative;
padding-left: 10px;
cursor: pointer;
}
.custom-checkbox-icon {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
border: 2px solid #007BFF;
width: 20px;
height: 20px;
border-radius: 3px;
}
.custom-checkbox input[type="checkbox"] {
opacity: 0;
}
.custom-checkbox input[type="checkbox"]:checked + .custom-checkbox-icon {
background-color: #0077ff;
border: 1px solid #ff0000;
}
/* Right-align Reset button */
.filters-header .filter-reset-button {
order: 2;
}
/* Add a custom checked checkbox style */
.custom-checkbox input[type="checkbox"]:checked + .custom-checkbox-icon::before {
content: '\2713';
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
font-size: 14px;
color: #fff;
margin: 0px 4px
}