-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavigation.css
94 lines (80 loc) · 1.45 KB
/
navigation.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
@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro);
.logo img{
padding: 0px;
margin: 0;
width: 60px;
float: left;
}
ul {
padding: 0;
margin: 0;
}
header {
position: fixed;
width: 100%;
top: 0;
left: 0;
background: hsla(190, 70%, 90%, 0.5);
height: 60px;
}
ul li {
display: inline-block;
padding: 8px 10px;
}
.navigation {
width: 90%;
margin: auto;
box-sizing: border-box;
padding: 0 15px;
position: relative;
}
li a {
text-decoration: none;
font-family: 'Source Sans Pro';
font-size: 20px;
color: #1f1f1f;
}
nav {
position: relative;
width: 490px;
position: relative;
font: normal 25px 'Source Sans Pro';
}
.centre {
margin-left: auto;
margin-right: auto;
left: 5%;
right: 0;
transition: all 0.7s ease;
}
.right {
margin-left: auto;
margin-right: auto;
left: -5%;
right: 0;
transform: translateX(100%);
transition: all 0.7s ease;
}
<!-- An attempt to make the menu selection bigger -->
#menu li a{
margin: 0px;
display: block;
width: 100%;
height: 100%;
}
/*------------MEDIA------------------*/
@media screen and (max-width: 565px){
ul li {
display: list-item;
list-style: none;
padding: 5px 5px;
text-align: center;
}
nav{
width:100%;
}
header{
height: 220px;
position: absolute;
}
}