-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopacity-menu.css
90 lines (68 loc) · 1.19 KB
/
opacity-menu.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
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
section {
width: 100%;
height: 100vh;
background-image: url(opacity-menu.jpg);
background-size: cover;
}
.menu {
position: absolute;
width: 100%;
background: rgba(255, 255, 255, .5);
padding: 0, 100px;
box-sizing: border-box;
border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.menu img {
float: left;
width: 84px;
border-radius: 30px;
}
nav {
position: relative;
float: right;
}
nav ul {
margin: 0;
padding: 0;
display: flex;
}
nav ul li {
list-style: none;
}
nav ul li a {
display: block;
color: #000;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
padding: 33px 20px;
}
nav ul li a:hover {
background: #0b3c5d;
color: #fff;
}
nav ul li ul {
display: block;
background: rgba(255, 255, 255, .5);
min-width: 250px;
position: absolute;
margin-top: 1px;
box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
opacity: 0;
visibility: hidden;
transition: .5s;
transform: translateY(40px);
}
nav ul li:hover ul {
opacity: 1;
visibility: visible;
transform: translateY(0px);
}
nav ul li ul a {
padding: 10px;
}