-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6-filters.css
125 lines (104 loc) · 1.96 KB
/
6-filters.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@charset "UTF-8";
/** Holberton Practice Styles
* ------ Filters
*/
.container .filters {
height: 70px;
background-color: #FFFFFF;
width: 100%;
border: 1px solid #DDDDDD;
border-radius: 4px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: stretch;
z-index: 2;
position: relative;
}
.container .filters .locations {
width: 25%;
border-right: 1px solid #DDDDDD;
}
.container .filters .amenities {
width: 25%;
}
.container .filters button {
font-size: 18px;
background-color: #FF5A5F;
height: 48px;
width: 20%;
border: none;
border-radius: 4px;
margin: auto 30px auto auto;
}
.container .filters button:hover {
opacity: 0.9;
}
/**
* ------ HEADERS
*/
.container .filters h2 {
font-size: 16px;
margin: 10px 0 5px 0;
}
.container .filters h3 {
font-weight: 600;
margin: 12px 0 4px 40px;
}
.container .filters h4 {
font-weight: 400;
font-size: 14px;
margin: 7px 0 3px 40px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 75%;
}
/**
* ------ POPOVER
*/
.container .filters .locations:hover .popover {
display: list-item;
}
.container .filters .amenities:hover .popover {
display: list-item;
}
.container .filters .popover {
max-height: 300px;
overflow: scroll;
display: none;
list-style-type: none;
background-color: #FAFAFA;
border: 1px solid #DDDDDD;
border-radius: 4px;
padding: 30px 40px 40px 30px;
margin: 15px -1px 0 -1px;
}
.container .filters .popover ul {
list-style-type: none;
padding-left: 20px;
}
.container .filters .popover li {
margin: 5px 0 5px 0;
}
@media screen and (max-width: 600px) {
.container .filters {
flex-direction: column;
height: auto;
width: 90%;
margin: auto;
}
.container .filters .locations {
border-bottom: 1px solid #DDDDDD;
}
.container .filters .locations,
.container .filters .amenities {
width: 100%;
border-right: none;
border-bottom: 1px solid #DDDDDD;
}
.container .filters button {
width: 80%;
margin: 5px auto;
}
}