-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.css
89 lines (73 loc) · 1.55 KB
/
navbar.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
header {
width: 100%;
top: 0;
left: 0;
position: fixed;
z-index: 10;
}
nav {
position: fixed;
width: 100%;
background-color: var(--background-navbar);
}
nav ul {
list-style: none;
background: rgba(0, 0, 0, 0);
overflow: hidden;
color: var(--white-text-color);
padding: 0;
text-align: left;
margin: 0;
transition: 1s;
}
nav ul li {
display: inline-block;
padding: 16px 20px;
}
nav ul li a {
text-decoration: none;
color: var(--white-text-color);
font-size: 175%;
transition: all 0.1s ease 0.1s;
}
/* Hovering over links changes color */
nav ul li a:hover {
color: var(--highlight-color);
}
.menu-icon {
line-height: 60px;
width: 100%;
background: var(--background-navbar);
text-align: right;
box-sizing: border-box;
padding: 15px 24px;
cursor: pointer;
color: var(--white-text-color);
display: none;
}
@media(max-width: 786px) {
.logo {
position: fixed;
top: 0;
margin-top: 16px;
}
nav ul {
max-height: 0px;
background: #282828; /* color of hamburger popup panel */
}
nav.black ul {
background: #222;
}
.showing {
max-height: 34em;
}
nav ul li {
box-sizing: border-box;
width: 100%;
padding: 24px;
text-align: center;
}
.menu-icon {
display: block;
}
}