-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
60 lines (53 loc) · 1.04 KB
/
main.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
.navDefault {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #4a4a4f;
}
button {
border: none;
background-color: #0997d3;
width: 150px;
height: 50px;
color: #fff;
text-transform: uppercase;
cursor: pointer;
}
.dropdownMenu{
list-style: none;
margin:0;
padding: 0;
position: absolute;
left: 0;
right: 0;
top: 50px;
z-index: -1;
width: 150px;
text-align: center;
transform: translateY(-100%);
transition: transform 0.5s ease-in-out;
}
.dropdownLink {
text-decoration: none;
display: block;
background-color: #f9f9f9;
color: #4a4a4f;
padding: 10px 5px;
transition: background-color .5s ease-in-out, color .5s ease-in-out;
}
.dropdownLink:hover {
color: #fff;
background-color: #a0a0a3;
}
.dropdown {
width: 150px;
position: relative;
}
.dropdown:hover button {
background-color: #018ec5;
}
.dropdown:hover .dropdownMenu {
transform: translateY(0);
box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.2);
}