-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
79 lines (67 loc) · 1.16 KB
/
style.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
color: #fff;
text-decoration: none;
}
.navbar{
display: flex;
justify-content: space-around;
background-color: rgb(26, 3, 28);
align-items: center;
line-height: 3.5rem;
}
.left{
font-size: 2rem;
cursor: pointer;
}
#check{
display: none;
}
.checkBtn{
display: none;
}
.checkBtn{
font-size: 30px;
float: right;
line-height: 80px;
color: #ed1e79;
}
.main-nav{
display: flex;
list-style-type: none;
}
.main-nav li a{
padding: 5px 15px;
font-size: 1.2rem;
transition: all 0.5s;
}
.main-nav li a:hover{
background-color: #fff;
color: rgb(26, 3, 28);
border-radius: 8px;
}
@media screen and (max-width:805px) {
.main-nav{
display: flex;
flex-direction: column;
width: 100%;
height: 100vh;
text-align: center;
position: fixed;
top: 4rem;
left: 100%;
transition: all 1s;
background-color: rgb(26, 3, 28);
}
#check{
display: none;
}
.checkBtn{
display: block;
}
#check:checked ~ ul {
left: 0%;
}
}