-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.css
98 lines (84 loc) · 1.69 KB
/
nav.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
91
92
93
94
95
96
97
98
body {
padding: 0;
margin: 0;
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
font-family: sans-serif;
color: white;
background-image: url("./assets/background\ img.png");
}
header {
display: flex;
justify-content: space-between;
/* width: 100vw; */
margin: 1em;
ul {
display: flex;
align-items: center;
justify-content: center;
gap: 1em;
li {
list-style-type: none;
color: white;
font-weight: bold;
cursor: pointer;
}
}
.btn button{
padding: 0.5em 1em;
background-color: #003465;
border: none;
color: white;
border-radius: 10px;
transition: 0.4s;
}
}
.nav-link{
text-decoration: none;
color: #fff;
}
.btn button:hover{
transform: scale(1.2);
cursor: pointer;
}
.drop-this{
transition: 0.3s;
}
.drop-this:hover .drop-list{
display: flex;
flex-direction: column;
min-height: 120px;
align-items: center;
gap: 8px;
}
.drop-list{
position: absolute;
display: none;
z-index: 1;
max-width: 130px;
width: 93.8px;
border-radius: 11px;
background-color: white;
a{
text-decoration: none;
border-radius: 10px;
color: black;
background-color: whitesmoke;
width: 70px;
text-align: center;
padding: 6px;
margin: 3px;
transition: 0.3s;
}
}
.drop-list a:hover{
background-color:#003465;
color: white;
transform: scale(1.1);
}
.active{
transform: scale(1.2);
border-bottom: 1px solid #fff;
}