-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.css
More file actions
117 lines (102 loc) · 2.05 KB
/
header.css
File metadata and controls
117 lines (102 loc) · 2.05 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* Remove natural page margins and padding */
body {
margin: 0;
padding: 0;
overflow-x: hidden;
}
/* The styling of just the header */
#header {
position: fixed;
width: 100%;
height: 46px;
z-index: 5;
animation-name: header_appear;
animation-duration: 0.5s;
}
/* The styling of the header bar and navmenu */
#header, #navmenu {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #d32300;
}
/* Give the navmenu spacing from the left */
#navmenu {
margin-left: 5%;
float: left;
}
/* Make list items in the navmenu appear as blocks */
#navmenu > li {
display: inline-block;
float: left;
}
/* Display list links as blocks */
#navmenu > li > a {
display: inline-block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change button background when hovered */
#navmenu > li > a:hover {
background-color: #b10100;
}
/* The div that "drops down" */
.dropdown div {
display: none;
position: fixed;
z-index: -1;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
/* Style the button on the drop down */
.dropdown div a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* When one of the drop down buttons is hovered on */
.dropdown div a:hover {
background-color: #f1f1f1;
}
/* show the dropdown when hovered on */
.dropdown:hover div {
display: block;
animation-name: drop_down;
animation-duration: 0.5s;
}
/* Style the section of the header conatining the search */
#header form {
margin-left: 75%;
width: 20%;
padding: none;
position: fixed;
z-index: 5;
background-color: inherit;
}
/* The search text box */
#header input[type="text"] {
width: 100%;
border-radius: 3px;
border: none;
margin-top: 6px;
padding: 4px 6px;
}
/**************/
/* ANIMATIONS */
/**************/
/* Makes the header appear */
@keyframes header_appear {
0% { margin-top: -5%; }
100% { margin-top: 0%; }
}
/* Animates the dropdown */
@keyframes drop_down {
0% { margin-top: -10%; }
100% { margin-top: 0%; }
}