-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
95 lines (93 loc) · 1.37 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/** Styling the game field **/
html {
font-size: 100%;
font-family: sans-serif;
}
body {
background: rgb(51, 51, 51);
margin: 0;
padding: 0;
}
h1 {
color: rgb(174, 198, 207);
font-size: 3rem;
margin-top: 30vh;
padding: 10px;
text-align: center;
}
.coinCount {
color: rgb(51, 51, 51);
opacity: 0;
position: absolute;
right: 3%;
top: 0%;
transition: opacity .2s ease-in-out;
z-index: 1;
}
.controls {
opacity: 1;
position: absolute;
text-align: center;
transition: opacity .4s ease-in-out;
width: 100%;
z-index: 1;
}
.controls h2 {
font-size: 2rem;
margin-top: 45vh;
}
.controls div {
background-color: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.5);
height: 100vh;
width: 48%;
}
.left {
float: left;
}
.up {
float: right;
}
.game {
overflow: hidden;
position: relative;
}
.background {
background: lightblue;
table-layout: fixed;
border-spacing: 0;
}
.background td {
padding: 0;
}
.floater {
background: rgb(20, 20, 20);
}
.jumper {
background: rgb(100, 150, 255);
}
.wall {
background: rgb(86, 86, 86);
}
.water {
background: rgb(100, 150, 255);
}
.grass {
background: rgb(1, 142, 14);
}
.dirt {
background: rgb(87, 59, 12);
}
/** Styling the elements **/
.element {
position: absolute;
}
.coin {
background: rgb(241, 229, 89);
}
.player {
background: rgb(51, 51, 51);
}
.won .player {
box-shadow: -4px -7px 8px white, 4px -7px 8px white;
}