-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavBar.css
87 lines (72 loc) · 1.79 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/* This file of code looks after almost all of the styling of the navigation bar, I chose to put it in a seperate file to the rest of the CSS as there is alot of things that are stlyised with the navigation bar. */
.nav-wrapper {
padding-top: 58px;
}
nav {
background-color: #f2f2f2;
padding: 10px;
text-align: center;
font-size: 20px;
position: fixed;
top: 0;
width: 100%;
z-index: 9999;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
}
nav ul li a {
text-decoration: none;
padding: 5px 10px;
color: #333;
}
nav ul li a:hover {
color: #000;
background-color: #ccc;
}
.dropbtn {
padding: 5px 10px;
font-size: 20px;
color: #333;
border: none;
font-family: "Comic Sans", "Comic Sans MS", "Chalkboard", "ChalkboardSE-Regular", sans-serif;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: auto;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
right: 0;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:active .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #ccc;
}
.dropdown:active .dropbtn {
background-color: #ccc;
}