-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
59 lines (59 loc) · 1006 Bytes
/
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
width:100%;
height:100vh;
/*you can change the font*/
font-family: Arial, Helvetica, sans-serif;
display: flex;
justify-content: center;
align-items: center;
}
button{
background: rgb(247, 98, 98);
color:green;
font-weight: 700;
border:none;
position:fixed;
top:20px;
right:20px;
padding:5px 5px;
border-radius: 5px;
transition:transform 1s ease-in-out;
}
button.active{
transform: translateX(-150px);
}
nav{
background: rgb(2, 175, 2);
position: fixed;
top:0;
right:0;
height:100vh;
padding:2rem;
transform: translateX(100%);
transition:transform 1s ease-in-out;
}
nav ul{
padding:0;
margin: 0;
list-style: none;
}
nav.active{
transform: translateX(0);
}
nav ul li{
padding: 1rem 0;
}
nav a{
color:white;
text-decoration: none;
transition: 0.5s;
}
nav a:hover{
color:red;
transition: 0.5s;
}