-
Notifications
You must be signed in to change notification settings - Fork 1
/
navbar.css
131 lines (117 loc) · 1.94 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
@import url("https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
padding: 0;
margin: 0;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
nav {
background: white;
height: 80px;
width: 100%;
position: sticky;
box-shadow: 1px 1px 10px 1px rgb(182, 182, 182);
z-index: 999;
position: fixed;
top: 0;
}
label.logo {
color: orangered;
font-family: "Pacifico", cursive;
font-size: 35px;
line-height: 80px;
padding: 0 100px;
}
/* Make the cursor point when hovering over .logo */
label.logo:hover {
cursor: pointer;
}
nav ul {
float: right;
margin-right: 20px;
}
nav ul li {
display: inline-block;
line-height: 80px;
margin: 0 5px;
text-decoration: none;
}
nav ul li a {
color: #999;
text-decoration: none;
font-size: 17px;
padding: 7px 13px;
border-radius: 3px;
font-family: "Poppins", sans-serif;
transition: 0.5s;
}
nav ul li a:hover {
background: orangered;
color: white;
}
nav ul li a:hover i {
background-color: none;
color: white;
}
nav ul li a i {
color: #999;
}
.checkbtn {
font-size: 30px;
color: white;
float: right;
line-height: 80px;
margin-right: 40px;
cursor: pointer;
display: none;
}
.checkbtn i {
color: orangered;
}
#check {
display: none;
}
@media (max-width: 952px) {
label.logo {
font-size: 30px;
padding-left: 50px;
}
nav ul li a {
font-size: 16px;
}
}
@media (max-width: 858px) {
i {
display: hidden;
}
.checkbtn {
display: block;
}
ul {
position: fixed;
width: 100%;
height: 100vh;
background: white;
top: 80px;
left: -100%;
text-align: center;
transition: 0.5s;
}
nav ul li {
display: block;
margin: 50px 0;
line-height: 30px;
}
nav ul li a {
font-size: 20px;
}
a:hover,
a.active {
background: orangered;
color: white;
}
#check:checked ~ ul {
left: 0;
}
}