-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnav.css
More file actions
58 lines (50 loc) · 1.02 KB
/
Copy pathnav.css
File metadata and controls
58 lines (50 loc) · 1.02 KB
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
.navbar{
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 20px 40px;
}
.navbar > .title{
font-weight: bold;
position: relative;
top: 10px;
}
.navbar > .links li{
list-style: none;
display: inline-block;
padding: 10px;
transition: 250ms ease-in-out;
}
.navbar > .links li:hover{
background-color: rgba(0,0,0,0.25);
}
.navbar > .links a{
text-decoration: none;
color: black;
}
.navbar > .links li .sub-menu li{
display: block;
position: relative;
top: 10px;
padding: 10px 5px;
background-color: black;
border: 1px solid whitesmoke;
text-align: center;
}
.navbar > .links li .sub-menu a{
color: white;
}
.navbar > .links li .sub-menu ul{
/* display: none; */
position: absolute;
top: 50px;
transform: translateX(-10px);
height: 0;
width: max-content;
overflow: hidden;
transition: 250ms ease-in-out;
}
.navbar > .links li:hover .sub-menu ul{
/* display: block; */
height: 100px;
}