-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
88 lines (79 loc) · 1.57 KB
/
style.css
File metadata and controls
88 lines (79 loc) · 1.57 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
*{
padding: 0;
margin: 0;
overflow-x: hidden;
}
.game{
width: 1000px;
height: 410px;
margin: auto;
border-bottom: 1px solid black;
}
#character{
margin-left: 100px;
width: 70px;
height: 100px;
position:relative;
top: 310px;
}
.animate{
animation: jump 0.6s linear;
}
@keyframes jump{
0%{top: 310px;}
30%{top: 200px;}
70%{top: 200px;}
100%{top: 310px;}
}
#block{
width: 40px;
height: 40px;
position: relative;
top: 310px;
left: 500px;
animation: block 1.5s infinite linear;
}
@keyframes block{
0%{left: 1000px}
100%{left: -200px}
}
.menu{
margin-top: 2vh;
height: 260px;
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
/* Dropdown Button */
.dropbtn {
background-color: #525252;
color: white;
padding: 14px;
font-size: 14px;
border: none;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}