Side Bar
Example
Code
HTML
<aside>
<nav>
<ul class="sidebar-nav">
<li>
<a href>Majors & Minors</a>
</li>
<li>
<a href>Honors Program</a>
</li>
<li>
<a href>Online Learning</a>
</li>
<li>
<a href>Undergraduate Research</a>
</li>
<li>
<a href>Study Abroad</a>
</li>
</ul>
<ul class="links">
<li>
<a href>Certificates</a>
</li>
<li>
<a href>Dearborn Discovery Core</a>
</li>
<li>
<a href>Goals for the Undergraduate Experience</a>
</li>
<li>
<a href>University Catalogs</a>
</li>
<li>
<a href>Academic Calendar</a>
</li>
</ul>
</nav>
</aside>
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
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
CSS
aside {
padding-right: 1.875rem;
width: 25%;
}
@media screen and (max-width: 39.9375em) {
aside {
display: none;
padding-right: 0;
width: 100%;
}
}
aside .sidebar-nav {
background: #fafafa;
-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12),
0 1px 3px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12),
0 1px 3px 0 rgba(0, 0, 0, 0.2);
list-style: none;
padding: 1.25rem 0 1.25rem 1.5rem;
}
aside .sidebar-nav li {
border-bottom: 1px solid rgba(0, 0, 0, 0.25);
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
aside .sidebar-nav li:last-child {
border-bottom: 0;
}
aside .sidebar-nav li:last-child a:before {
display: none;
}
aside .sidebar-nav li:first-child a {
padding-top: 0;
}
aside .sidebar-nav li:last-child a {
padding-bottom: 0;
}
aside .sidebar-nav li:hover {
border-bottom-color: rgba(0, 0, 0, 1);
}
aside .sidebar-nav li a {
color: #1c5184;
display: block;
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.125px;
line-height: 1.25rem;
padding: 0.875rem 0;
position: relative;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
aside .sidebar-nav li a:before {
background-color: #1c5184;
bottom: -1px;
content: '';
left: 0;
height: 1px;
position: absolute;
-webkit-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
width: 0;
}
aside .sidebar-nav li a:hover {
color: #000;
padding-left: 3px;
}
aside .sidebar-nav li a:hover:before {
width: 100%;
}
aside .links {
list-style: none;
padding: 0;
}
aside .links a {
color: #1c5184;
display: block;
font-size: 0.875rem;
line-height: 1.25rem;
padding: 0.625rem 0;
position: relative;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
aside .links a:before {
background-color: rgba(19, 21, 22, 0.25);
bottom: 0;
content: '';
left: 0;
height: 1px;
position: absolute;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
width: 0;
}
aside .links a:hover {
color: #000;
padding-left: 3px;
}
aside .links a:hover:before {
width: 80%;
}
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
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