Faculty Filter
Example
A
B
C
D
E
Code
HTML
<div class="faculty-filter">
<form action="" name="faculty-filter">
<label for="faculty-search" class="faculty-search-label"
>Search for profiles by name or keyword</label
>
<div class="faculty-search-group">
<div class="faculty-search-wrapper">
<input
type="text"
id="faculty-search"
class="faculty-search"
placeholder="enter search"
/>
</div>
<div class="faculty-filter-button">
<button class="button blue" type="reset">Search</button>
</div>
<div class="faculty-filter-button">
<button class="button grey" type="submit">Clear</button>
</div>
</div>
</form>
<div class="accordions">
<div class="accordion">
<h2 class="accordion-heading">
<button class="accordion-button" aria-expanded="false">
Research Areas
<svg width="17" height="9" xmlns="http://www.w3.org/2000/svg">
<path
d="M15.993.375a1.441 1.441 0 0 0-1.997 0L8.499 5.71 3.002.375a1.441 1.441 0 0 0-1.997 0 1.341 1.341 0 0 0 0 1.939l6.502 6.311a1.441 1.441 0 0 0 1.998 0l6.502-6.311a1.353 1.353 0 0 0-.014-1.939z"
fill="#131516"
/>
</svg>
</button>
</h2>
<div class="accordion-content" hidden>
<div class="content-header">A</div>
<div class="content-selects">
<ul>
<li>
<input id="1" type="checkbox" />
<label for="1">Accounting Education</label>
</li>
<li>
<input id="2" type="checkbox" /> <label for="2">Addiction</label>
</li>
<li>
<input id="3" type="checkbox" />
<label for="3">Adult Health</label>
</li>
<li>
<input id="4" type="checkbox" />
<label for="4">African-American Identity and Literature</label>
</li>
</ul>
<ul>
<li>
<input id="5" type="checkbox" />
<label for="5">African-American Sacred Music</label>
</li>
<li>
<input id="6" type="checkbox" />
<label for="6">Animal Behavior</label>
</li>
<li>
<input id="7" type="checkbox" />
<label for="7">Arab American Studies</label>
</li>
<li>
<input id="8" type="checkbox" />
<label for="8">Arts Integration</label>
</li>
</ul>
<ul>
<li>
<input id="9" type="checkbox" />
<label for="9">Asset Price Formation</label>
</li>
<li>
<input id="10" type="checkbox" /> <label for="10">Auditing</label>
</li>
<li>
<input id="11" type="checkbox" />
<label for="11">Automotive Engineering</label>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
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
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
CSS
.faculty-filter .faculty-search-group {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.faculty-filter .faculty-search-group .faculty-search-wrapper {
-webkit-box-flex: 2;
-ms-flex-positive: 2;
flex-grow: 2;
}
.faculty-search-label {
opacity: 0.99;
font-family: 'Montserrat', sans-serif;
font-size: 13px;
color: #131516;
}
.faculty-filter .faculty-search-group input {
background: #fafafa;
border: 1px solid #e6e6e6;
padding: 0.9375rem;
font-family: 'Montserrat';
font-size: 13px;
color: #131516;
width: 100%;
}
.faculty-filter .faculty-search-group button {
cursor: pointer;
font-family: 'Montserrat', sans-serif;
font-size: 13px;
font-weight: 600;
letter-spacing: 1px;
padding: 0.9375rem 1.875rem;
text-align: center;
text-transform: uppercase;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.faculty-filter .faculty-search-group button.blue {
background: #00274c;
border: 1px solid #04192d;
color: #fafafa;
}
.faculty-filter .faculty-search-group button.grey {
background: #97a6b4;
border-color: transparent;
color: #131516;
}
.faculty-filter .faculty-search-group button.blue:hover {
background: #ffcb05;
border: 1px solid #ffcb05;
color: #00274c;
}
.faculty-filter .faculty-search-group button.grey:hover {
background: #131516;
border: 1px solid #131516;
color: #fafafa;
}
.faculty-filter .accordions {
background: #f3f3f3;
-webkit-box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.1);
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.1);
}
.faculty-filter .accordions .accordion {
background: #f3f3f3;
border: 1px solid #e6e6e6;
}
.faculty-filter .accordions .accordion-heading button {
background: #f3f3f3;
border: 1px solid #e6e6e6;
border-left: 0;
border-right: 0;
}
.faculty-filter .accordions .accordion-heading .accordion-button {
font-family: 'Montserrat', sans-serif;
font-size: 1.125rem;
font-weight: 600;
color: #131516;
letter-spacing: 0.17px;
}
.faculty-filter .accordions .accordion-button svg {
width: 17px;
}
.faculty-filter [aria-expanded='true'] svg {
-webkit-transform: rotate(-180deg);
transform: rotate(-180deg);
}
.faculty-filter .accordions .accordion-content {
height: 360px;
overflow-y: scroll;
padding: 0.625rem 1rem;
-webkit-box-shadow: inset 0px -8px 26px -10px rgba(0, 0, 0, 0.125);
box-shadow: inset 0px -8px 26px -10px rgba(0, 0, 0, 0.125);
}
.faculty-filter .accordions .accordion-content::-webkit-scrollbar {
width: 8px;
background-color: #f5f5f5;
}
.faculty-filter .accordions .accordion-content::-webkit-scrollbar-track {
border-radius: 0;
background-color: #97a6b4;
}
.faculty-filter .accordions .accordion-content::-webkit-scrollbar-thumb {
border-radius: 16px;
background-color: #00274c;
}
.faculty-filter .accordions .accordion-content .content-header {
color: #00274c;
font-family: 'Montserrat', sans-serif;
font-size: 1rem;
font-weight: 600;
}
.faculty-filter .accordions .accordion-content .content-selects {
color: #131516;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-family: 'OpenSans', sans-serif;
font-size: 0.875rem;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.faculty-filter .accordions .accordion-content .content-selects ul {
line-height: 1.2;
list-style: none;
padding: 0;
margin-bottom: 2.5rem;
margin-right: 3%;
width: 30%;
}
.faculty-filter .accordions .accordion-content .content-selects ul:last-child {
margin-right: 0;
}
.faculty-filter .accordions .accordion-content .content-selects ul li {
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-bottom: 8px;
}
.faculty-filter
.accordions
.accordion-content
.content-selects
input[type='checkbox'] {
border: 1px solid rgba(19, 21, 22, 0.57);
border-radius: 0;
margin-right: 6px;
margin-top: 2px;
}
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
← Facts Faculty List →