-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.css
73 lines (59 loc) · 1.17 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
/*Navigation Bar*/
.navbar {
position: relative;
width: 100%;
height: 17%;
background-color: rgb(248, 249, 251);
border-radius: 0px 0px 12rem 12rem;
}
.navbar a {
color: black;
text-decoration: none;
}
/*Logo sebelah kiri*/
.logo {
position: absolute;
top: 20%;
left: 8.8%;
}
/*Menu sebelah kanan*/
.navbar-menu {
position: absolute;
top: 33%;
right: 10%;
height: 33%;
width: 74%;
}
.navbar-menu-item {
position: relative;
float: right;
font-size: 2rem;
padding: 1rem 2rem;
border-radius: 1rem;
}
.navbar-menu-item:hover {
background-color: rgb(214, 78, 4);
cursor: pointer;
}
.navbar-submenu {
display: none;
position: absolute;
top: 4.4rem;
left: 0;
height: 21.5rem;
width: 15rem;
background-color: rgb(248, 249, 251);
border-radius: 0.5rem;
z-index: 1002;
}
.navbar-submenu-item {
float: none;
padding: 1rem 2rem;
}
.navbar-menu-item:hover .navbar-submenu {
display: block;
}
.navbar-submenu-item:hover {
background-color: rgb(214, 78, 4);
border-radius: 0.5rem;
}