-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
95 lines (94 loc) · 1.66 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
#game{
width:1200px;
height:600px;
border: 5px solid #eee;
position: relative;
margin-right: auto;
margin-left: auto;
margin-top: auto;
margin-bottom: auto;
margin-top: calc((100vh - 600px)/2 - 8px);
}
.cell{
float:left;
background-size: 100%;
background-color: #f8f8f8;
}
.empty{
opacity: 0.1;
outline: 1px solid #888;
}
.add-active{
opacity: 0.5;
}
.add:hover{
opacity: 0.5;
}
.add{
background-image: url(assets/add.svg);
cursor: pointer;
}
.visited{
background-color: orange;
opacity: 0.1;
outline: 1px solid orange;
}
.wall{
background-image: url(assets/wall.svg);
}
.char{
position: absolute;
transition: all 0.1s linear, transform 0.05s linear;
background-color: transparent;
}
#ninja{
background-image: url(assets/ninja.svg);
cursor: pointer;
}
.guard{
background-image: url(assets/guard.svg);
}
#coin{
background-image: url(assets/coin.svg);
}
.danger, .ninja-here{
opacity: 0.2;
}
span{
font-weight: bolder;
color:#ccc;
font-family: sans-serif;
position:absolute;
}
#info{
margin:30px 20px;
left:0px;
top:0px;
cursor: pointer;
}
#info:hover{
color:#888;
}
#ins, #nopath{
width: auto;
height: auto;
top: 50vh;
left: 50vw;
transform: translate(-50%,-50%);
color: #555 !important;
font-size: 20px;
text-align: center;
background-color: #fff;
padding: 50px;
font-weight: normal;
box-shadow: 0px 0px 10px 7px rgba(0, 0, 0,0.1);
}
section{
width: 100vw;
height: 100vh;
position: absolute;
top:0px;
left: 0px;
background-color: rgba(0,0,0,0.25);
display: none;
}